//UpdatePostRequest.php public function authorize() { return Gate::authorize('update',request()->post); }