kalel1500 / laravel-hexagonal-and-ddd-architecture-utilities
Utilidades para desarrollar en arquitectura hexagonal y DDD en laravel
Requires
- php: ^8.2
- ext-json: *
- laravel/framework: ^11.0|^12.0
Requires (Dev)
- phpunit/phpunit: ^11.5
- dev-master
- v0.27.0-beta.0
- v0.26.0-beta.0
- v0.25.1-beta.0
- v0.25.0-beta.0
- v0.24.0-beta.0
- v0.23.1-beta.0
- v0.23.0-beta.0
- v0.22.0-beta.0
- v0.21.0-beta.0
- v0.20.0-beta.0
- v0.19.0-beta.1
- v0.19.0-beta.0
- v0.18.1-beta.0
- v0.18.0-beta.0
- v0.17.1-beta.0
- v0.17.0-beta.0
- v0.16.0-beta.0
- v0.15.0-beta.0
- v0.14.1-beta.1
- v0.14.1-beta.0
- v0.14.0-beta.0
- v0.13.0-beta.3
- v0.13.0-beta.2
- v0.13.0-beta.1
- v0.12.0-beta.1
- v0.11.0-beta.2
- v0.11.0-beta.1
- v0.10.0-beta.2
- v0.10.0-beta.1
- v0.9.0-beta.3
- v0.9.0-beta.2
- v0.9.0-beta.1
- v0.8.0-beta.1
- v0.7.0-beta.1
- v0.6.0-beta.1
- v0.5.0-beta.3
- v0.5.0-beta.2
- v0.5.0-beta.1
- v0.4.0-beta.2
- v0.4.0-beta.1
- v0.3.0-beta.1
- v0.2.0-beta.4
- v0.2.0-beta.3
- v0.2.0-beta.2
- v0.2.0-beta.1
- v0.1.0-beta.2
- v0.1.0-beta.1
- dev-develop
This package is auto-updated.
Last update: 2025-06-11 16:18:47 UTC
README
✨ Features
- Utilities for developing in hexagonal architecture and DDD in Laravel.
Quick start
composer require kalel1500/kalion:@beta
Publish files
To publish all the files in the package you can use the following command:
php artisan vendor:publish --provider="Thehouseofel\Kalion\Infrastructure\KalionServiceProvider"
Or else you have the following to publish the files independently
php artisan vendor:publish --tag="kalion-migrations" php artisan vendor:publish --tag="kalion-views" php artisan vendor:publish --tag="kalion-view-layout" php artisan vendor:publish --tag="kalion-config" php artisan vendor:publish --tag="kalion-config-user" php artisan vendor:publish --tag="kalion-config-links" php artisan vendor:publish --tag="kalion-lang"
Start command
After installing the package, to start a project you can run the following command.
php artisan kalion:start
This command will modify several project files to the recommended settings.
In addition, it will generate new files to add complete examples to the project with the following views:
- Home
- Posts
- Tags
Package configuration
Redirect after login
You can configure where the application will redirect (as long as no previous route is found) in three ways:
-
Overriding the
kalion.auth.redirect_after_login
configuration inconfig/kalion.php
file:return [ 'auth' => [ 'redirect_after_login' => env('KALION_AUTH_REDIRECT_AFTER_LOGIN', 'home') ] ];
-
Using the
KALION_AUTH_REDIRECT_AFTER_LOGIN
environment variable:KALION_AUTH_REDIRECT_AFTER_LOGIN=home
-
Or using the
redirectAfterLoginTo()
method of theKalion
class in theregister
method of a ServiceProvider for a more complex configuration:public function register(): void { \Thehouseofel\Kalion\Infrastructure\Services\Kalion::redirectAfterLoginTo('home'); }
This method also accepts a callback.
Default path
You can configure where the application will redirect to by default in three ways:
-
Overriding the
kalion.default_path
configurationreturn [ 'default_path' => env('KALION_DEFAULT_PATH', 'home') ];
-
Using the
KALION_DEFAULT_PATH
environment variable:KALION_DEFAULT_PATH=home
-
Or using the
redirectAfterLoginTo()
method of theKalion
class in theregister
method of a ServiceProvider for a more complex configuration:public function register(): void { \Thehouseofel\Kalion\Infrastructure\Services\Kalion::redirectDefaultPathTo('home'); }
This method also accepts a callback.
License
Kalion is open-sourced software licensed under the GNU General Public License v3.0.