Paramita
Home
Blog
Moment
Snippet
About
代码笔记
Categories
Blog (42)
Featured Tags
alpinejs (2)
ant-design (5)
antd (1)
aspose (1)
aws (1)
cloudflare (1)
dva (2)
echo (2)
filamentphp (1)
gin (1)
git (1)
github (2)
go-mecab (1)
golang (15)
goquery (1)
grpc (1)
japanese (1)
java (1)
lambda (1)
laravel (8)
leetcode (5)
less (1)
linux (3)
livewirejs (1)
mac (1)
mysql (2)
nestjs (1)
nginx (1)
nodejs (1)
npm (1)
php (5)
popclip (1)
ppt (1)
r2 (1)
react (3)
reactjs (9)
remixicon (1)
s3 (1)
shell (2)
tailwindcss (2)
taro (3)
tarojs (1)
telescope (2)
typeorm (1)
umi (1)
umijs (3)
workers (1)
zustand (2)
免签 (1)
小程序 (4)
支付宝 (1)
Blog
42 posts
Blog
is the place to record my codinglife.
««
«
1
2
3
4
5
»
»»
Filamentphp
Sep 6, 2024
One minute read
filamentphp 是可以修改代码自动刷新页面的,不仅是blade文件,resource文件也可以 同事做的项目初始化,我接手的时候,filament已经安装好了,无奈hot reload一直不行,每次改完都要按一下刷新,太难了 按照以下步骤检查了配置 env的APP_URL配置正确 vite的配置也对 import {defineConfig} from 'vite'; import laravel from 'laravel-vite-plugin'; export default defineConfig({ plugins: [ laravel({ input: [ 'resources/css/app.css', 'resources/js/app.js', 'resources/css/filament/admin/theme.css' ], refresh: true, }), ], }); tailwindcss也没啥问题 import defaultTheme from 'tailwindcss/defaultTheme'; import forms from '@tailwindcss/forms'; /** @type {import('tailwindcss').Config} */ export default { content: [ './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './storage/framework/views/*.php', './resources/views/**/*.blade.php', ],......
blog
php
laravel
filamentphp
Typeorm
Jul 25, 2024
One minute read
在typeorm里orderby 使用 coalesce 函数 const q = this.announcementRepository.createQueryBuilder( 'announcement', ); q.orderBy(`COALESCE(announcement.scheduled_at, announcement.updated_at, announcement.created_at)`, 'DESC') //这么写 会报错 "COALESCE(`announcement" alias was not found. Maybe you forgot to join it? //要先addselect 添加alias 然后 q.orderBy(`COALESCE(announcement_scheduled_at, announcement_updated_at, announcement_created_at)`, 'DESC') 真的是无语了,为啥typeorm 连个orderByBaw的方法都没有,自带的raw方法返回的是FindOperator???......
blog
nodejs
typeorm
nestjs
laravel tinker 方向键失效
Dec 24, 2023
One minute read
本机用的zsh+iterm2,使用tinker时,是可以通过上下方向键查找历史命令,左右方向键移动光标的,奈何ssh到服务器就乱码了,每次都要edit使用vim来改,改完再保存执行,真的蛋疼. 具体是在tinker中 按上下左右方向键,出来的确是^[[A^[[B^[[D^[[C 乱码. 开始以为是iterm2的问题,因为之前碰到过iterm2 和 tmux 异常滚动的问题 改了几个参数没有效果…. 继续go......
blog
laravel