Modules/FormBuilder/Http/Controllers/FormBuilderController.php
/**
     * Store a newly created resource in storage.
     * @param Request $request
     * @return Renderable
     */
Store a newly created resource in storage.
@param Request $request
@return Renderable
Store a newly created resource in storage . @param Request $request @return Renderable
public function storeItem(Request $request)
    {
        $user = $this->formRepo->storeItem($request);
        return redirect()->route('form.createItem',$request->form_id)->with('success','Form Item created successfully');
    }
public function storeItem ( Request $ request ) { $ user = $ this -> formRepo -> storeItem ( $ request ) ; return redirect ( ) -> route ( 'form.createItem' , $ request -> form_id ) -> with ( 'success' , 'Form Item created successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .