smart-contact / sc-utils
SmartContact Utils
v1.1.1
2021-05-19 09:02 UTC
Requires
- google/cloud-bigquery: ^1.22
- illuminate/support: ~7|~8
- jenssegers/agent: ^2.6
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
README
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.