Support the ongoing development of Laravel.io →
Session Architecture
Last updated 2 years ago.
0
Solution

Add:

use Schema;
use Session;

Or without "use", call them like:

\Session::some_method();
\Schema::some_method();
0

many thanks to Ognjen. I've tried

use Illuminate\Database\Schema\Builder;

but the solution is just

use Schema;
0

Brother Ognjen,

I shall give up my throne to you if i had one! Thank you very much for this solution i tried the same thing what hansnataniel tried, But i was not getting that class not foud error instead i got some stupid Fatal Error which gave me no proper idea

Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in /var/www/html/edu-lara-5/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /var/www/html/edu-lara-5/app/Exceptions/Handler.php:25 Stack trace: #0 /var/www/html/edu-lara-5/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler->report(Object(Error)) #1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error)) #2 {main} thrown

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.