smart-contact/sc-utils

SmartContact Utils

v1.1.1 2021-05-19 09:02 UTC

This package is auto-updated.

Last update: 2024-11-19 16:30:40 UTC


README

Latest Version on Packagist Total Downloads License

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require smart-contact/responses

Usage

Include Trait SmartContact\Responses\Traits\HasResponses on desired Controller

Extends App\Exceptions\Handler with:

class Handler extends \SmartContact\Responses\Exceptions\Handler
{
    ...
    
    //only if you add custom exceptions
    public function register()
    {
        $this->setOverride(true);
        ...
        Other Report And Render
        ...
        $this->renderable(function (\ErrorException $e) {
            return response($this->retrieveResponse($e), 500);
        });
    }
}

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.