I'm building a page with 2 logins. So every login has its own blade file. The redirect happens in the LoginController.php i replace this protected $redirectTo = '/page1'; with
function redirectTo(){
if(true){
return '/page1';
} else {
return '/page2';
}
}
It works, that means that it doesn't throw an error. But how can I pass an argument to this function and at which place/file this function is being called?