first(); return view('policies.index', compact('policy')); } //updates the policy pages public function store(Request $request){ $policy = Policy::where('name', $request->name)->first(); $policy->name = $request->name; $policy->content = $request->content; $policy->save(); flash($request->name.' '.translate('updated successfully')); return back(); } }