salebab / larasponse Goto Github PK
View Code? Open in Web Editor NEWLaravel & Fractal
License: MIT License
Laravel & Fractal
License: MIT License
How do I return with a status code other than the default 200?
When i use this:
$this->fractal->item($object, new ObjectTransformer, 'result');
i got object that does not wrapped with "result" key
In fact I need someone explain to me how to use parseIncludes() with real example
Thanks
For the sake of saving on HTTP requests, I tend to combine multiple GETs into one. E.g. (simplified):
<?php
class OrderInfoController extends BaseController
{
public function show()
{
$productsRequest = Request::create('/api/v1/products', 'GET');
$products = Route::dispatch($productsRequest)->getData();
$timesRequest = Request::create('/api/v1/deliverytimes', 'GET');
$times = Route::dispatch($timesRequest)->getData();
return Response::json(array(
'products' => $products,
'times' => $times
), 200);
}
}
Now, how can I deal with this situation using Larasponse?
is it possible to use DataArraySerializer for everything else but ArraySerializer for includes ?
Hey, before jumping this package too far, just wanna confirm which license is attached to this repository/package? Perhaps a LICENSE.txt file could be made?
I see there's been no commits since December, is this still being maintained?
L5 is out :) could we have a version number that supports L5?
I know how it is to support packages :) it can suck some time, just wondering if I should fork it and maintain my own.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.