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