public function aboutstore(AboutFormRequest $ar) { if (Gate::denies('admin')) { return 'You ain\'t got access bro'; } else { $a = Aboutpage::where('activated', true)->first(); if ($a != null) { $a->activated = false; $a->save(); } $a = new Aboutpage(array('title' => $ar->get('title'), 'about_body' => $ar->get('about_body'), 'activated' => true)); $a->save(); return \Redirect::action('AdminController@about')->with('message', 'Your aboutpage has been stored and applied'); } }