Response Facade is GREAT!
But it's limited to Respnse::make and Response::view
That's helpful.
But, I'm running into a hiccup.
On a successful $object->save() {either on controller.store or controller.update} I'd love to use Response class to route to the resource as:
if($object->save()){
return Response::route('object.show',array(),201,array())->with('object',$object->find($id));
}
Any thoughts?
I think you mistake this of
return Redirect::route();
Not at all.
The problem with
return Redirect::route();
is I cannot send a '200' or '201' status code.
Because it insists on a '302' status code
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community