justinbyrne/extra-artisan-commands

Useful artisan commands for Laravel to help perform regular tasks.

v2.1.0 2023-06-29 21:03 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Useful artisan commands for Laravel to help perform regular tasks.

Installation

You can install the package via composer:

composer require justinbyrne/extra-artisan-commands

You can publish the config file with:

php artisan vendor:publish --tag="extra-artisan-commands-config"

This is the contents of the published config file:

return [
    /*
    |--------------------------------------------------------------------------
    | Create new user fields
    |--------------------------------------------------------------------------
    |
    | The fields that are needed to create a new user, add or remove as
    | required.
    |
    */
    "user_fields" => [
        "name" => "string",
        "email" => "email",
        "password" => "password",
    ],
];

Usage

The package adds artisan commands all of which cab be ran with php artisan then any of the commands in the list below.

Command Description
create:user Create new user using the options in the config
make:action {name} Create new action class
make:enum {name} {type} Create new enum
make:service {name} Create new service class
make:trait {name} Create new trait

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.