Support the ongoing development of Laravel.io →

4,314 Threads

[SOLVED] migrate multi tenant app

I have a client table with id, version, subdomain columns. Each client has a subdomian client1.examp...

0 Likes
1 Replies

Compiling Laravel View in Controller?

I'm currently using Handlebars.js to compile views with ajax data. The issue is that I can't use Lar...

0 Likes
1 Replies

Eloquent deleting model event doesn't fire

I have 2 models defined: Program model: class Program extends \Eloquent { protected $guarded =...

0 Likes
8 Replies
Solved

Call to undefined method TrainingFacade::save()

I'm building a Laravel 4.2 app and I'm using Creolab's Modules package. It's an app for managing com...

0 Likes
0 Replies

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 10 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 10 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 10 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 10 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

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.

© 2025 Laravel.io - All rights reserved.