LaravelPackages.net
Acme Inc.
Toggle sidebar
smart-contact/sc-utils

SmartContact Utils

51
0
v1.1.1
About smart-contact/sc-utils

smart-contact/sc-utils is a Laravel package for smartcontact utils. It currently has 0 GitHub stars and 51 downloads on Packagist (latest version v1.1.1). Install it with composer require smart-contact/sc-utils. Discover more Laravel packages by smart-contact or browse all Laravel packages to compare alternatives.

Last updated

Responses

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.

Comments