database/seeds/BooksTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('books')->truncate();
        foreach ($this->mock as $mock) {
            DB::table('books')->insert($mock);
        }
    }
public function run ( ) { DB :: table ( 'books' ) -> truncate ( ) ; foreach ( $ this -> mock as $ mock ) { DB :: table ( 'books' ) -> insert ( $ mock ) ; } }
Run the database seeds.
Run the database seeds .