file_put_contents in laravel code example

Example 1: file_put_contents(/var/www/demo.onlineexammanagement.com/public_html/storage/framework/cache/data/ea/83/ea83c7b371f7573de3cd055cea9229af0b0541e5): failed to open stream: No such file or directory

To do this, run the following Artisan commands on your command line
	php artisan cache:clear
    php artisan config:cache
    
Then assign the permissions to the folder 
storage/framework/cache    
and Go to directory laravel/bootstrap/cache and delete config.php

Example 2: php file_put_contents

file_put_contents ($filename, $data, $flags = 0, $context = null): int

Tags:

Php Example