php artisan migrate: Class Schema not found

FranMoronR picture FranMoronR · May 5, 2017 · Viewed 17.3k times · Source

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.

Answer

Sabyasachi Ghosh picture Sabyasachi Ghosh · Sep 17, 2017

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

use Illuminate\Support\Facades\Schema;

or

use Schema;