Basically what's described in this post.
In PHPStorm there is no code hinting for the eloquent methods - which is quite confusing (I am just learning Eloquent).
None of the provided solutions are working for Laravel 6+ it seems. Currently using Laravel 8. Wanted to push this topic again - maybe someone found a fitting solution already.
Code Example:
app\Models\Article.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
use HasFactory;
}
Controller:
use App\Models\Article;
$article = Article::where(...); //no code hint
Happens to pretty much all methods.