Showing posts with label laravel please provide a valid cache path. Show all posts
Showing posts with label laravel please provide a valid cache path. Show all posts

Laravel Please Provide A Valid Cache Path Error

Hello guys,

In this blog , i'm able to display you the way to solution Please provide a valid Cache pathblunders in laravel.a few errors happens on deploying laravel initiatives on webservers. So don’t worry about that this mistake “please provide a legitimate cache route laravel“.

The cause for occurring this mistake “please offer a legitimate cache direction laravel” error occurs. because internal your laravel mission, does not have some directories/folders. The directories and folders are the subsequent:

->YourProjectFolder/storage/framework/

->sessions

->views

->cache

This blog will provide you 3 solutions to fix this “please provide a valid cache path laravel” on your server or virtual host.

Solution: 1

In the first solution, you can create a framework folder inside your laravel-project-name/storage/ directory by using the following command:

cd storage/
mkdir -p framework/{sessions,views,cache}

Then set permissions to the directory. To allow Laravel to write data in the above-created directory. So run the following command on your command prompt:

cd storage/
chmod -R 775 framework
chown -R www-data:www-data framework
Solution No: 2

In the solution number 2, You can create mutually directories inside your laravel project folder.

So, Navigate to your project root directory and open Storage folder.

Then, Create framework directory/folder inside the storage folder.

After that, create the following directories inside the framework folder.

->sessions

->views

->cache

cache/data:- Inside cache folder, create a new directory/folder named data.

Finally, open your terminal and run the following command to clear all the cache:

php artisan cache:clear
Solution No: 3

In this solution number 3, open your terminal and run the following

commands:
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

sudo chmod -R 777 storage 

It will help you..