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