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::create([
            'name' => 'Admin',
            'email' => 'admin@admin.com',
            'password' => bcrypt('password'),
            'is_admin' => 1
        ]);
        User::create([
            'name' => 'User',
            'email' => 'user@user.com',
            'password' => bcrypt('password'),
            'is_admin' => 0
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => 'Admin' , 'email' => 'admin@admin.com' , 'password' => bcrypt ( 'password' ) , 'is_admin' => 1 ] ) ; User :: create ( [ 'name' => 'User' , 'email' => 'user@user.com' , 'password' => bcrypt ( 'password' ) , 'is_admin' => 0 ] ) ; }
Run the database seeds.
Run the database seeds .