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