I have a client table with id, version, subdomain columns. Each client has a subdomian client1.examp...
I'm currently using Handlebars.js to compile views with ajax data. The issue is that I can't use Lar...
I have 2 models defined: Program model: class Program extends \Eloquent { protected $guarded =...
I'm building a Laravel 4.2 app and I'm using Creolab's Modules package. It's an app for managing com...
So, i tried to join 2 table (or more, but in this question i will try join only 2) and want to group...
I have a table with many fields in which I need to perform a search. The main problem is that this s...
Dear All I use laravel 4.2 with PostreSQL. When I select row and fetch with toArray and make JSON ou...
I'm having problems accessing the eager loaded specs below: // This is the actual code public functi...
I user pcntl want to start multi process, but when i pass Model to sub-process, It show the error:...
Hi All, I'm a relative newb to Laravel with not much understanding of javascript. I'm trying to get...
I have two tables 1.Department 2.Subdepartment Department have many subdepartment. Subdepartment hav...
Hey there, When i insert a row to the database ( scheme below ) //scheme Schema::create('result', fu...
I'm trying to insert an array of data into db using the below function. User::insert($array) It ins...
Hi, I've 3 models in my app, Document belongs to User or Group: class Document extends Eloquent {...
So I have two tables users -id -name assets -id -name -user_id I want to say a user has many...
Use Case: Select from users table with certain parameters (group_id, maybe a search term, etc.)...
Hi mates! I have condition in my query how can i do this in Laravel? Post::select('id, name'); if(is...
I noticed that if I $mymodel->forceDelete() an item that has a polymorphic relationship, the row...
Is there any way to do this in either query builder or eloquent so I can easily chain in where claus...
How can I update record in database? When I tried to use updateOrCreate i just got this error. SQLST...
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