public function our_staff() { $personals = Personal::all(); $victories = Victory::orderBy('created_at', 'DESC')->limit(7)->get(); return View::make('pages.ourstaff', compact('personals', 'victories')); }
public function hide_victory($id) { $victory = Victory::find($id); $victory->is_published = 0; $victory->save(); return Redirect::to('/allVictories')->with("success", "Successfully published {$victory->name}"); }