New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

agilesdesign/envitor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agilesdesign/envitor

DotEnv Editor Library for Laravel

Source
Packagist
Version
v1.0.0-alpha.1
Version published
Total downloads
44
Maintainers
1
Created
Source

exceptum

Custom Exception Handling for Laravel

Installation

Include through composer

composer require agilesdesign/exceptum

Add to provider list
'providers' => [
    Exceptum\Providers\ExceptumServiceProvider::class,
];

Usage

Create an Abettor

Abettor is synonymous with App\Exceptions\Handler in it's intent, but is not an extension of it.

Currently it only supports implementing the response provided to the render method on App\Exception\Handler

class AuthorizatonExceptionAbettor implements Abettor
{
    public function render($request, Exception $exception)
    {
        // handle exception
    }
}
Register Mapping

Exceptum falls back to Laravel's App\Exception\Handler class unless it knows about an Abettor responsible for Exception thrown.

To tell Exceptum about an Abettor register a mapping in your ServiceProviders register method

public function register()
{
    Exceptum::map(AuthorizationException::class, AuthorizationExceptionAbettor::class);
}

FAQs

Package last updated on 05 Jan 2017

Related posts