database/seeds/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()
    {
        \App\User::create([
        'name'=>'admin',
        'email'=>'admin@admin.com',
        'password'=>bcrypt("admin123"),
        'type'=>\App\User::ADMIN,
    ]);
        $this->call(UsersTableSeeder::class);
    }
public function run ( ) { \ App \ User :: create ( [ 'name' => 'admin' , 'email' => 'admin@admin.com' , 'password' => bcrypt ( " admin123 " ) , 'type' => \ App \ User :: ADMIN , ] ) ; $ this -> call ( UsersTableSeeder :: class ) ; }
Seed the application's database.
Seed the application ' s database .