halfpetal/laravel-artisan-commands

Artisan commands that should exist, but don't...until now.

v1.0.0 2018-02-26 01:39 UTC

This package is auto-updated.

Last update: 2023-05-17 16:16:35 UTC


README

Total Downloads Latest Stable Version License

Supported Versions

Laravel Version Tested Working
v5.6 ✔️ ✔️
v5.5 ✔️ ✔️

About

Laravel Artisan Commands makes new commands available through php artisan that could prove helpful to you throughout your development process.

Installation

composer require halfpetal/laravel-artisan-commands

If you use Laravel 5.5+, you have nothing else to do. If not, add our service provider to config/app.php

'providers' => [
    ...
    Halfpetal\Laravel\ArtisanCommands\ArtisanCommandServiceProvider,
    ...
];

Commands

make:observer

We aren't sure why this one is not in Laravel by default. It's very useful and we've needed it on countless occasions.

Arguments

name - The class name

model - The model for the observer to use.

namespace (optional) - The application namespace. The default will be used.

route:simplelist

The default route:list can be so cluttered. This one is a simplified version of that.

Thanks

Huge thanks to Jordan Dalton over at Larastream for the final kick in the ass to do this package.