public function authorize(Authentication $auth) { $userId = $this->route('id'); return $auth->check()->id == $userId || $auth->inRole('admin'); }
public function authorize(Authentication $auth) { $userId = $this->route('id'); return $auth->check()->id == $userId || $auth->inRole('admin'); }