For PHP Storm you got to install this plugin
https://github.com/barryvdh/laravel-ide-helper
this is the order in what that plugins works on my end APRIL 2023
composer require --dev barryvdh/laravel-ide-helper
add this to providers -> config/app.php
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
RUN THIS CODE
php artisan clear-compiled
php artisan ide-helper:generate
ADD THIS TO THE MODEL that you wish to have this feature working - note that this need to go on top of the class
use Eloquent;
/**
* @mixin Eloquent
*/
class User extends Authenticatable
{