问题
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