database/seeds/SliderSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Slider::create([
            'title' => 'Happy Teej',
            'image' => 'image',
            'type' => 'Type',
            'expires_on' => '2020-08-11 12:00:00'
        ]);
        Slider::create([
            'title' => 'Happy Dashain',
            'image' => 'image',
            'type' => 'Type',
            'expires_on' => '2020-08-11 12:00:00'
        ]);
        Slider::create([
            'title' => 'Happy Tihar',
            'image' => 'image',
            'type' => 'Type',
            'expires_on' => '2020-08-11 12:00:00'
        ]);
    }
public function run ( ) { Slider :: create ( [ 'title' => 'Happy Teej' , 'image' => 'image' , 'type' => 'Type' , 'expires_on' => '2020-08-11 12:00:00' ] ) ; Slider :: create ( [ 'title' => 'Happy Dashain' , 'image' => 'image' , 'type' => 'Type' , 'expires_on' => '2020-08-11 12:00:00' ] ) ; Slider :: create ( [ 'title' => 'Happy Tihar' , 'image' => 'image' , 'type' => 'Type' , 'expires_on' => '2020-08-11 12:00:00' ] ) ; }
Run the database seeds.
Run the database seeds .