4imobile/4i-artisan-commands

Artisan commands for base project setup

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

This package is auto-updated.

Last update: 2024-04-28 23:33:32 UTC


README

Latest Stable Version Software License Total Downloads

Description

This package provides some useful Artisan commands for generating everything to do with base project setup and hopefully more in the future.

Installation

Require this package with Composer using the following command:

composer require 4imobile/4i-artisan-commands

After updating Composer, add the service provider to the providers array in config/app.php:

FourIMobile\FourIArtisanCommands\CommandServiceProvider::class

Run the dump-autoload command:

composer dump-autoload

In Laravel, instead of adding the service provider in the config/app.php file, you can add the following code to your app/Providers/AppServiceProvider.php file, within the register() method:

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

Commands

Below you can find all the commands that you can use, including the parameters that you can specify.

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

License

The Laravel Artisan Commands is open-sourced software licensed under the MIT license.