Exemple #1
0
 public function updateForm($id_host)
 {
     $host = Host::with('client')->find($id_host);
     $clients = Client::orderBy('lower(name)', 'asc')->get();
     if (empty($id_host)) {
         return 'Hostname não encontrado';
     }
     return View::make('hosts.hostsUpdate')->with('host', $host)->with('clients', $clients);
 }
 public function create()
 {
     $hostnames = Host::with('client')->orderBy('lower(hostname)')->get();
     $clients = Client::orderBy('lower(name)', 'asc')->get();
     return View::make('databases.databasesCreate')->with('hostnames', $hostnames)->with('clients', $clients);
 }