OR you can just simply define these methods in your base controller so newly hired devs won't be frustrated trying to find these methods not knowing they're macros 😐
You can use the laravel-ide-helper composer package for generating these LSP stubs. It works for any editor. Usually you want to do: php artisan ide-helper:generate php artisan ide-helper:models -M -N php artisan ide-helper:meta This will unlock all of the autocomplete potential of intelephense