Support the ongoing development of →
Session Architecture
Last updated 1 year ago.


use Schema;
use Session;

Or without "use", call them like:


many thanks to Ognjen. I've tried

use Illuminate\Database\Schema\Builder;

but the solution is just

use Schema;

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


Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.