混乱 / laravel-runtime-errors

此软件包最新版本(0.4.2)没有提供许可信息。

在 Laravel 项目中捕获运行时错误

0.4.2 2018-08-11 14:04 UTC

This package is auto-updated.

Last update: 2024-08-29 05:06:11 UTC


README

Scrutinizer Code Quality

此软件包解析您的 Laravel 项目,并在它们在生产中发生之前找到错误。

添加以下 artisan 命令

runtime-errors
  runtime-errors:dd                             Flags all calls to the dd() function
  runtime-errors:route-calls                    Checks your route calls to see if they map to a registered named route
  runtime-errors:route-definitions              Checks your route definitions to see if they point to an existing controller action
  runtime-errors:view-calls                     Checks your view calls to see if they map to a file that exists

示例输出

Example output

安装

composer require --dev juddling/laravel-runtime-errors

Laravel 版本 <= 5.4

将服务提供者添加到 config/app.php

\Juddling\RouteChecker\RouteCheckerServiceProvider::class,

贡献

从源安装

composer update juddling/laravel-runtime-errors --prefer-source