/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(ReligionRequest $request) { $religion = new Religion(); $religion->religion = $request->religion; $religion->save(); return view('admin.religions'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store() { $religions = new Religion(); $religions->name = Input::get('name'); $religions->active = Input::get('active'); $religions->save(); Session::flash('message', 'You have successfully added religion'); return Redirect::to('dashboard/admin/religions'); }