database/seeders/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()
    {
        User::factory(10)->create();
        Content::factory(10)->create();
        Content::factory(10)
            ->hasComments(3)
            ->create();
    }
public function run ( ) { User :: factory ( 10 ) -> create ( ) ; Content :: factory ( 10 ) -> create ( ) ; Content :: factory ( 10 ) -> hasComments ( 3 ) -> create ( ) ; }
Seed the application's database.
Seed the application ' s database .