4imobile/4i-artisan-commands

基础项目设置的Artisan命令

v1.0.8 2019-06-28 12:07 UTC

This package is auto-updated.

Last update: 2024-09-29 00:27:29 UTC


README

Latest Stable Version Software License Total Downloads

描述

此软件包提供了一些有用的Artisan命令,用于生成与基础项目设置相关的一切,并希望未来能提供更多。

安装

使用以下命令通过Composer安装此软件包

composer require 4imobile/4i-artisan-commands

更新Composer后,将服务提供者添加到config/app.php文件中的providers数组

FourIMobile\FourIArtisanCommands\CommandServiceProvider::class

运行dump-autoload命令

composer dump-autoload

在Laravel中,您可以在config/app.php文件中添加服务提供者,也可以在app/Providers/AppServiceProvider.php文件中的register()方法中添加以下代码

public function register()
{
    if ($this->app->environment() !== 'production') {
        $this->app->register(\FourIMobile\FourIArtisanCommands\CommandServiceProvider::class);
    }
    // ...
}

命令

以下您可以使用的所有命令,包括您可以指定的参数。

COMMAND                     PARAMETER       DESCRIPTION
-----------------------------------------------------------------------------------------------------------------------
make:device:auth            -b              Generates a basic auth structure, including everything except OTP
make:device:auth            -a              Generates the entire auth structure
make:device:migrations                      Generates the device base migrations

许可证

Laravel Artisan Commands 是开源软件,根据 MIT 许可证 许可。