Directory Structure
Default
Follow the default Laravel directory structure with some modifications.
- app
- Console
- Commands
- Exceptions
- Http
- Controllers
- Middleware
- Requests
- Resources
- Models
- Providers
- View
- Livewire
Filament
If you are using Filament use the default Filament directory structure.
- app
- Filament
- Resources
Actions
If you are using Actions use the default Actions directory structure.
- app
- Actions
Batch
If you are using Batches use the default Batches directory structure.
- app
- Batches
Pipeline
If you are using Pipelines use the default Pipelines directory structure.
- app
- Pipelines
Subdirectories
Add subdirectories to the default Laravel directory structure as needed.
They should be named in a way that makes sense for your project and group related files together.
Generally, subdirectories should be named in the plural form.
For example:
- app
- Actions
- Users
- Posts
- Comments
- Images
- Pipelines
- Users
- Posts
- Comments
- Images
Naming
Use plural names for directories