I created User Controller policy. In User controller there is a method like this:
public function create(Request $request){
$this->authorize($request->user());
return view('frontpage');
}
Policy for this method works pretty fine, except one thing - If is action unauthorized, laravel fires this:
This action is unauthorized.
Instead, I want it to fire 403 error. How to do this?