/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if (\Auth::guest()) { return false; } return parent::authorize(); }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if (!Auth::user()->isAdmin()) { return false; } return parent::authorize(); }