当前位置:网站首页>Laravel frame step pit (I)
Laravel frame step pit (I)
2022-07-03 06:55:00 【AquilaEAG】
Official documents :http://laravel.p2hp.com/cndocs/9.x/installation
1、 Environment configuration
Before loading the environment variables of the application ,Laravel Will determine whether it has been provided externally APP_ENV environment variable , Or whether it specifies --env CLI Parameters . If so ,Laravel Will try to load a .env.[APP_ENV] file ( If it exists ). If it doesn't exist , The default will be loaded .env file .
.env Any variable in the file can be overwritten by external environment variables , For example, server level or system level environment variables .
2、 Be careful Laravel Clear cache php artisan cache:clear A pit of
Laravel The order of php artisan cache:clear Used to clear various caches , Pages such as ,Redis, Configuration file cache , It will empty Redis All data in the database , For example, the default Redis Of database yes db0, Then after executing this command , It will be emptied db0 All data in .
The cache file is located in /bootstrap/cache/cache.php in , It is cached, including .env And other environmental variable data !!
php73 artisan optimize:clear
here , It is recommended to add single point test and log output , It is convenient to locate problems quickly and accurately , It's not a metaphysical monster environmental problem .
边栏推荐
- dataworks自定义函数开发环境搭建
- La loi des 10 000 heures ne fait pas de vous un maître de programmation, mais au moins un bon point de départ
- 利用C#实现Pdf转图片
- [LeetCode]404. 左叶子之和
- 2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)
- 每日刷題記錄 (十一)
- 这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意
- Laravel Web框架
- Unit test notes
- golang操作redis:写入、读取kv数据
猜你喜欢
![[untitled]](/img/72/4ff9354634342580a135debb58b60e.jpg)
[untitled]

HMS core helps baby bus show high-quality children's digital content to global developers

Numerical method for solving optimal control problem (I) -- gradient method

JMeter test result output

Inno Setup 制作安装包

Realize PDF to picture conversion with C #

golang操作redis:写入、读取hash类型数据

每日刷題記錄 (十一)

100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners

Win 10 find the port and close the port
随机推荐
Troubleshooting of high CPU load but low CPU usage
UTC time, GMT time, CST time
On the practice of performance optimization and stability guarantee
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
Realize PDF to picture conversion with C #
[Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
Golang operation redis: write and read kV data
Resttemplate configuration use
Code management tools
每日刷题记录 (十一)
mongodb
How does the insurance company check hypertension?
HMS core helps baby bus show high-quality children's digital content to global developers
Software testing assignment - day 1
How matlab modifies default settings
多个全局异常处理类,怎么规定执行顺序
UTC时间、GMT时间、CST时间
[vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)
Summary of remote connection of MySQL
Notes on the core knowledge of Domain Driven Design DDD