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()
    {
    	$faker = Faker::create();
        Admin::create([
            'name'      =>  $faker->name,
            'email'     =>  'admin@admin.com',
            'password'  =>  bcrypt('password'),
        ]);
    }
public function run ( ) { $ faker = Faker :: create ( ) ; Admin :: create ( [ 'name' => $ faker -> name , 'email' => 'admin@admin.com' , 'password' => bcrypt ( 'password' ) , ] ) ; }
Run the database seeds.
Run the database seeds .
//creating a new instance of the faker library by calling its create method //creating a new admin entry