iampapaisarkar/laravel-custom-class

通过 artisan 命令轻松创建自定义类

1.0.3 2023-04-19 13:06 UTC

This package is auto-updated.

Last update: 2024-09-19 16:24:54 UTC


README

通过 artisan 命令轻松创建自定义类(服务、特质和工厂类)

N|Solid

N|Solid

Laravel 版本

    Laravel 8 >=

安装

composer require iampapaisarkar/laravel-custom-class

用法

    // in your application app.php file add service provider

    // go to 
        config/app.php

    // scroll down to providers array and set this Iampapaisarkar\LaravelCustomClass\LaravelCustomClassServiceProvider::class,

        'providers' => ServiceProvider::defaultProviders()->merge([
        
            Iampapaisarkar\LaravelCustomClass\LaravelCustomClassServiceProvider::class,
        
        ])->toArray(),

用法

    // Open you project terminal and run following commands:

    // Create Service
    php artisan make:service YouClassName

    // Create Trait
    php artisan make:trait YouClassName

    // Create Factory
    php artisan make:custom-factory YouClassName

许可证

MIT