here are my routes:
Route::get('/', 'SessionController@create');
Route::post('/', 'SessionController@store');
Route::get('/logout', 'SessionController@destroy');
Route::get('/cliente', function () {
return view('sessions.homeCliente');
});
Route::get('/staff', function () {
return view('sessions.homeStaff');
});
and the methods create and store in my sessioncontroller:
public function create(){
return view('sessions.create');
}
public function store(){
//intento de iniciar session
$request=request(['usuario','password']);
if(!auth()->attempt($request)){
return redirect('/prueba');
}
//redirigir a donde se necesite
if(User::getCliente($request['usuario'])==0){
return redirect('/staff');
}
return redirect('/cliente');
}
I Do not have access as root because is a sharing hosting, so I can not run composer install, is that why is not working?
another think, the "home page" is in thihs route "http://sioma.site/laravel_sioma/public/" beacuse this is for testing, si I can not just put the files in laravel's public folder into the public folder in the hosting.
If you need any other info just let me know.