letecode/commando

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

v0.0.4 2025-05-20 12:42 UTC

This package is auto-updated.

Last update: 2025-06-20 13:04:51 UTC


README

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