Laravel
php artisan tinker – mkdir(): Permission denied in shared server
Just a simple note if you are having issue on permission
while running tinker
in shared server.
The solution is very simple yet effective ?.
Steps
- Create
.psysh.php
file in root folder of a Laravel project.- Terminal command:
nano .psysh.php
- Terminal command:
- Paste following code in that file.
<?php return [ 'runtimeDir' => './.psysh', ];
- To save file use following terminal command
option + x
y
enter
And you are done. Now type php artisan tinker
and boom, you can access tinker now.
Hope this was helpful. Let me know if you have any issue. I will be happy to help.
Thank you
Santosh Maharjan
0
Tags :