Learning Laravel
Make API for your web project
Once there was campisano bike with such a structure of the response:
{success: true,
globe_error: 'OK'
errors: [],
data: []}
How to make same pattern of response in Laravel? Or even is it possible?
I used to have just the Output class with static methods '::addError', '::setData'
Then it all was run through json_encode and I enjoy life
And here I already googled but couldn't find one