iampapaisarkar / laravel-custom-class
Easily can create custom classes by artisan command
1.0.3
2023-04-19 13:06 UTC
This package is auto-updated.
Last update: 2025-06-19 18:12:22 UTC
README
Easily can create custom classes by artisan command (Service, Trait and Factory Class)
Laravel Version
Laravel 8 >=
installation
composer require iampapaisarkar/laravel-custom-class
Usage
// 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(),
Usage
// 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