Ok @BSP , I will help you.
First ,... dont declare the middleware in the routes.php file, declare it IN THE CONTROLLER like this.
class MyController extends Controller
{
public function __construct() {
$this->middleware('auth')->except(['show']);
}
}
then in the controller edit you show() function,like this (attention to the pseudo-code)
public function show(variable1, variable2, variableN) {
if ( auth()->check() ) {
//if the user is logged in ... redirect to some page
return redirect('/some/url/here');
} else {
//if the user is NOT logged in ... redirect to some other page
return redirect('/other/url/here');
}
}
ideally you will treat your own argument variables in the show function n order to properly translate urls, so ... do your coding.
well ... I hope this helps you, please mark the asnwer as correct if is what you needed.
Regards.