In the AppServiceProvider.php, you did not include the necessary use statement at the top of the file. use Illuminate\Support\Facades\Schema;