Home > Article > Backend Development > Laravel study notes
1.Laravel 5 dynamically set cache engine
\Config::set('cache.default','redis'); var_dump( \Config::get('cache.default') ); \Config::set('cache.default','memcached'); var_dump( \Config::get('cache.default') );
2.Laravel 5 has the same effect as use IlluminateSupportFacades
3. The storage directory cannot be written and read under Laravel 5 Linux
#chown -R www:www storage //注:www www是nginx的用户和组 在nginx.conf中查看 #还是不行的话 #php artisan cache:clear 清除应用程序缓存
The above introduces the Laravel study notes, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.