I have two tables, manufacturers & models that I'm seeding via factories. ManufacturersFactory:...
I am using https://github.com/nWidart/laravel-modules and have a module Cars. In CarsDatabaseSeeder...
I want to build a comprehensive practice project. I am a virtual Laravel virgin. This project will i...
I have a seeder that ended up working when I added protected $guarded = ['id'] to the model class of...
Here is part of my Listing model file: public function model() { return $this->belongsTo('Model'...
That made an error when I refreshed my migrations..? (Before I'd just left my down function drop_uni...
What I ended up with: public function run() { DB::table('models')->delete(); $records = [...
$records = [['Echo', 'Toyota']]; $manufacturer_id = DB::table('manufacturers') ->where('name', '...
Ok unfortunately it's still not quite working when I specify id as an array element. <?php class...
The Laravel portal for problem solving, knowledge sharing and community building.