Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Benko's avatar
Level 6

PHP artisan tinker not working

Whenever I type php artisan tinker into my terminal, it opens up the area for it, however, whenever I type any command into it and press Enter, it just exits tinker without doing anything. This happens when I open it in sudo mod as well, I also tried other terminal apps, didn't work. I use ZShell and MacBook Air 2012.

Any ideas why?

0 likes
6 replies
Benko's avatar
Level 6

Oh, thanks! I use PHP 7.3.5, so it seems to be the issue

Benko's avatar
Level 6

By the way, from the thread I looked up, this worked for me. Add this code to ~/.config/psysh/config.php:

<?php
return [
  'usePcntl' => false,
];

However, I hope this issue will be resolved asap, it's already been several months and nothing?

Cronix's avatar

It's a tinker issue, not laravel. Laravel just uses the tinker package. Yes, I'm surprised Tinker doesn't check the version of php being used and add that flag automatically.

Benko's avatar
Level 6

I know it's not a Laravel issue, it just still baffles me :( Hopefully soon.

swiftcc624's avatar

I am sure that it's a tinker problem. Because tinker is only package of Laravel.

Please or to participate in this conversation.