laravel id-helpeClass 'App\Models\Eloquent' 未找到

问题描述 投票:0回答:1

我刚刚开始在 phpstorm 中使用 laravel ide-helper 并想记录我的模型。

我运行了命令

php artisan ide-helper:models
但出现错误:

'App\Models\Eloquent' not found 

读完后,似乎错误在于我的模型扩展的内容 - 我的模型类如下所示:

<?php namespace App\Models;

use \Illuminate\Database\Eloquent\Model;

class Article extends Model { }

这是 Laravel 文档中的标准集,由生成器创建。

有没有办法解决这个问题,以便我可以使用助手生成文档,或者我按原样保留。

有点困惑

谢谢

laravel phpstorm
1个回答
0
投票

你必须包含 Eloquent(没有 PATH)

use Eloquent;
© www.soinside.com 2019 - 2024. All rights reserved.