Package Data | |
---|---|
Maintainer Username: | radic |
Maintainer Contact: | robin@laradic.nl (Robin Radic) |
Package Create Date: | 2016-08-07 |
Package Last Update: | 2018-01-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:15:18 |
Package Statistics | |
---|---|
Total Downloads: | 15 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This package extends the default Laravel Console and adds several new features.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
composer require "laradic/console:~1.0"
Full documenation @ la.radic.nl
There are 2 ways of using this package.
Command only means you only use the Laradic\Console\Command
class, which is an
extension of Illuminate\Console\Command
with several improvements and additional features.
It is possible to use this class to extend your own Commands from without needing to register
the service provider or extend the Kernel.
Go to the Command documentation
Beside using the Laradic\Console\Command
for your commands, to enable full features
it is required to extend your Console Kernel from the Laradic\Console\Kernel
and
register the Laradic\Console\ConsoleServiceProvider
.
In most cases this means editing the app/Console/Kernel.php:
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
// change
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
// to
use Laradic\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel {}
And registering the Laradic\Console\ConsoleServiceProvider
inside config/app.php