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...
When working with Eloquent, I often find myself typing code that looks like: $someting = Email::wh...
Hi all, im stuck in relationships hell. My app tracks sports events, and i have what should be a rea...
Hi, I am making photo kiosk application. My problem is how to make an uploaded image as a product? C...
hello everyone im new in Laravel 4 (this is first time i use it) i try to make a small project using...
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