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::create([
            'name' => 'Admin',
            'email' => 'admin@gmail.com',
            'password' => Hash::make('admin321'),
            'role' => 'admin',
            'status' => 'active'
        ]);
        $this->call([
            GejalaSeeder::class,
            KlasifikasiSeeder::class,
            SolusiSeeder::class,
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => 'Admin' , 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( 'admin321' ) , 'role' => 'admin' , 'status' => 'active' ] ) ; $ this -> call ( [ GejalaSeeder :: class , KlasifikasiSeeder :: class , SolusiSeeder :: class , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();