3

Whenever I type php artisan tinker, the shell comes up, but whenever I type in any commands and hit the ENTER key, it immediately exits back to the command prompt. Why?

enter image description here

miken32
  • 42,008
  • 16
  • 111
  • 154

1 Answers1

3

If not already there, try creating a file at ~/.config/psysh/config.php and add the following.

<?php

return [
  'usePcntl' => false,
];

enter image description here

Karl Hill
  • 12,937
  • 5
  • 58
  • 95