generate_eloquent_model
Generate Laravel 13.2 Eloquent models with relationships, scopes, casts, observers, and PHP 8.3 attributes. Configure fields, soft deletes, timestamps, and global scopes.
Instructions
Generate a Laravel 13.2 Eloquent model with PHP 8.3 attributes, relationships, scopes, casts, observers, and new v13.2 features.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Model name e.g. 'Post' | |
| casts | No | ||
| table | No | ||
| fields | No | ||
| policy | No | ||
| scopes | No | ||
| observer | No | ||
| scopedBy | No | Global scope column e.g. 'tenant_id' (Laravel 13.2 #[ScopedBy]) | |
| dateFormat | No | Custom date format e.g. 'U' for Unix timestamp | |
| timestamps | No | ||
| softDeletes | No | ||
| relationships | No | ||
| withoutTimestamps | No | Disable timestamps (Laravel 13.2 #[WithoutTimestamps]) |