protected function destroy($request, $response, $args)
 {
     Role::destroy($args['id']);
     return $response;
 }
Exemplo n.º 2
0
 public function getPublicToken()
 {
     $role = Role::where('rolename', 'public')->firstOrFail();
     return $this->generateToken($role, false);
 }