Support the ongoing development of Laravel.io →

Change associated table in model with setTable() don't works

Hello community, I try to get data via one model from two different tables, so I want to change the...

0 Likes
0 Replies

Model attribute accessor not working with object_get helper function

The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...

0 Likes
3 Replies
Solved

How can I cache all data in Eloquent

How can I try to using cache for all of Eloquent query. Example: $users = User::remember(10)->get...

0 Likes
1 Replies
posted 10 years ago

how to make jquery button controlgroup with laravel form macro?

I am making a jquery mobile application with laravel. I know how to make one radiobutton with Form::...

0 Likes
2 Replies
Solved
posted 10 years ago

Pretty routes for Ajax Requests?

Hi everyone, I am currently designing a backend where users can submit events. There are 2 ways for...

0 Likes
3 Replies
posted 10 years ago

Mass assignment User::create() undefined and $user->save() undefined ?

Hello everyone! I have a little problem to register a user. Here is the function that processes the...

0 Likes
0 Replies

Error on Controller::getAfterFilters()

Till yesterday everything was fine and all the routes worked.When today i created a new function in...

0 Likes
1 Replies
posted 10 years ago

getting model belongsTo attributes

class Batch extends Eloquent { public function coupons() { return $this->hasMany('Cou...

0 Likes
1 Replies
posted 10 years ago

database for cms

what is best way to make cms and database with laravel 4? Simple cms where users change page content...

0 Likes
2 Replies

Does anyone have a good, working Vagrantfile?

Hey guys, whenever I try to set up a vagrant environment, or even copy other people's environment, I...

0 Likes
0 Replies

[Package] Blade Partials - Think @extends functionality inline within your views

Hey everyone, I released the Blade Partials package yesterday. It allows you to extend from partial...

0 Likes
4 Replies
posted 10 years ago

[Package] Trucker: map remote API resources as models in an ActiveResource style.

I have several apps that interact with APIs which don't have their own SDK, so I wrote a package to...

0 Likes
1 Replies

How to reference this object's "belongsTo" user?

In my Car class I have public function user() { return $this->belongsTo('User'); } public fu...

0 Likes
9 Replies
Solved

whereNotIn Query replacing my array variables

Hello All, So I have some weirdness happening. I'm trying to do a search on a track database that I...

0 Likes
2 Replies

Delete quotes in query to execute

I need to execute a query with group by. But the group by is not for a field. I need to group by wit...

0 Likes
0 Replies
posted 10 years ago

4 table join together

I have 4 tables TableA hasMany TableC TableB hasMany TableC TableC hasMany TableD I want to connect...

0 Likes
2 Replies

csrf validation failing during unit testing (Laravel 4.1)

I recently upgraded from 4.0 to 4.1 following the upgrade instructions, and now when unit testing my...

0 Likes
1 Replies
posted 10 years ago

not work blade and google maps

Hi friends can not get it to work with google maps blade can you help me?

0 Likes
8 Replies

Composite primary key

Hi ! I read that L3 didn't support composite primary key, is it the same for L4.1 ? In my case it's...

0 Likes
2 Replies
posted 10 years ago

How to perform a tag search ?

Hi, Given this simple database setup: posts - id tags - id post_tag - id - post_id - tag_id ......

0 Likes
4 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.