Skip to content

letecode/commando

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Letecode/Commando

This package is a collection of artisan commands for speed up development with laravel.

Letecode/commando support Laravel from 6 to 12.

Installation

Use the package manager composer to install letecode/commando

composer require letecode/commando

Usage

Class command

Generate a class file

php artisan make:class App\Exceptions\DuplicatedPostException

or you can use a dot(.) as separator

php artisan make:class App.Exceptions.DuplicatedPostException --separator=.

Generate a trait

php artisan make:trait App\Traits\MyTrait

Generate an interface

php artisan make:interface App\Contracts\Identifiable

File command

Generate a generic file

php artisan make:file folder.subfolder1.subfolder2.filename --ext=php

Lang command

Generate a new locale file

php artisan make:lang myFilename --locale=fr

Generate a new json locale file

php artisan make:lang --locale=fr --json

Repository command

Generate an empty repository file

php artisan make:repository UserRepository

Generate a repository based on a model

php artisan make:repository UserRepository --model=User

OR

php artisan make:repository UserRepository --model=App\Models\User

Service command

Generate a service class

php artisan make:service PayPalPaymentService

View command

Generate an empty view

php artisan make:view folder.subfolder.view

Generate a view that extend a layout

php artisan make:view folder.subfolder.view --layout=app

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages