Looking to hire Laravel developers? Try LaraJobs

laravel-make-class maintained by hisman

Description
Artisan command for generating a new custom class in Laravel.
Author
Last update
2019/03/21 10:09 (dev-master)
License
Links
Downloads
21 050

Comments
comments powered by Disqus

Laravel make:class

Artisan command for generating a new custom class in Laravel.

Installation

Install the package via composer:

composer require --dev hisman/laravel-make-class

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

'providers' => [
    ...

    Hisman\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