What is the class Path for Laravel Auth Class I want it on my Home Controller
FatalErrorException in HomeController.php line 29: Class
'App\Http\Controllers\Auth' not found
What is the class Path for Laravel Auth Class I want it on my Home Controller
FatalErrorException in HomeController.php line 29: Class
'App\Http\Controllers\Auth' not found
I supose you are using the Auth
class in your php files. You should place a \
in front of the class name to let the parse know this is in the root namespace.
For example, like this:
\Auth::check();
Alternatively, you can add the following line on top of your class:
use Auth;
This will let the parser know where the Auth class is.