我有一个 macbookpro 2017,我在使用 php artisan tinker 时遇到了问题。这是我得到的截图:
[![ErrorException : Writing to /Users/ahmed.d.hamdallah/.config/psysh/psysh_history is not allowed.
at /Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/ConfigPaths.php:215
211| if (\is_writable($file)) {
212| return $file;
213| }
214|
> 215| \trigger_error(\sprintf('Writing to %s is not allowed.', $file), E_USER_NOTICE);
216|
217| return false;
218| }
219|
Exception trace:
1 trigger_error("Writing to /Users/ahmed.d.hamdallah/.config/psysh/psysh_history is not allowed.")
/Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/ConfigPaths.php:215
2 Psy\ConfigPaths::touchFileWithMkdir("/Users/ahmed.d.hamdallah/.config/psysh/psysh_history")
/Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/Configuration.php:376
Please use the argument -v to see more details.][1]][1]
[![ErrorException : Writing to /Users/ahmed.d.hamdallah/.config/psysh/psysh_history is not allowed.
at /Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/ConfigPaths.php:215
211| if (\is_writable($file)) {
212| return $file;
213| }
214|
> 215| \trigger_error(\sprintf('Writing to %s is not allowed.', $file), E_USER_NOTICE);
216|
217| return false;
218| }
219|
Exception trace:
1 trigger_error("Writing to /Users/ahmed.d.hamdallah/.config/psysh/psysh_history is not allowed.")
/Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/ConfigPaths.php:215
2 Psy\ConfigPaths::touchFileWithMkdir("/Users/ahmed.d.hamdallah/.config/psysh/psysh_history")
/Applications/XAMPP/xamppfiles/htdocs/blog/vendor/psy/psysh/src/Configuration.php:376
Please use the argument -v to see more details.][2]][2]