Exemplo n.º 1
0
 public function edit($id)
 {
     if (Auth::hasPermission('update')) {
         return $this->roles->find($id);
     }
     throw new UnauthorizedException();
 }