Exemplo n.º 1
0
 protected function setUserIsAdmin()
 {
     $group = $this->createSentryGroup('admins', ['superuser' => 1]);
     $user = $this->createSentryUser('Admin', '*****@*****.**', true, [$group]);
     return Sentinel::setUser($user);
 }