1.Laravel 5 dynamically sets the cache engine
The code is as follows:
Config::set('cache.default','redis');
var_dump( Config::get('cache.default') );
Config::set('cache.default','memcached');
var_dump( Config::get('cache.default') );
2. In Laravel 5, it has the same effect as use IlluminateSupportFacades
3. The storage directory cannot be written and read under Laravel 5 Linux
The code is as follows:
#chown -R www:www storage //Note: www www is the user and group of nginx. View it in nginx.conf
#If it still doesn’t work
#php artisan cache:clear Clear application cache
Let’s stop here first, this article will continue to be updated, I hope you all like it.
http://www.bkjia.com/PHPjc/963998.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/963998.htmlTechArticleLaravel 5 learning notebook records several key points that individuals encountered in the process of learning practical laravel5 , it is also the most common place to make mistakes, record it here and share it with everyone...