database/seeders/AddAdminSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('users')->insert([
            'firstname' => 'Mashiyyat',
            'lastname' => 'Delos Santos',
            'contact' => '09982205660',
            'role' => 'admin',
            'address' => 'none',
            'slug' => 'none',
            'email' => 'delossantos.mash@gmail.com',
            'password' => Hash::make('11111111'),
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'firstname' => 'Mashiyyat' , 'lastname' => 'Delos Santos' , 'contact' => '09982205660' , 'role' => 'admin' , 'address' => 'none' , 'slug' => 'none' , 'email' => 'delossantos.mash@gmail.com' , 'password' => Hash :: make ( '11111111' ) , ] ) ; }
Run the database seeds.
Run the database seeds .