php artisan tinker PsyExceptionRuntimeException Unable to create PsySH runtime directory
#You need to create a config file for PsySH with runtimeDir variable.
# Just create a file ~/.config/psysh/config.php with:
<?php
return [
'runtimeDir' => '~/tmp'
];