Class 'App\Http\Controllers\Session' not found
18,460
Solution 1
You can add use Session;
to the top of the class.
Or use full namespace, like \Session::
Or just use the session()
helper instead of the facade.
Solution 2
Use this
use Illuminate\Support\Facades\Session;
Solution 3
You just need to import session Facade:
use Illuminate\Support\Facades\Session;
or you can use the class like this :
\Session::
Author by
Admin
Updated on June 20, 2022Comments
-
Admin almost 2 years
I'm new in laravel. Having problem to show session temporary flash message. Can not rescue from this error
Class 'App\Http\Controllers\Session' not found What to do?