database/seeds/AdminSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $adminUser = [
            [
                'name' 	=> 'AFL Admin',
                'email'    => 'admin@afl.com',
                'email_verified_at' => date("Y-m-d h:i:s"),
                'password'    => Hash::make('admin123'),
                'created_at' 	=> date("Y-m-d h:i:s"),
                'updated_at' 	=> date("Y-m-d h:i:s"),
                'role_id'       => config('constants.roles.admin')
            ],
        ];
        DB::table('users')->insert($adminUser);
    }
public function run ( ) { $ adminUser = [ [ 'name' => 'AFL Admin' , 'email' => 'admin@afl.com' , 'email_verified_at' => date ( " Y-m-d h:i:s " ) , 'password' => Hash :: make ( 'admin123' ) , 'created_at' => date ( " Y-m-d h:i:s " ) , 'updated_at' => date ( " Y-m-d h:i:s " ) , 'role_id' => config ( 'constants.roles.admin' ) ] , ] ; DB :: table ( 'users' ) -> insert ( $ adminUser ) ; }
Run the database seeds.
Run the database seeds .