Support the ongoing development of Laravel.io →

4,311 Threads

Eloquent join 2 or more table with group by

So, i tried to join 2 table (or more, but in this question i will try join only 2) and want to group...

0 Likes
0 Replies

How to preform custom search in Laravel?

I have a table with many fields in which I need to perform a search. The main problem is that this s...

0 Likes
0 Replies

Postgres PDO or toArray returns integer table fields as string

Dear All I use laravel 4.2 with PostreSQL. When I select row and fetch with toArray and make JSON ou...

0 Likes
1 Replies
posted 9 years ago

Problem accessing eager loaded information

I'm having problems accessing the eager loaded specs below: // This is the actual code public functi...

0 Likes
1 Replies
Solved

How could I use pcntl in laravel

I user pcntl want to start multi process, but when i pass Model to sub-process, It show the error:...

0 Likes
1 Replies
Solved

Cascading/Dependent dropdown list

Hi All, I'm a relative newb to Laravel with not much understanding of javascript. I'm trying to get...

0 Likes
5 Replies
posted 9 years ago

Getting the same value in ID Column

I have two tables 1.Department 2.Subdepartment Department have many subdepartment. Subdepartment hav...

0 Likes
1 Replies

Eloquent set model integer value to 0, gives massive problems

Hey there, When i insert a row to the database ( scheme below ) //scheme Schema::create('result', fu...

0 Likes
1 Replies

Insert Array is not updating timestamps

I'm trying to insert an array of data into db using the below function. User::insert($array) It ins...

0 Likes
2 Replies

Remove polymorphic relationships

Hi, I've 3 models in my app, Document belongs to User or Group: class Document extends Eloquent {...

0 Likes
3 Replies
posted 9 years ago

belongsTo model method inconsistent behavior

So I have two tables users -id -name assets -id -name -user_id I want to say a user has many...

0 Likes
8 Replies

Laravel sorting + pagination help

Use Case: Select from users table with certain parameters (group_id, maybe a search term, etc.)...

0 Likes
0 Replies
posted 9 years ago

Query Builder in Laravel "condition"

Hi mates! I have condition in my query how can i do this in Laravel? Post::select('id, name'); if(is...

0 Likes
1 Replies

Cascade Delete Pivot Row on polymorphic relationships

I noticed that if I $mymodel->forceDelete() an item that has a polymorphic relationship, the row...

0 Likes
2 Replies

Location seach with group by and count

Is there any way to do this in either query builder or eloquent so I can easily chain in where claus...

0 Likes
0 Replies

How to update record in database

How can I update record in database? When I tried to use updateOrCreate i just got this error. SQLST...

0 Likes
4 Replies
Solved
posted 9 years ago

withWhereHas()

When working with Eloquent, I often find myself typing code that looks like: $someting = Email::wh...

0 Likes
2 Replies
posted 9 years ago

Relationships hell, seems like it should be real simple, not sure how to implement it

Hi all, im stuck in relationships hell. My app tracks sports events, and i have what should be a rea...

0 Likes
2 Replies

Uploaded image as product.

Hi, I am making photo kiosk application. My problem is how to make an uploaded image as a product? C...

0 Likes
1 Replies

How to show catagory parent of category in view

hello everyone im new in Laravel 4 (this is first time i use it) i try to make a small project using...

0 Likes
6 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.