예제 #1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $ont = new Ont();
     $ont->model = 'GF-2426A';
     $ont->indoor = true;
     $ont->thumbnail = '/images/gf-indoor-ont.jpg';
     $ont->save();
     $ont = new Ont();
     $ont->model = 'GF-4226';
     $ont->indoor = false;
     $ont->thumbnail = '/images/gf-outdoor-ont.jpg';
     $ont->save();
 }
예제 #2
0
 /**
  * Show the application dashboard.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $provisioning = Provisioning::all();
     $customers = Customer::all();
     $onts = Ont::all();
     $accessSwitches = AccessSwitch::all();
     $dhcpSharedNetworks = DhcpSharedNetwork::all();
     $ipaddresses = Ipaddress::all();
     $ports = AccessSwitchPort::all();
     return view('home')->with('provisioning', $provisioning)->with('customers', $customers)->with('onts', $onts)->with('accessSwitches', $accessSwitches)->with('ports', $ports)->with('ipaddresses', $ipaddresses)->with('DhcpSharedNetworks', $dhcpSharedNetworks);
 }
예제 #3
0
 /**
  * Get All of the ONTs
  */
 public function index()
 {
     return Ont::all();
 }
예제 #4
0
 /**
  * Delete an ONT
  */
 public function deleteOnt(Ont $ont)
 {
     event(new OntWasRemoved($ont));
     $ont->delete();
     return back();
 }