laravel-api-response-helpers
laravel-api-response-helpers copied to clipboard
:rocket: A simple package allowing for consistent API responses throughout your Laravel application
As a developer sometimes I'd like to respond with a file in certain routes, e.g. Instead of constructing a response like: ``` /** * Returns the file as a response....
Add GitHub action to run PHP CS-Fixer and automatically submit any issues via a pull request
For methods such as [`respondUnAuthenticated`](https://github.com/f9webltd/laravel-api-response-helpers/blob/master/src/ApiResponseHelpers.php#L60-L66) add a second optional argument to set the (in this case), 'error' key.
Finally, I got some time to work on this, I'm not sure if this is the correct approach but I decided to create a new trait for file-related operations. Please...
Fix Composer dependency caching when running GitHub actions