Gateway如何捕捉Warning: Undefined array key 1

问题描述 Try catch 用了 但是没有办法捕捉到 我用的\Throwable 程序代码或配置 <?php /** * This file is part of workerman. * * Licensed under The MIT License * For full copyright and license information, please see the MIT-LICENSE.t...

黑老怪 发表与 2023-07-07 538 浏览 2 回答
Eloquent 写入数据结果不符合预期

问题描述 使用 Eloquant 定义了一个 Model,根据文档和测试写入一行记录。数据行插入但是不符合预期。 这个是我的 Model 文件 <?php namespace app\model; use support\Model; class Staff extends Model { /** * The table associated with the model. ...

bear 发表与 2022-12-12 667 浏览 2 回答
phar 打包后,redis 配置密码认证默认值传 null 会报错

redis 配置改成 dotenv 获取配置的话,密码认证默认值传 null 会报错, 需要改成空字符串 return [ 'default' => [ 'host' => getenv('redis_host', '127.0.0.1'), 'password' => getenv('redis_password', ''), 'port' ...

leesin 发表与 2022-12-12 563 浏览 1 回答
Call to a member function connection() on null

问题描述 按照文档上一步步走下来的,但是好像数据库连接失败了 程序代码 查询代码 $name = Db::table('tb_park')->where('id', 1)->value('name'); return response("hello $name"); 数据库配置文件 // 默认数据库 'default' => 'mysql', 'mysql' => [...

BoringBlue 发表与 2022-10-25 1442 浏览 1 回答
使用laravel数据库报错喃?怎么处理

Fatal error: Uncaught Error: Class "PhpOption\Option" not found in C:\Users \Desktop\zz\code\api\vendor\illuminate\support\Env.php:76 Stack trace: #0 C:\Users\Desktop\zz\code\api\vendor\illuminate\support\helpe...

manman10 发表与 2022-08-05 1323 浏览 3 回答

mosquito

280
积分
0
获赞数
0
粉丝数
2022-04-29 加入
🔝