Gerbang Laravel

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