Illuminate \ Database \ QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'suppl...
How can I do the following using eloquent? INSERT INTO table (column) VALUES (select max(id) from ta...
Hi, I'm trying to execute: % php artisan migrate and I get the following error: [PDOException] SQLST...
I have a typical event hook for soft deleting children: public static function boot() { parent::boo...
#Dear people and cats. Do anyone have a smart idea of how to design a user table with different user...
Hi, I have these three models: Building (table: buildings) Object (table: objects) BuildingType (tab...
quyle92 liked this thread
I am posting arrays of related field ids using the product id as the key, to my controller: $input...
Hi guys, This question might be more of a generic database design question, but I'm using it for a L...
At a computer repair shop we are using a Laravel web application to manage our repairs, customers, t...
Hi! Assuming that I have this score column in my database; 41 41 45 48 50 I have a $number variable...
I'm getting super confused with this small part time project I am working on. I have a Movie model,...
Is there any resources/tutorial on How to upload multiple images using ajax? I have found jq lib: ht...
Hello, guys! Help me please, sorry for my english :) I have bug with paginate, example: $products =...
Eloquent will also assume that each table has a primary key column named id. So I change it like thi...
Hİ, ******Var_dump Post array(2) { ["lang"]=> array(2) { [0]=> string(2) "en&qu...
I have created laravel project on my local server. Now I have uploaded my project on web server. I h...
Hi. I'm trying to add some postgresql functionality to Eloquent. I've already made it so I can migra...
I have this models: class Users extends \Illuminate\Database\Eloquent\Model { protected $table =...
Hi all, i'm evaluating Eloquent ORM in a project. The DBA won't allow me to do the 1+1 select querie...
I have a seeder that ended up working when I added protected $guarded = ['id'] to the model class of...
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