Hello Devs,
In this tutorial, we are going to learn about creating "framework" folder inside storage folder and its subfolders sessions, views and cache.
Solution 1
cd storage/
mkdir -p framework/{sessions,views,cache}
cd storage/
chmod -R 775 framework
chown -R www-data:www-data framework
Solution 2
create storage folder in framework folder and create these three directories
sessions, views, cache/data
php artisan cache:clear
Solution 3
sudo mkdir storage/framework
sudo mkdir storage/framework/sessions
sudo mkdir storage/framework/views
sudo mkdir storage/framework/cache
sudo mkdir storage/framework/cache/data
Run this command:
sudo chmod -R 777 storage
I hope this example helps you.