Esempio n. 1
0
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     $postId = $this->route('article');
     return Gate::allows('update', Post::findOrFail($postId));
     // return true;
 }