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()
    {
        $this->call(CollectiviteTableSeeder::class);
        $this->command->info("Collectivite table seeded!");
        $this->call(CreateAdminUserSeeder::class);
        $this->command->info("AdminUser table seeded!");
        $this->call(CreateRoleSeeder::class);
        $this->command->info("Rôle table seeded!");
        $this->call(PermissionTableSeeder::class);
        $this->command->info("Permission table seeded!");
    }
public function run ( ) { $ this -> call ( CollectiviteTableSeeder :: class ) ; $ this -> command -> info ( " Collectivite table seeded! " ) ; $ this -> call ( CreateAdminUserSeeder :: class ) ; $ this -> command -> info ( " AdminUser table seeded! " ) ; $ this -> call ( CreateRoleSeeder :: class ) ; $ this -> command -> info ( " Rôle table seeded!" ) ; $ this -> call ( PermissionTableSeeder :: class ) ; $ this -> command -> info ( " Permission table seeded! " ) ; }
Seed the application"s database.
Seed the application " s database .
// \App\Models\User::factory(10)->create();