Support the ongoing development of Laravel.io →

4,599 Threads

Need to create a override table function?

Illuminate \ Database \ QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'suppl...

0 Likes
1 Replies

eloquent - set value from sql select query

How can I do the following using eloquent? INSERT INTO table (column) VALUES (select max(id) from ta...

0 Likes
1 Replies

Access denied error when running 'php artisan migrate', using remote mysql db.

Hi, I'm trying to execute: % php artisan migrate and I get the following error: [PDOException] SQLST...

0 Likes
0 Replies

Eloquent model events not firing when using relations?

I have a typical event hook for soft deleting children: public static function boot() { parent::boo...

0 Likes
1 Replies

Database design with different users

#Dear people and cats. Do anyone have a smart idea of how to design a user table with different user...

0 Likes
2 Replies

Nested relationships when parent is a many-to-many relationship

Hi, I have these three models: Building (table: buildings) Object (table: objects) BuildingType (tab...

quyle92 liked this thread

1 Likes
21 Replies
Solved

Mysql silently fails when updating relations using sync()

I am posting arrays of related field ids using the product id as the key, to my controller: $input...

0 Likes
1 Replies
Solved

Advice on crating database properties

Hi guys, This question might be more of a generic database design question, but I'm using it for a L...

0 Likes
2 Replies
posted 10 years ago

Stuck adding something to existing Laravel web app

At a computer repair shop we are using a Laravel web application to manage our repairs, customers, t...

0 Likes
26 Replies
posted 10 years ago

How to get the next highest value in database?

Hi! Assuming that I have this score column in my database; 41 41 45 48 50 I have a $number variable...

0 Likes
4 Replies

multi level eloquent relations

I'm getting super confused with this small part time project I am working on. I have a Movie model,...

0 Likes
3 Replies

Laravel multi image upload with Ajax

Is there any resources/tutorial on How to upload multiple images using ajax? I have found jq lib: ht...

0 Likes
2 Replies

paginate bug

Hello, guys! Help me please, sorry for my english :) I have bug with paginate, example: $products =...

0 Likes
2 Replies

Eloquent will also assume that each table has a primary key column named id

Eloquent will also assume that each table has a primary key column named id. So I change it like thi...

0 Likes
4 Replies
Solved

Lavarel Post Array Data İnsert Db

Hİ, ******Var_dump Post array(2) { ["lang"]=> array(2) { [0]=> string(2) "en&qu...

0 Likes
5 Replies
Solved

Error during upload project on web server

I have created laravel project on my local server. Now I have uploaded my project on web server. I h...

0 Likes
1 Replies
Solved

How to extend Builder to add custom where function

Hi. I'm trying to add some postgresql functionality to Eloquent. I've already made it so I can migra...

0 Likes
0 Replies

LeftJoin and Hydrated Relations

I have this models: class Users extends \Illuminate\Database\Eloquent\Model { protected $table =...

0 Likes
0 Replies

Eloquent: hydrate a native JOIN query

Hi all, i'm evaluating Eloquent ORM in a project. The DBA won't allow me to do the 1+1 select querie...

0 Likes
1 Replies

Table seeder works individually but not as the last seeder called in the DatabaseSeeder seed sequence?

I have a seeder that ended up working when I added protected $guarded = ['id'] to the model class of...

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.