/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroyServer($id) { // serverModel::destroy($id); return redirect('admin/servers'); }
public function updatedServers() { $servers = serverModel::orderBy('updated_at', 'desc')->paginate(5); $servers->setPath('updated'); return view('server/allServers', ['servers' => $servers]); }