database/seeders/SliderSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        for ($i = 0; $i < 3; $i++) {
            $slider = new Slider;
            $slider->image = 'upload/slider/slider' . $i . '.jpg';
            $slider->save();
        }
    }
public function run ( ) { for ( $ i = 0 ; $ i < 3 ; $ i ++ ) { $ slider = new Slider ; $ slider -> image = 'upload/slider/slider' . $ i . '.jpg' ; $ slider -> save ( ) ; } }
Run the database seeds.
Run the database seeds .