database/seeds/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        factory(User::class)->create([
            'email' => 'admin@gmail.com',
            'password' => Hash::make('admin'),
        ]);
        factory(User::class)->create();
        factory(Article::class)->times(20)->create();
        factory(Comment::class)->times(20)->create();
    }
public function run ( ) { factory ( User :: class ) -> create ( [ 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( 'admin' ) , ] ) ; factory ( User :: class ) -> create ( ) ; factory ( Article :: class ) -> times ( 20 ) -> create ( ) ; factory ( Comment :: class ) -> times ( 20 ) -> create ( ) ; }
Seed the application's database.
Seed the application ' s database .
// $this->call(UserSeeder::class);