database/seeds/AdminsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $admin=Admin::where('email','t@2.com')->first();
        if (!$admin) {
          Admin::create([
            'name'=>'Admin',
            'email'=>'t@2.com',
            'password'=>Hash::make('wertyuiop'),
          ]);
        }
    }
public function run ( ) { $ admin = Admin :: where ( 'email' , 't@2.com' ) -> first ( ) ; if ( ! $ admin ) { Admin :: create ( [ 'name' => 'Admin' , 'email' => 't@2.com' , 'password' => Hash :: make ( 'wertyuiop' ) , ] ) ; } }
Run the database seeds.
Run the database seeds .