Laravel fix error optimize cache

There is no existing directory at "/var/www/html/storage/logs" and its not buildable: Permission denied

Lỗi này thường do mình chạy optimize code ở php artisan

php artisan optimize

Cách fix lỗi này cd tên thử mục chứa source

# cd folder chua sour
cd /var/www/html

# delete cache 
php artisan cache:clear

# delete cache route
php artisan route:clear

# delete cache config
php artisan config:clear

Kết quả ngon lành

Laravel version 6.4

Leave a Reply

Your email address will not be published.