database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        User::truncate();
        User::create([
            'name' => 'Admin Aplikasi',
            'level' => 'admin',
            'email' => 'admin@admin.com',
            'password' => bcrypt('admin'),
            'remember_token' => Str::random(60),
        ]);
    }
public function run ( ) { User :: truncate ( ) ; User :: create ( [ 'name' => 'Admin Aplikasi' , 'level' => 'admin' , 'email' => 'admin@admin.com' , 'password' => bcrypt ( 'admin' ) , 'remember_token' => Str :: random ( 60 ) , ] ) ; }
Run the database seeds.
Run the database seeds .