Home  >  Article  >  Backend Development  >  Laravel 5 study notes, laravel study notes_PHP tutorial

Laravel 5 study notes, laravel study notes_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:05:24870browse

Laravel 5 study notes, laravel study notes

1. Laravel 5 dynamic setting cache engine

Copy code 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

Copy code 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 in the future. I hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/963836.htmlTechArticleLaravel 5 study notes, laravel study notes 1. Laravel 5 dynamically sets the cache engine. Copy the code as follows: Config:: set('cache.default','redis'); var_dump( Config::get('cache.de...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn