In the “authorizeRoles($roles)” method, instead of throwing an exception you can change the line:
everton zp

Thanks for replying, I tried adding the eturn redirect(‘/welcome’)->with('status', 'Unauthorized!'); but it just throws up an error.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.