yangweijie / think-ignition
ignition for ThinkPHP
v1.0.2
2024-03-12 09:32 UTC
Requires
- php: >=7.2.0
- phpoption/phpoption: 1.9.x-dev
- spatie/ignition: ^1.11
- topthink/framework: ^8.0
- vlucas/phpdotenv: 5.6.x-dev
README
ignition for ThinkPHP
安装
composer require yangweijie/think-ignition
修改 app下provider
<?php
use think\ignition\ExceptionHandle;
use app\Request;
// 容器Provider定义文件
return [
'think\Request' => Request::class,
'think\exception\Handle' => ExceptionHandle::class,
];
将 app.show_error_msg 设为 true
// 显示错误信息
'show_error_msg' => true,