Follow the steps from here: https://medium.com/the-andela-way/how-to-make-laravel-tinker-work-in-your-lumen-app-af2371a1e261
Tinker need to install in Lumen 5.8.12 !
Hi Folks, I tired but could not get the right way to add the tinker in lumen 5.8.12. anyone who can help me in this. Thanks in advance
@nakov thanks for reply, but it did not work I tried other solutions too
@mzia87 it's a big help if you explain what step failed and the error.
sure @sinnbeck
lumen: version 5.8.12
PS D:\lumenAPI> composer require laravel/tinker
Using version ^2.7 for laravel/tinker
./composer.json has been updated
Running composer update laravel/tinker
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/tinker[v2.7.0, ..., 2.x-dev] require illuminate/console ^6.0|^7.0|^8.0|^9.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev] but the package is fixed to v5.8.36 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires laravel/tinker ^2.7 -> satisfiable by laravel/tinker[v2.7.0, 2.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
@mzia87 seems that you are trying to install the newest version which does not support your version of lumen
composer require laravel/lumen "^1.0"
If you deside to upgrade lumen, you might want to consider migrating to laravel
PS D:\lumenAPI> composer require laravel/tinker "^1.0"
./composer.json has been updated
Running composer update laravel/tinker
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires laravel/tinker 1.0 -> satisfiable by laravel/tinker[v1.0.0].
- laravel/tinker v1.0.0 requires symfony/var-dumper ~3.0 -> found symfony/var-dumper[v3.0.0-BETA1, ..., 3.4.x-dev] but the package is fixed to v4.4.38 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
@mzia87 did you try as suggested?
composer require laravel/tinker "^1.0" -W
@Sinnbeck i think i have to downgrade lummen, this is the only solution i have left. but i does not make sense. that laravel did not support higher version with tinker.
@mzia87 You are running a very old and no longer supported version of lumen? We are now at version 9 (and my guess is that will be the final version ever). But an upgrade to version 6 or a switching to laravel is probably a better idea
@Sinnbeck Thanks for your replies.
Please or to participate in this conversation.