Level 53
Laravel uses PsySH. Follow the instructions how to install it.
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
composer require vluzrmos/tinker
$app->register(Vluzrmos\Tinker\TinkerServiceProvider::class);
php artisan tinker
@jefkine @samsoft, actually it don't need to be in bootstrap/app.php, just on your artisan file. Docs: https://github.com/vluzrmos/lumen-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.