定制 kalel1500/kalion 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kalel1500/kalion

最新稳定版本:v0.49.0-beta.0

Composer 安装命令:

composer require kalel1500/kalion

包简介

Utilidades para desarrollar en arquitectura hexagonal y DDD en laravel

README 文档

README

Laravel Hexagonal and DDD

Total Downloads Latest Stable Version License

✨ 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\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

Redirections

You can configure where the application will redirect in two cases:

  • When searching for the default path
  • After login (if no previous route is found)

There are two configurations for this (in config/kalion.php):

  • kalion.default_path (KALION_DEFAULT_PATH)
  • kalion.auth.redirect_after_login (KALION_AUTH_REDIRECT_AFTER_LOGIN)

For more complex cases, you can use the configuration method:

use Thehouseofel\Kalion\Core\Infrastructure\Support\Config\KalionConfig;

public function register(): void
{
    KalionConfig::redirectTo(
        defaultPath: fn() => 'home',
        afterLogin: fn() => 'home',
    );
}

If both routes match, simply configure the default path.

License

Kalion is open-sourced software licensed under the GNU General Public License v3.0.

统计信息

  • 总下载量: 327
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固