Where is 'php artisan tinker' in Lumen?
Please guyz, how do i install or enable tinker in Lumen?
Laravel uses PsySH. Follow the instructions how to install it.
@samsoft
You can use the following package: vluzrmos/tinker
- Use the composer require command to add the package
composer require vluzrmos/tinker
- Register it in the lumens application's service providers here: lumen\bootstrap\app.php
$app->register(Vluzrmos\Tinker\TinkerServiceProvider::class);
- Finally in your console:
php artisan tinker
seem not to have support for lumen5.5 yet
Simply:
composer require laravel/tinker
Then, in bootstrap/app.php
$app->register(Laravel\Tinker\TinkerServiceProvider::class);
Done!
If you only want Tinker in development? Do the following:
composer require --dev laravel/tinker
And then add the following in bootstrap/app.php:
if (class_exists('Laravel\Tinker\TinkerServiceProvider')) {
$app->register(Laravel\Tinker\TinkerServiceProvider::class);
}
Just my two cents.
Please or to participate in this conversation.