reliese/laravel
Generate Laravel Eloquent models from your database schema. Reliese inspects tables, columns, and foreign keys to scaffold typed model properties and relationships via an Artisan command, helping speed up development (best used in local/dev environments).
composer require reliese/laravel --dev.php artisan vendor:publish --tag=reliese-models, then clear config cache (php artisan config:clear)..env (ensure it’s accessible to the app).php artisan code:models to generate models from your current DB.--table=users) to verify output before full generation.code:models to keep relationships and types in sync.base_files => true in config/models.php to preserve custom logic (e.g., custom accessors) in your generated models. Your custom model classes extend the base generated class and are never overwritten.--connection, --schema, --table, or --only (whitelist) to scaffold only needed models—especially useful in multi-tenant or microservice setups.model_namespace, table_prefix, pluralize, or relation_name_strategy in config/models.php to align output with your project’s conventions (e.g., omitting pluralization for singular model names).set type defaults to string casting—adjust if needed.$dates is fully deprecated. Ensure your DB timestamps (created_at, updated_at) remain auto-cast; custom date columns should be explicitly cast as 'datetime'.deleted_at column is typed as string in docblocks—ensure you’re not relying on its automatic Carbon casting in relationships unless overridden.NULL, relationships are auto-nullable (e.g., BelongsTo)—good for optional relations, but verify in tests if your schema evolves.php artisan config:clear after editing config/models.php, especially in production-like environments where cached configs are common.How can I help you explore Laravel packages today?