Download the PHP package escode/larax without Composer
On this page you can find all versions of the php package escode/larax. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package larax
larax
Larax is laravel package help us to log exceptions happened in our laravel applications and notify us with all the data we need to find out the cause of the problem when exception happened such as (the data did user sent it in body, headers ,user ip , user id and his guard) .
Installation
Add this package in composer.json.
or run in terminal:
composer require escode/larax
Add Larax Service Provider
open "/config/app.php" and append Escode\Larax\LaraxServiceProvider::class to providers array
Example
Publish config file
php artisan vendor:publish --tag=larax-config
Migrate database tables
php artisan migrate
Make Larax Handle Exception
going to "/app/Exceptions/Handler.php" and make it extends from Escode\Larax\ExceptionHandler
Example
configration
open "/config/larax.php" this file help you to easily configure and control Larax.
You can set your middleware that’s allow to access exceptions pages on website.
You can set your middleware that’s allow to access exceptions pages over api.
You can control data will be saved when exception happened.
You can told Larax to detect user and save his id and his guard with exception data.
You can ignore some keys “remove it from headers data” from request headers such as “Authorization”.
You can ignore some fields “remove it from body data” from request body or query string such as “password , image , token”.
You can told larax to notify you by send email when exception happened or not.
How to use
open "http://localhost:8000/larax/exceptions" to see the exceptions did happened in your application.
Users
users in larax is used to allow users to read exceptions using Larax Api.
Api
you can read your application exceptions data over Api just do "GET" request to "http://localhost:8000/api/larax/exceptions" using user key as bearer token