Download the PHP package eltristi/extra-commands without Composer
On this page you can find all versions of the php package eltristi/extra-commands. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eltristi/extra-commands
More information about eltristi/extra-commands
Files in eltristi/extra-commands
Package extra-commands
Short Description A Laravel package to generate repositories, services, interfaces, traits and enums.
License MIT
Informations about the package extra-commands
Laravel Extra Commands
This package provides additional artisan make commands for Laravel to speed up your development process.
Installation
You can install the package via composer:
You can publish the config file if you want to change the default directories:
Available Commands
make:repository
Creates a new repository class and optionally an interface for it.
Usage
Options
- --model (-m): The model that the repository should be bound to.
- --interface (-i): Indicates if an interface should be generated for the repository.
make:service
Creates a new service class and optionally an interface for it.
Usage
Options
- --interface (-i): Indicates if an interface should be generated for the repository.
make:enum
Creates a new enum class. Usage
Options
- --type (-t): Indicates the return type of the enum.
make:trait
Creates a new trait. Usage
make:interface
Creates a new interface and allows you to specify its type. Usage
Options
- --type (-t): The type of the interface (repository, service). If no type is specified, the interface will be placed under App\Contracts.
Configuration
You can configure the namespaces for the generated classes in the generator config file.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.