コード例 #1
0
ファイル: DnsRequest.php プロジェクト: adhikjoshi/D-provider
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     if (\Auth::guest()) {
         return false;
     }
     return parent::authorize();
 }
コード例 #2
0
ファイル: BaseRequest.php プロジェクト: adhikjoshi/D-provider
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     if (!Auth::user()->isAdmin()) {
         return false;
     }
     return parent::authorize();
 }