文章评论表设计参考 2022年05月21日 liziyu 8 评论表idarticle_idparent_id(string)130231331_2432531_2_3模型操作删除 id = 1 的1 级文章及下级所有文章 Article::where('id', 1)->delete(); Article:... 阅读全文 0 评论
wangEditor5.x 以CDN方式集成到html中(以webman为例) 2022年05月15日 liziyu 7 第一步:习惯将CDN文件下载到本地,保存至静态目录中,注意保留版本号。<!-- 引入 css --> <link href="https://cdn.jsdelivr.net/npm/@wangeditor/editor@la... 阅读全文 0 评论
laravel 自带中间件作用说明 2022年02月10日 liziyu 7 laravel自带中间件说明:Authenticate 用户身份验证和重定向EncryptCookies cookie 的加解密处理和验证PreventRequestsDuringMaintenance 维护模式RedirectIfAuthenticat... 阅读全文 0 评论
laravel部署到宝塔上报500错误 2021年11月12日 liziyu 6 PHP Fileinfo extension must be installed/enabled to use Intervention Image.必须安装扩展 fileInfo切记。安装扩展 opcache切记。php_fileinfo, php_m... 阅读全文 0 评论
TCPDF轮子,Laravel 生成 PDF 文档 2021年10月30日 liziyu 8 官网例子:https://tcpdf.org/examples github: https://github.com/tecnickcom/tcpdfpackagist: https://packagist.org/packages/tecnickcom... 阅读全文 0 评论
laravel8.x 会员中心or后台Session超时跳转各自登陆入口 2021年10月09日 liziyu 7 这个费了点时间,所以记录下:App\Exceptions\Handler.php中重写两个方法如下:/** * Convert an authentication exception into a response. * @param \Illum... 阅读全文 0 评论
常用的前后端验证(layui+tp)收藏备用 2021年10月04日 liziyu 6 一、前端代码<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <ti... 阅读全文 0 评论
交易扣款乐观锁使用 2021年10月03日 liziyu 6 比如说余额更新,防止重复悲观锁性能很差,我目前用的是乐观锁,但是用的是 `User::where (‘id’, $user->id)->where (‘version’, $user->version)->update ([]);... 阅读全文 0 评论