Method 'create' not found in class Illuminate\Support\Facades\Schema

南笙酒味 提交于 2019-12-14 01:06:19

问题


I'm using Laravel 5.3, in PhpStorm there is error under the method 'create' and many other methods. I tried all the ide_helpers but nothing resolved it

is there anyway to resolve this and the autocomplete?


回答1:


I found the answer the problem was with the use lines :

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

first line should be replaced with:

use Schema;


来源:https://stackoverflow.com/questions/39964026/method-create-not-found-in-class-illuminate-support-facades-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!