摘要:
ActiveRecord 无疑是一种简单直接的处理问题的方式,更具体的说,是更适合处理业务逻辑较简单的所谓 CRUD 问题。 ActiveRecord 擅长处理可以将存储的数据映射为多个无关联的单表的问题,所谓简洁、优雅都说的是这一层。 如果问题复杂度到此止步,那么使用 ActiveRecord 可 阅读全文
posted @ 2022-04-05 12:35
汽酒吧
阅读(137)
评论(0)
推荐(0)
摘要:
临时改变组件的默认样式 例如想将表格的字体默认为 12px, 加大到 13px,仅针对当前 vue 文件生效: <style scoped> .tfont >>> .ivu-table-cell { font-size: 13px; } </style> <template> <div> <Tabl 阅读全文
posted @ 2022-04-05 12:30
汽酒吧
阅读(307)
评论(0)
推荐(0)
摘要:
指导 vim 以给定的方式打开文件: /* vim: set ai tw=75: */ 在 nginx 模板文件末尾加上注释: server { ...... } # vim: ft=nginx: ts=4: # vim: ft=nginx sw=4 ts=4 sts=4 注意事项 注释符号后面必须 阅读全文
posted @ 2022-04-05 12:00
汽酒吧
阅读(56)
评论(0)
推荐(0)
摘要:
The condition of triggering screen saver to run is that no input event of any input device in a period of time. The key idea is that we can simulate k 阅读全文
posted @ 2022-04-05 11:54
汽酒吧
阅读(90)
评论(0)
推荐(0)
摘要:
常见的指令: vendor dev start demo demo-start dist test clean 如果支持 docker,则增加下列三个执行: doker-build docker-run docker-upload 如果支持 swagger,则增加下列指令: swagger: $(S 阅读全文
posted @ 2022-04-05 11:52
汽酒吧
阅读(127)
评论(0)
推荐(0)
摘要:
配置环境 php.ini extension=yaf yaf.use_namespace = On extension=xlswriter phpstan.neon parameters: level: 0 memoryLimit: 1G parallel: maximumNumberOfProce 阅读全文
posted @ 2022-04-05 11:42
汽酒吧
阅读(301)
评论(0)
推荐(0)
摘要:
获取目录 storage_path(); base_path(); app_path(); public_path(); 异常响应 有两种异常处理方式: 以 json 形式返回的 Restful 接口结果 以 html 页面形式返回结果 异常响应入口:app/Exceptions/Handler.p 阅读全文
posted @ 2022-04-05 11:37
汽酒吧
阅读(177)
评论(0)
推荐(0)
摘要:
引用 git 上的代码库 本文使用 composer v2 开发时我们会使用公司 git 上的库,最简单的方式是将公司的 git 库信息配置再 repositories 段中。 "require": { "laravel/lumen-framework": "^7.2", "phpoffice/ph 阅读全文
posted @ 2022-04-05 11:33
汽酒吧
阅读(49)
评论(0)
推荐(0)

浙公网安备 33010602011771号