/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(Request $request) { $coatch_licence = new CoatchLicence(); $coatch_licence->NAZWA = $request->input("NAZWA"); $coatch_licence->save(); \Session::flash('alert-class', 'alert-success'); return redirect()->route('coatch_licences.index')->with('message', 'Item created successfully.'); }