omatech/redireccio-laravel

There is no license information available for the latest version (dev-master) of this package.

dev-master 2019-07-10 10:37 UTC

This package is auto-updated.

Last update: 2024-04-10 21:16:19 UTC


README

composer require omatech/redireccio-laravel

php artisan vendor:publish

select -> Provider: Omatech\RedireccIO\Laravel\RedireccIOServiceProvider

config/redireccio.php -> token

app/Exceptions/Handler.php en report()

if($exception instanceof NotFoundHttpException) {
    $url = request()->fullUrl();
    $method = request()->method();

    app()->make('RedireccIO')->intercept($url, $method);
}
parent::report($exception);