akrillia / laravel-beyond
Installs: 25 041
Dependents: 0
Suggesters: 0
Security: 0
Stars: 220
Watchers: 6
Forks: 24
Open Issues: 0
Requires
- php: ^8.2
- ext-fileinfo: ^8.2
- illuminate/console: ^10.0|^11.0
- illuminate/filesystem: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- laravel/prompts: ^0.1.13
Requires (Dev)
- laravel/pint: ^1.10|^2.0
- orchestra/testbench: ^8.23|^9.1
- phpstan/phpstan: ^1.10|^2.0
- phpunit/phpunit: ^10.3
- spatie/laravel-data: ^3.7|^4.0
- spatie/laravel-query-builder: ^5.2
- spatie/laravel-queueable-action: ^2.14
- 7.x-dev
- 7.0.4
- 7.0.3
- 7.0.0
- 7.0.0-beta.8
- 7.0.0-beta.7
- 7.0.0-beta.6
- 7.0.0-beta.5
- 7.0.0-beta.4
- 7.0.0-beta.3
- 7.0.0-beta.2
- 7.0.0-beta.1
- 6.x-dev
- 6.0.1
- 6.0.0
- 5.4.1
- 5.4.0
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.0
- 4.0.1
- 4.0.0
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 3.0.0-beta.10
- 3.0.0-beta.9
- 3.0.0-beta.8
- 3.0.0-beta.7
- 3.0.0-beta.6
- 3.0.0-beta.5
- 3.0.0-beta.4
- 3.0.0-beta.3
- 3.0.0-beta.2
- 3.0.0-beta.1
- 3.0.0-beta.0
- 2.8.1
- 2.8.0
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 1.2.0
- 1.1.1
- 1.0.0
- dev-main
This package is auto-updated.
Last update: 2024-10-31 00:18:04 UTC
README
This package is inspired by "Laravel Beyond CRUD" from Spatie and "Modularising the Monolith" from Ryuta Hamasaki.
This package will help you with beyond:make
commands to easily create classes inside your "Laravel Beyond CRUD"
inspired application.
In version 7 we changed the way how Laravel Beyond works. We now do no longer change Laravels default
directory structure, instead we place the DDD structure inside a separate src
directory. This ensures
compatibility with any other (Laravel related) package.
Installation
Install laravel-beyond with composer:
composer require --dev akrillia/laravel-beyond
Add Laravel Beyonds namespaces inside your composer.json
:
{ // ... "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "Application\\": "src/Application", "Domain\\": "src/Domain", "Support\\": "src/Support" } }, // ... }
Warning
Do not forget to run composer dump-autoload
after adding the namespaces.
Documentation
Take a look at our documentation inside /docs
to learn about the available
commands and how to use them.
Directory structure
|- src
| |- Application
| | |- Admin
| | | |- Commands
| | | |- Controllers
| | | |- Jobs
| | | |- Policies
| | | |- Processes
| | | |- Queries
| | | |- Requests
| | | |- Resources
| |- Domain
| | |- User
| | | |- Actions
| | | |- Builder
| | | |- Collections
| | | |- DataObjects
| | | |- Enums
| | | |- Events
| | | |- Listeners
| | | |- Models
| | | |- Observers
| |- Support
| | |- Casts
| | |- Providers
| | |- Rules
Contributors
Contributors: