04-25-2019, 08:00 PM
Ok. So....
1. Redirect::to($us_url_root.$user->data()->id->admin. "101/index.php") ;
will redirect you to something that doesn't exist because $user->data()->id->admin doesn't exist. I also don't know what the 101 is
If you are trying to get a user named admin to go to a link like mydomain.com/admin101/index.php that is
Redirect::to($us_url_root.$user->data()->username. "101/index.php") ;
If you just want him to go to mydomain.com/admin/index.php that is
Redirect::to($us_url_root.$user->data()->username. "/index.php") ;
2. Redirect::to($us_url_root.$user->data()->id->Steven."calendar/");
if you are trying to redirect a user named steven to mydomain.com/Steven/calendar that is
Redirect::to($us_url_root.$user->data()->username. "/calendar") ;
$user->data()->username will output the username of the logged in user, so you don't need to type it out.
1. Redirect::to($us_url_root.$user->data()->id->admin. "101/index.php") ;
will redirect you to something that doesn't exist because $user->data()->id->admin doesn't exist. I also don't know what the 101 is
If you are trying to get a user named admin to go to a link like mydomain.com/admin101/index.php that is
Redirect::to($us_url_root.$user->data()->username. "101/index.php") ;
If you just want him to go to mydomain.com/admin/index.php that is
Redirect::to($us_url_root.$user->data()->username. "/index.php") ;
2. Redirect::to($us_url_root.$user->data()->id->Steven."calendar/");
if you are trying to redirect a user named steven to mydomain.com/Steven/calendar that is
Redirect::to($us_url_root.$user->data()->username. "/calendar") ;
$user->data()->username will output the username of the logged in user, so you don't need to type it out.