database/seeders/StateSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $states = [
          [
              'id' => '1',
              'name' => 'Abu dhabi',
              'company_id' => 1,
              'user_id' => 1,
              'country_id' => 1,
          ],
        ];
        State::insert($states);
    }
public function run ( ) { $ states = [ [ 'id' => '1' , 'name' => 'Abu dhabi' , 'company_id' => 1 , 'user_id' => 1 , 'country_id' => 1 , ] , ] ; State :: insert ( $ states ) ; }
Run the database seeds.
Run the database seeds .