You can install the package via composer:
composer require mrpunyapal/laravel-extended-commandsYou can publish the config file with:
php artisan vendor:publish --tag="laravel-extended-commands-config"This is the contents of the published config file:
return [
// Nothing to configure yet.
];This package ships a Laravel Boost skill for its generators.
In a Laravel application that has laravel/boost installed, add this package and then run one of the following commands to discover or refresh the packaged skill:
php artisan boost:install
php artisan boost:update --discoverBoost can then install the laravel-extended-commands-development skill for tasks involving this package's custom Artisan generators.
php artisan make:builder {name}php artisan make:builder {name} --model={model}Create a new Eloquent custom collection class. By default the class is generated into the App\Models\Collections namespace and extends Illuminate\Database\Eloquent\Collection.
php artisan make:collection {name}Create a collection with a model generic PHPDoc (adds @template and @extends in the generated class):
php artisan make:collection {name} --model={model}When generating a model you can also scaffold a collection for it and inject a newCollection() method into the model using the --collection flag:
php artisan make:model {name} --collectionThis will generate App\Models\Collections\{Name}Collection and add a newCollection(array $models = []) method to the model which returns the new collection instance.
php artisan make:model {name} --builderCreate a new action class. By default the class is generated into the App\Actions namespace and contains a handle() method.
php artisan make:action {name}Create an invokable action (generates an __invoke method):
php artisan make:action {name} --invokableForce overwrite an existing action file:
php artisan make:action {name} --forceCreate a new concern (trait). By default the trait is generated into the App\\Concerns namespace.
php artisan make:concern {name}Force overwrite an existing concern file:
php artisan make:concern {name} --forceCreate a new contract (interface). By default the interface is generated into the App\\Contracts namespace.
php artisan make:contract {name}Force overwrite an existing contract file:
php artisan make:contract {name} --forceCreate a new facade class. By default the class is generated into the App\Facades namespace and extends Illuminate\Support\Facades\Facade.
php artisan make:facade {name}The command will automatically generate a snake_case accessor based on the facade name. For example:
php artisan make:facade FileUploadThis generates App\Facades\FileUpload with accessor file_upload.
Force overwrite an existing facade file:
php artisan make:facade {name} --forceIf the name argument is not provided, you will be prompted to enter it:
php artisan make:facade
# Enter FacadeName (ex. FileUpload): PaymentYou can also create facades with namespaces:
php artisan make:facade Payment\StripeThis generates App\Facades\Payment\Stripe with accessor stripe.
composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.