定制 supplycart/domains 二次开发

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

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

supplycart/domains

最新稳定版本:1.2.3

Composer 安装命令:

composer require supplycart/domains

包简介

Domain Manager

README 文档

README

A simple package to set up domains for your applications.

Installation

To install through composer, run the following command from terminal:

composer require supplycart/domains

Then publish config using:

php artisan vendor:publish

Usage

You can set up a domain by creating a domain class which extends Supplycart\Domains\Domain and register it inside domains.php config file like this:

<?php

return [
    'modules' => [
        App\Domains\User\UserDomain::class
    ]
];

The folder structure suggested is as below:

app/
   - Domains/
        - User/
            - Http/
                - Controllers/
                - routes.php # all routes in here
            - Models/
            - Policies/
            - UserDomain.php # your domain class
        - Cart
            ...
        - Order
            ...

Command to populate domain folder

php artisan make:domain DomainName

To populate events, listeners and jobs you may pass in the --queues argument.

php artisan make:domain DomainName --queues

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-24