database/seeds/SlideSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('slides')->insert([
            [
                'id'=>1,
                'image'=>'banner1.jpg'
            ],
            [
                'id'=>2,
                'image'=>'banner5.jpg'
            ],
            [
                'id'=>3,
                'image'=>'banner3.jpg'
            ],
            ]);
    }
public function run ( ) { DB :: table ( 'slides' ) -> insert ( [ [ 'id' => 1 , 'image' => 'banner1.jpg' ] , [ 'id' => 2 , 'image' => 'banner5.jpg' ] , [ 'id' => 3 , 'image' => 'banner3.jpg' ] , ] ) ; }
Run the database seeds.
Run the database seeds .
//