/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(rentaltypeRequest $request) { $input = Input::all(); $rentaltype = new Rentaltype(array('title' => $request->get('title'))); $rentaltype->save(); return redirect('Admin/rentaltypes')->with('message', 'Rentaltype created successfully'); }