Package Data | |
---|---|
Maintainer Username: | purwandi |
Maintainer Contact: | me@purwandi.id (Purwandi) |
Package Create Date: | 2016-08-10 |
Package Last Update: | 2016-08-23 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-16 15:01:14 |
Package Statistics | |
---|---|
Total Downloads: | 79 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
TLDR ;)
Install the package through Composer:
composer require purwandi/responder
After updating Composer, append the following service provider to the providers key
in config/app.php
Purwandi\Responder\ResponderServiceProvider::class
If you like facades you may also append the Responder
facade to the aliases
key:
Optionally, you may use the Responder
facade to create responses:
return Responder::success($users);
return Responder::with('blog')->success($users);
return Responder::with('blog', 'blog.comment')->success($users);