使用 Turbolinks 导致页面跳转后 Livewire 失效
在pjax方式跳转页面之后,需要重新加载 Livewire ```javascript window.livewire.rescan() ``` 使用...
新建 vite + vue3 + talwindcss 项目
# 一、安装 vite ``` npm create vite@latest ``` 如提示 create-vite: 未找到命令 ``` npm install...
vue3 index.html获取env配置信息(vite-plugin-html 插件 )
包 ``` npm i vite-plugin-html -D ``` index.html ```html <head> <meta charset="UTF-8" />...
axiosService.js ```javascript import axios from "axios"; import { useAuth } from "@/stores/auth";...
```html <div class="bg-white rounded-md relative"> <div class="absolute pin-x bg-loader-line w-fu...
```php $query = Post::find(); $countQuery = clone $query; $pages = new Pagination(['totalCount' =...
laravel 调用 chunk 函数更新数据内存泄漏的问题
操作数据库用到了laravel的Model类,查看Model源码,发现每次查询和更新都会记录 日志 和发布事件。在运行...