Method 'create' not found in class Illumin

2019-06-27 04:26发布

问题:

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;