会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CanyingV
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
11
下一页
2022年6月1日
laravel6-workerman
摘要: 1.安装扩展包 composer require workerman/gateway-worker composer require workerman/gatewayclient 2.生成命令文件 php artisan make:command Workerman <?php namespace
阅读全文
posted @ 2022-06-01 10:09 CanyingV
阅读(73)
评论(0)
推荐(0)
2022年5月30日
laravel-跨域中间件
摘要: <?php namespace App\Http\Middleware; use Closure; class AllowCrossRequest { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $req
阅读全文
posted @ 2022-05-30 16:33 CanyingV
阅读(122)
评论(0)
推荐(0)
2022年5月27日
laravel-自定义文件上传目录
摘要: 1.config/filesystems.php 2.文件上传和删除 //保存到本地 $fileName = $file->store('image', 'tmp'); //删除本地文件Storage::disk('tmp')->delete($fileName);
阅读全文
posted @ 2022-05-27 20:19 CanyingV
阅读(199)
评论(0)
推荐(0)
2022年5月25日
laravel-自定义验证
摘要: 1.创建规则对象php artisan make:rule IdCard2.编写验证规则 <?phpnamespace App\Rules;use Illuminate\Contracts\Validation\Rule;class IdCard implements Rule{ /** * Cre
阅读全文
posted @ 2022-05-25 17:28 CanyingV
阅读(172)
评论(0)
推荐(0)
2022年5月18日
laraver6-数据填充
摘要: 1.创建模型工厂 php artisan make:factory AdminFactory --model=Admin <?php/** @var \Illuminate\Database\Eloquent\Factory $factory */use App\Models\System\Admi
阅读全文
posted @ 2022-05-18 09:53 CanyingV
阅读(25)
评论(0)
推荐(0)
2022年5月17日
文件特殊权限
摘要: //文件被添加特殊属性后不能修改 //查看文件特殊权限-ia会导致文件无法修改 lsattr 文件名 //移除特殊属性 chattr -ia 文件名
阅读全文
posted @ 2022-05-17 08:58 CanyingV
阅读(30)
评论(0)
推荐(0)
2022年5月11日
laravel-消息队列
摘要: 1.创建任务类php artisan make:job ProcessPodcast2.任务类里写业务逻辑 public function handle(){ // TestModel::create(['content' => time()]);}3.开启队列php artisan queue:w
阅读全文
posted @ 2022-05-11 16:33 CanyingV
阅读(162)
评论(0)
推荐(0)
2022年3月5日
request-post
摘要: import requests url = 'https://cyv.waosmart.com/' data = {'keywords': 'python'} resp = requests.post(url, data=data) print(resp.json()) resp.close()
阅读全文
posted @ 2022-03-05 22:29 CanyingV
阅读(54)
评论(0)
推荐(0)
request-get
摘要: import requests url = 'https://cyv.waosmart.com/' param = { 'start': 0, 'limit': 10 } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64;
阅读全文
posted @ 2022-03-05 22:27 CanyingV
阅读(59)
评论(0)
推荐(0)
2022年3月4日
记录执行的sql
摘要: <?php namespace App\Providers; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use Illuminate\Support\ServiceProvider; class Ap
阅读全文
posted @ 2022-03-04 08:54 CanyingV
阅读(41)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
11
下一页
公告