Laravel 5 Study Notes
This article records the individual in the process of learning practical laravel5 a few important places, but also the most prone to make mistakes in the place, recorded here, to share to everyone.
1.Laravel 5 dynamic set 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.Laravel 5 in \ and use illuminate\support\facades\ function same
3.Laravel 5 Linux cannot write to and read storage directory
The code is as follows:
#chown-R www:www Storage//NOTE: www www is nginx users and groups are viewed in nginx.conf
#还是不行的话
#php Artisan cache:clear Clearing the application cache
First come here, follow this article will continue to update, I hope you can like.
http://www.bkjia.com/PHPjc/963998.html www.bkjia.com true http://www.bkjia.com/PHPjc/963998.html techarticle Laravel 5 Learning notebook record is the individual in the process of learning practical laravel5 a few key points of the place, is also the most prone to make mistakes in the place, recorded here, share to everyone ...