Home > Backend Development > PHP Tutorial > Laravel 5 study notes_PHP tutorial

Laravel 5 study notes_PHP tutorial

WBOY
Release: 2016-07-13 10:04:46
Original
864 people have browsed it

Laravel 5 study notes

This article records several key points that individuals encountered in the process of learning practical laravel5, and it is also the most common place to make mistakes. They are recorded here. , share it with everyone.

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.

www.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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template