LaravelPackages.net
Acme Inc.
Toggle sidebar
wawan/laravel-make-class

Artisan command for generating a new custom class in Laravel.

11
0
About wawan/laravel-make-class

wawan/laravel-make-class is a Laravel package for artisan command for generating a new custom class in laravel.. It currently has 0 GitHub stars and 11 downloads on Packagist. Install it with composer require wawan/laravel-make-class. Discover more Laravel packages by wawan or browse all Laravel packages to compare alternatives.

Last updated

Laravel make:class

Artisan command for generating a new custom class in Laravel.

Installation

Install the package via composer:

composer require wawan/laravel-make-class:dev-master

If you're using Laravel < 5.5, you'll need to add the service provider to config/app.php file:

'providers' => [
    ...

    Wawan\MakeClass\MakeClassServiceProvider::class,

    ...
]

Usage

To create a new class, call the make:class command from Artisan. Class will be created under the app folder.

php artisan make:class ClassName

You can add the -c or --constructor option to generate new class with constructor.

php artisan make:class ClassName -c
php artisan make:class ClassName --constructor


To create a new interface, call the `make:interface` command from Artisan. Interface will be created under the `app` folder.

php artisan make:interface InterfaceName

Star History Chart