PHPackages                             escode/larax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. escode/larax

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

escode/larax
============

laravel exceptions logs package

v1.0(5y ago)241963[2 issues](https://github.com/es-code/larax/issues)PHP

Since Jan 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/es-code/larax)[ Packagist](https://packagist.org/packages/escode/larax)[ RSS](/packages/escode-larax/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

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) .

[![Latest Version on Packagist](https://camo.githubusercontent.com/d862160c8b7621d224a7cbdaea835fc65438f8bd714d3e9fac9e416c6d0f30f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f64652f6c617261782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escode/larax)[![Total Downloads](https://camo.githubusercontent.com/e498c41592849c0c3b3c24fe32331bf66fce03ceda762605dfbe29f7636d2c3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f64652f6c617261782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escode/larax)

Installation
------------

[](#installation)

Add this package in composer.json.

```
    {
        "require": {
            "escode/larax": "1.*"
        }
    }
```

or run in terminal: `composer require escode/larax`

### Add Larax Service Provider

[](#add-larax-service-provider)

open "/config/app.php" and append Escode\\Larax\\LaraxServiceProvider::class to providers array

`Example`

```
 'providers' => [
    Escode\Larax\LaraxServiceProvider::class,
```

### Publish config file

[](#publish-config-file)

`php artisan vendor:publish --tag=larax-config`

### Migrate database tables

[](#migrate-database-tables)

`php artisan migrate`

### Make Larax Handle Exception

[](#make-larax-handle-exception)

going to "/app/Exceptions/Handler.php" and make it extends from Escode\\Larax\\ExceptionHandler

`Example`

```
use Escode\Larax\ExceptionHandler;
class Handler extends ExceptionHandler
{
```

configration
------------

[](#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-thats-allow-to-access-exceptions-pages-on-website)

### You can set your middleware that’s allow to access exceptions pages over api.

[](#you-can-set-your-middleware-thats-allow-to-access-exceptions-pages-over-api)

### You can control data will be saved when exception happened.

[](#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-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-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-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.

[](#you-can-told-larax-to-notify-you-by-send-email-when-exception-happened-or-not)

```
return [
     //set your middleware that's allow to access exceptions pages on website
    'middleware'=>'auth',

    //api middleware
    'ApiMiddleware'=>'AuthLaraxApi',

    //exceptions data you want to store it
    'exception_data'=>[
        'ip'=>true,
        'url'=>true,
        'headers'=>true,
        'body'=>true,
    ],

    // Note: if you enable detect user in exception larax will push StartSession::class and EncryptCookies::class in $middleware Kernel.php
    // and you should be comment StartSession::class  from $middlewareGroups => web

    'detect_user'=>false,
    //array of guards names will use it for detect user id
    'guards'=>['auth'],

    //ignore fields in request headers (this fields not saved in db)
    'ignore_headers'=>[
        'Authorization','cookie'
    ],

    //ignore fields in request (this fields not saved in db)
    'ignore_inputs'=>[
        'image','password','password_confirmation'
    ],

    //send email when exception happened
    //enable send emails
    'enable_email'=>true,

    //email list you want send notify them with exception data
    'emails'=>[
       //example
        //'es.code@yahoo.com',
    ],

]
```

How to use
----------

[](#how-to-use)

open "" to see the exceptions did happened in your application.

[![Larax](https://camo.githubusercontent.com/b1f307871409f7ac31a740d00eae051f4ef6b3f24087fc8f0e782c363fd2cc5f/68747470733a2f2f692e6962622e636f2f327947335167662f53637265656e2d53686f742d323032312d30312d30342d61742d31312d33372d34372d504d2e706e67)](https://i.ibb.co/2yG3Qgf/Screen-Shot-2021-01-04-at-11-37-47-PM.png)

[![Larax exception info](https://camo.githubusercontent.com/327b335e2b274787afd69911ec0c9a7f925bc73022e9867f0c8f7abf6bc24a12/68747470733a2f2f692e6962622e636f2f716d79723358722f53637265656e2d53686f742d323032312d30312d30342d61742d31312d35362d34312d504d2e706e67)](https://i.ibb.co/qmyr3Xr/Screen-Shot-2021-01-04-at-11-56-41-PM.png)

Users
-----

[](#users)

users in larax is used to allow users to read exceptions using Larax Api.

Api
---

[](#api)

you can read your application exceptions data over Api just do "GET" request to "" using user key as bearer token

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2006d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18515650?v=4)[escode](/maintainers/escode)[@Escode](https://github.com/Escode)

---

Top Contributors

[![es-code](https://avatars.githubusercontent.com/u/47326667?v=4)](https://github.com/es-code "es-code (9 commits)")

---

Tags

errorhandlingexceptionslaravellaravel-frameworkphp

### Embed Badge

![Health badge](/badges/escode-larax/health.svg)

```
[![Health](https://phpackages.com/badges/escode-larax/health.svg)](https://phpackages.com/packages/escode-larax)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
