when i run below command in my terminal it shows below code instead of routes
php artisan route:list
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="1;url=http://localhost/login" />
<title>Redirecting to http://localhost/login</title>
</head>
<body>
Redirecting to <a href="http://localhost/login">http://localhost/login</a>.
</body>
</html>
[Symfony\Component\Debug\Exception\FatalThrowableError] Fatal error: Class 'App\Http\Controllers\Redirect' not found
The only thing that you have to do is to add:
use Redirect;
in your controller just after namespace
line or put \
before you call Redirect::
i.e.:
return \Redirect::back();
You have to import the class. This is the one you need:
use Illuminate\Support\Facades\Redirect;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With