maksmartyn / laravel-ide-helper
Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.
Requires
- php: ~8.2
- barryvdh/laravel-ide-helper: ^3.6
- larastan/larastan: ^3.1
- phar-io/manifest: ^2.0
- phpstan/phpstan: ^2.1
This package is auto-updated.
Last update: 2025-09-22 16:48:58 UTC
README
This package is based on the barryvdh/laravel-ide-helper package and adds PHPDoc generation functionality for models based on Laravel migrations (no database connection required). It uses the phpstan/phpstan package, and specifically larastan/larastan, to generate model property types from migration files.
Installation
You can install the package via composer:
composer require maksmartyn/laravel-ide-helper
Usage
To generate the PHPDocs for your models, you can run the following command:
php artisan ide-helper:models-from-migrations
This console command is completely analogous to the original ide-helper:models
command in terms of its operating logic,
accepted parameters and flags, and also uses the configuration of the original package, but does not use a connection to the database.