Hello there. I have and relationship, for example $contact->contactData. Not every contact has co...
Things that I like about eloquent: Fantastic query builder Facilities provided in model the abili...
Workout app Hello, im working on a workout app and I want to set up my relationships. For example:...
I'm new to Laravel (a refugee from Kohana). I really like how Laravel returns object properties in j...
The latest version of Laravel now creates a migration whenever you run php artisan make:model. For m...
I created new Global scope "StatusableScope" class Post extensd Model { use StatusableTra...
Is it just me or , maybe misconfiguration , but if I dd() a model, especially if it has a relation,...
I have the following schema: Customer -> hasMany -> Products Product starred -> zeroOrOne...
I do not get the same results from these two queries. Why is that? In the example i am searching for...
Hey, I am trying to figure out how to add some properties to a Collection of Comment objects. each c...
Let's assume that we have a cms system that users are able to create a post but they want to schedul...
In Laravel 4, I could go: Show::all(); But in Laravel 5, I have to go: \Show::all(); or \App\Model...
My user model public function profile() { return $this->hasOne('Profile'); } My...
Hey peeps, new to laravel here (using version 4.2). Now, I have a User model as shown below: <?ph...
I am using Laravel 5 and am trying to access the Expedia API. I am find it hard working with Ajax an...
I have a scenario where I need to validate my model data prior to saving. All examples I can find u...
Hi there, I am currently working on a multi-language website. The current database setup is: product...
I think I know why the error is happening, I just am not sure how to fix it. I have a datatable that...
Hello, This is probably a very simple question. In my database, I have a users table, ideas table,...
I'm creating a app for taking a test and I want to display each question by itself and when the user...
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