Skip to content

Artisan command for generating a new custom interface, abstract, normal class in Laravel.

License

Notifications You must be signed in to change notification settings

sndrjhlncgr/laraclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Laravel Class Generator

Artisan command for generating a new custom interface, abstract, normal class in Laravel.

GitHub issues GitHub forks GitHub stars GitHub license

Installation

Install the package via composer:

composer require --dev laracrate/generator

Usage

Use php artisan make:class command to make a class. add -f if you want to force create the class.

To create a new class,

php artisan make:class YourClass       
// OR WITH CONSTRUCTOR       
php artisan make:class YourClass -c            
php artisan make:class YourClass --constructor 

To create a new abstract class

php artisan make:class YourClass --a
// OR
php artisan make:class YourClass --abstract

To create a new interface

php artisan make:class YourClass --i
// OR
php artisan make:class YourClass --interface

To create a new enum

php artisan make:class YourClass --e
// OR
php artisan make:class YourClass --enum

About

Artisan command for generating a new custom interface, abstract, normal class in Laravel.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages