An Interactive Shell to Lumen Framework.
Package Versions:
Lumen | Tinker |
---|---|
5.0 | 1.0.* |
5.1 | 1.1.* |
5.3 | 1.3.0 |
5.4+ | 1.3.* |
Download from packagist:
composer require vluzrmos/tinker
Add the Service Provider to the artisan
file:
if(class_exists('Vluzrmos\Tinker\TinkerServiceProvider')) {
$app->register('Vluzrmos\Tinker\TinkerServiceProvider');
}
Note: This will not affect the performance of your application.
And that is it, to see if it works do php artisan
, and be sure to
see the command tinker
there.
To use the shell:
php artisan tinker
Lumen UrlGenerator do not generate correctly urls for non-browser requests, if you want to generate url on console commands or tests, I recommend you to install that package to fix it:
That package is a partial modification of illuminate/framework and that is copyright of Taylor Otwell.