list trips
add, remove flights
This commit is contained in:
21
database/seeds/TripsSeeder.php
Executable file
21
database/seeds/TripsSeeder.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class TripsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
dd('here');
|
||||
factory(App\Libraries\Trips\Models\Trips::class, 5)
|
||||
->create()
|
||||
->each(function ($trip) {
|
||||
$trip->flights->save(factory(App\Libraries\Trips\Models\Flights::class, 2)->make());
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user