ExceptionPushProvider.php
461 字节
<?php
namespace Lackoxygen\ExceptionPush;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Support\ServiceProvider;
use Lackoxygen\ExceptionPush\Exception\Handler;
class ExceptionPushProvider extends ServiceProvider
{
protected array $commands = [];
public function register()
{
$this->app->singleton(ExceptionHandler::class, Handler::class);
$this->app->singleton('exception.push', ExceptionPush::class);
}
}