/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(Request $request) { $inputs = \Input::all(); $node = new Node(); $node->fill(\Input::all()); $node->save(); //Not just returning $node here because $node only have the fields from Input::all(). //We need to return all the fields. return Node::whereId($node->id)->first(); }