So, I have this relationship: public function publishedAlbums() { return $this->hasMany('Album')...
Greetings. I am having some confusion about route model binding with/vs repositories. Here's how I...
Is it possible to return a data array in Laravel with ajax? I basically need to pull in some data wi...
Hi, For updating one to many translations inside a post i want to return the updated post. Is it nes...
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...
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