1

Cannot install tinker on Laravel 5.1. Composer version is 1.9.0. Here is the composer log: https://pastebin.com/aajb0m7p I tried to remove vendor folder and install back, but that doesn't help. Is there any workaround? I would like to use tinker to test some of my API endpoints and don't waste time doing that by using UI.

UPD I'm getting these conflict messages because I have installed lumen-framework 5.1.7 which requires symfony/var-dumper 2.7.*. But the earlier version of tinker 1.0.0 and it requires at least symfony/var-dumper ~3.0. Is there any other workaround for me to test my Laravel endpoints without using UI?

Garfield Lasaga
  • 348
  • 1
  • 5
  • 13

2 Answers2

2

As written in packagist, tinker need symfony/var-dumper on ~3.0|~4.0 but it seems that you have 2.7.51 installed. Try to update symfony/var-dumper to at least 3.0 then require laravel/tinker

GrenierJ
  • 1,145
  • 8
  • 18
1

The problem is that you have a package which has a dependency to symfony/var-dumper on some version

and also the version of laravel tinker that you are trying to install also has dependency on different symfony/var-dumper version and they get conflict in version

so in your case what you can do is to find the package which uses symfony/var-dumper and update it to have same dependency with laravel tinker OR you can install a specific version of laravel tinker which has a lower dependency on symfony var dumper

for example : composer require laravel/tinker:^1.0.1

AH.Pooladvand
  • 1,944
  • 2
  • 12
  • 26
  • The version you propose will not work as composer already try it : `Installation request for laravel/tinker ^1.0 -> satisfiable by laravel/tinker[v1.0.0, v1.0.1, v1.0.10, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9].`. – GrenierJ Mar 04 '20 at 15:36
  • @GrenierJ I really liked your answer +1 – AH.Pooladvand Mar 04 '20 at 15:43
  • Thanks, I updated the question, if it's possible, can you take a look please? – Garfield Lasaga Mar 04 '20 at 15:43