Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php artisan migrate: Class Schema not found

When doing a migration, in the Windows console I execute the command:

php artisan migrate

When I run the command, it shows me the following error:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Market\Providers\Schema' not found

I would be very grateful if anyone can help me.

like image 785
FranMoronR Avatar asked May 05 '17 13:05

FranMoronR


1 Answers

add following line on the top of that page (AppServiceProvider.php under providers directory)

use Illuminate\Support\Facades\Schema;

or

use Schema;
like image 144
Sabyasachi Ghosh Avatar answered Oct 09 '22 05:10

Sabyasachi Ghosh