routing how to index page in view /folder from the route
please could anyone guide me I have a route that I want to link to a page in views /folder the file is in the folder so as the controller is in controller /folder how do I reference this in route so far I have this
public function getSignin()
{
// Is the user logged in?
if (Auth::check())
{
return Redirect::route('welcome');
}
// Show the page
return View('folder.login');
}
public function getSignin()
{
// Is the user logged in?
if (Auth::check())
{
//return Redirect::route('welcome');
return redirect()->route('view.welcome');
}
// Show the page
return View('auth.login');
}
@SaeedPrez
thanks for your help I have run the list controller command and got that my controllers do not exist the controllers are in controller and in folder auth
{controller/auth/thecontroller.php}
the command gives me this path
App\Http\Controllers\auth.AuthController does not exist
``
how do I reference that on route
If I may be frank, your knowledge of Laravel is very limited and you lack even the very fundamentals. I think you will benefit a lot more if you invest some time in yourself and watch this video series a couple of times or until you understand it. It will save you a lot of future headaches and a lot of time.