database/seeds/StatesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
      $list = [
        ['state_description' => 'Bij eigenaar'],
        ['state_description' => 'Aangeboden aan lener'],
        ['state_description' => 'Bij lener'],
        ['state_description' => 'Aangeboden aan eigenaar'],
      ];
      foreach ($list as $item) {
        DB::table('states')->insert($item);
      }
    }
public function run ( ) { $ list = [ [ 'state_description' => 'Bij eigenaar' ] , [ 'state_description' => 'Aangeboden aan lener' ] , [ 'state_description' => 'Bij lener' ] , [ 'state_description' => 'Aangeboden aan eigenaar' ] , ] ; foreach ( $ list as $ item ) { DB :: table ( 'states' ) -> insert ( $ item ) ; } }
Run the database seeds.
Run the database seeds .