ページ · Laravilt
Plugin Components
Generate plugin components
Generate components within plugins.
Generate Command
bash
Available Types
| Type | Description |
|---|---|
resource | Panel Resource |
migration | Database Migration |
model | Eloquent Model |
controller | Controller |
command | Artisan Command |
job | Queue Job |
event | Event Class |
listener | Event Listener |
notification | Notification |
seeder | Database Seeder |
factory | Model Factory |
test | Test Class |
lang | Language File |
route | Route File |
Examples
bash
Output Locations
| Type | Path |
|---|---|
| Resource | src/Resources/{Plural}/ |
| Model | src/Models/ |
| Migration | database/migrations/ |
| Controller | src/Http/Controllers/ |
| Command | src/Commands/ |
| Job | src/Jobs/ |
| Event | src/Events/ |
| Listener | src/Listeners/ |
| Notification | src/Notifications/ |
| Seeder | database/seeders/ |
| Factory | database/factories/ |
| Test | tests/Feature/ |
| Lang | resources/lang/{name}/ |
| Route | routes/ |