public function setupAdmin()
{
$this->seed();
$this->admin = User::where('email', 'admin@admin.com')->first();
$role = Role::firstOrCreate(['name' => 'admin']);
$permission = Permission::all();
$this->admin->assignRole($role);
$this->admin->givePermissionTo($permission);
}
public function setupAdmin()
{
$this->seed();
$this->admin = User::where('email', 'admin@admin.com')->first();
$role = Role::firstOrCreate(['name' => 'admin']);
$permission = Permission::all();
$this->admin->assignRole($role);
$this->admin->givePermissionTo($permission);
}