Updated: 2020/9/25
laravel@6.4.0
projectのrootディレクトリでなく、/root/PROJECT_NAME/にLaravelをインストール
AWS Cloud9 上に作成したLaravelで
php artisan voyager:install
>>> error: symlink(): No such file or directory
php artisan storage:link
>>> error: symlink(): No such file or directory
solution)
/publc のstorageを削除
ref:
https://www.nicesnippets.com/blog/symlink-no-such-file-or-directory-laravel-ubuntu-solved
php artisan storage:link後にstorageフォルダのファイルを削除したら“laravel.log” could not be opened: failed to open stream
>>> storageのパーミッションを変更 sudo chown -R 777
>>> permission 777 は非推奨。詳細はref 2つ目
laravel/storage/framework/sessions/: failed to open stream: No such file or directory
>>> 下記ディレクトリをマニュアルで作成する下記ディレクトリをマニュアルで作成する /storage/framework/sessions & views & cache
“Call to undefined function str_slug()” in Laravel 6.0
composer require laravel/helpers
ref:
php artisan cache:clear >>> success
php artisan config:clear >>> success
php artisan config:cache >>> success
/storage/framework/cache/dataを作成する