/** * 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(); }
/** * 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); }
/** * Get All of the ONTs */ public function index() { return Ont::all(); }
/** * Delete an ONT */ public function deleteOnt(Ont $ont) { event(new OntWasRemoved($ont)); $ont->delete(); return back(); }