I have created about 25 database tables in the migrations folder by first creating the files with ph...
I have the following tables users id email teams id teamlist id team_id email The reason there...
I have a User and a Country models, and the user model has one-to-many relation class User extends E...
I'm just starting out with TDD and I'm trying to test validation in a model. Currently, all my test...
Hello, I've been having immense problems trying to get the Polymorphic Many-to-Many relationship to...
Hopefully someone can help me, I've been trying to find out why for the last few hours. I'm trying t...
Example resulting in wrong result (is used for a scope-Method): return $query->whereRaw(<<&...
I have a Post model, that read from my table "posts". In my PostController, I inject an Po...
Let's say I have a controller named "PositionsController". This controller depends on &quo...
In my code I retrieve a category like this: $category=Category::find($categoryID); And then echo its...
In one of my controller-functions I retrieve a model: $user=User::where('token',$token)->first();...
Hello folks. I am in need of a little direction on setting up a query on a many-to-many relationsh...
In one of my project, I'd like to output a json value from my mysql table immediately to array when...
Sorry for the noob question. I am using what I guess what is referred to a pivot table in Laravel 4...
Hi guys, I'm fairly new to Laravel, I'm designing an application which will have an API which return...
I have been trying to get this query working using Query Builder. Still haven't been able to get a w...
I've been exploring the use of the repository pattern in a new project by using interfaces and eloqu...
I've inherited an application that I'm supposed to "fix" from prior development and I noti...
Hi, I'm trying to run the following query but it's not returning anything ... any idea why? $comment...
Hello everyone, In my database I have two tables: Users and Notes An User has many notes and every n...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community