我做的是积分商城 ,用laravel5.2 去实现,后台有个网站开启功能和关闭原因,前台访问模块也有写过在主的构造函数哪里判断status值,看是否需要重定向到维护页面。有个大概思路,但没做过,问下做这方面所需要注意和考虑的点
How to implement the php website closing function-PHP Chinese website Q&A-How to implement the php website closing function-PHP Chinese website Q&A
Look around and learn.
在laravel框架下Application里面有个isDownForMaintenance()方法可以控制网站开启关闭,可以制定特定IP访问 ,Illuminate\Contracts\Foundation\Application目录
How to implement the php website closing function-PHP Chinese website Q&A-How to implement the php website closing function-PHP Chinese website Q&A
Look around and learn.
在laravel框架下Application里面有个isDownForMaintenance()方法可以控制网站开启关闭,可以制定特定IP访问 ,Illuminate\Contracts\Foundation\Application目录