database/seeds/SliderTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $faker = Faker\Factory::create();
        foreach (range(1, 10) as $value) {
            Slider::create([
                'title' => $faker->text,
                'sub_title' => 'Would YOU like cats if you were never even spoke to Time',
            ]);
        }
    }
public function run ( ) { $ faker = Faker \ Factory :: create ( ) ; foreach ( range ( 1 , 10 ) as $ value ) { Slider :: create ( [ 'title' => $ faker -> text , 'sub_title' => 'Would YOU like cats if you were never even spoke to Time' , ] ) ; } }
Run the database seeds.
Run the database seeds .