Road to growth of rookie

Meaningful life is called life

0%

Our predecessors have already encountered problems we may encounter, so it is very important to learn efficient Google

LaravelLumen 框架会自动维护模型 (对应数据库表) 的 created_atupdated_atdeleted_at 字段,三个字段非常好用且被框架原生支持,如果要自己实现的话非常的麻烦。但是三个字段在数据库中默认都是 timestampdatetime 类型的,记录一下将三个字段修改为 int 类型的过程。

关于为什么要将 datetimetimestamp 两种时间类型替换成 int 类型,可以看一下 CSDN 上的这篇文章: MYSQL数据库时间字段INT, TIMESTAMP, DATETIME性能效率比较

laravel

Read more »

对于 web 服务器来说, 日志是不可缺少的一部分, 对于服务器排错、统计都很有用。nginx 的日志主要分为两种: access_log (访问日志) 和 error_log (错误日志)。通过访问日志我们可以获取到用户的 IP 地址、浏览器信息、请求处理时间等信息,而请求处理时间对于程序员来说是一个及其重要的东西, 毕竟它可以看出来你的代码烂不烂。错误日志记录了访问日志出错的信息, 可以帮我们快速定位错误的位置、原因等重要因素

image

Read more »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment