database/seeds/PartnerSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Partner::query()->delete();
        Partner::insert(
            [
                [
                    'name' => 'Mohamed',
                    'city_id' => 1
                ],
                [
                    'name' => 'Hassan',
                    'city_id' => 2
                ],
                [
                    'name' => 'Nada',
                    'city_id' => 3
                ],
            ]
        );
    }
public function run ( ) { Partner :: query ( ) -> delete ( ) ; Partner :: insert ( [ [ 'name' => 'Mohamed' , 'city_id' => 1 ] , [ 'name' => 'Hassan' , 'city_id' => 2 ] , [ 'name' => 'Nada' , 'city_id' => 3 ] , ] ) ; }
Run the database seeds.
Run the database seeds .