Laravel 的单元包

1.0 2020-10-15 14:22 UTC

This package is auto-updated.

Last update: 2024-09-21 19:04:58 UTC


README

Latest Stable Version License Monthly Downloads Total Downloads

Unit Overview Unit Details

欢迎使用 Laravel ^7.2 的 Units 包,该包提供了完整的单元管理解决方案。

单元包旨在与其他 DRMorris IT Services 提供的包一起使用,有关这些包的信息,请访问 https://github.com/DRMorris-IT-Services

安装

要使用我们的包,请按照以下简单的安装说明进行。

步骤 1

根据要求设置您的 Laravel 项目,然后运行以下命令

composer require duncanrmorris/units

步骤 2

一旦 composer 完成安装,您需要在您的 "./config/app.php" 文件中添加 Service Provider

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        ///
        duncanrmorris\units\UnitsServiceProvider::class,

步骤 3

然后您需要通过以下方式运行数据库表的设置

php artisan migrate

步骤 4

现在您可以通过 "/units" 等路径路由到这个新模块,例如

<a href="/units">Units</a>