database/seeds/CategoriesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $faker = Faker::create();
        for( $i=0 ; $i<10 ; $i++){
        $array = [
            'name'          => $faker->word,
            'meta_keywords' => $faker->name,
            'meta_des'      => $faker->name
        ];
        Category::create($array);
      }
    }
public function run ( ) { $ faker = Faker :: create ( ) ; for ( $ i = 0 ; $ i < 10 ; $ i ++ ) { $ array = [ 'name' => $ faker -> word , 'meta_keywords' => $ faker -> name , 'meta_des' => $ faker -> name ] ; Category :: create ( $ array ) ; } }
Run the database seeds.
Run the database seeds .