n-singularity / 通用模块基础

1.1.2 2021-08-15 06:33 UTC

This package is auto-updated.

Last update: 2024-09-29 05:48:45 UTC


README

需要此包

composer require doctrine/cache:"1.11"
composer require laravel-doctrine/orm doctrine/inflector:"^1.4|^2.0"

使用 Composer 安装包

    $ COMPOSER_MEMORY_LIMIT=-1 composer require n-singularity/general-module-foundation

AUTH 模块

添加到 config/app.php

    Nsingularity\GeneralModule\Foundation\GeneralFoundationServiceProvider::class,
    LaravelDoctrine\ORM\DoctrineServiceProvider::class,
    LaravelDoctrine\Migrations\MigrationsServiceProvider::class,
    LaravelDoctrine\Extensions\GedmoExtensionsServiceProvider::class,
    LaravelDoctrine\Extensions\BeberleiExtensionsServiceProvider::class,

执行此命令

    php artisan vendor:publish --tag=ns-module-foundation --force

位置模块

添加到 config/app.php

    Nsingularity\GeneralModule\Foundation\LocationFoundationServiceProvider::class,

执行此命令

    php artisan vendor:publish --tag=ns-module-location-foundation --force

在 app/database/seeds/DatabaseSeeder.php 中注册 Seeder

    $this->call(LocationSubdivisionSeeder::class);