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()
    {
        Model::unguard();
        $this->call([
            UsersTableSeeder::class,
            CategoriesTableSeeder::class,
            BlogsTableSeeder::class,
            CommentsTableSeeder::class,
        ]);
    }
public function run ( ) { Model :: unguard ( ) ; $ this -> call ( [ UsersTableSeeder :: class , CategoriesTableSeeder :: class , BlogsTableSeeder :: class , CommentsTableSeeder :: class , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();