Class 'Illuminate\Support\facades\Schema'

2019-09-16 10:50发布

I am working with Laravel5.4. When I use socialite package to login with Facebook, I need to add this line of

Schema::defaultStringLength(191);

to boot function of AppServiceProvider class in order to create default password for new user.

Beside that I have to add using statement at top of AppServiceProvider class like this

use Illuminate\Support\facades\Schema;

Everything is working well on my localhost but when I upload all code to my share hosting, I get this error

Class 'Illuminate\Support\facades\Schema' not found.

Can anyone help me on this. I am highly appreciated your help!

标签: laravel-5
7条回答
戒情不戒烟
2楼-- · 2019-09-16 11:49

In my case, I use capital letter its work.

use Illuminate\Support\facades\Schema;

replace with this

use Illuminate\Support\Facades\Schema;
查看更多
登录 后发表回答