public function boot() { if ($this->isBooted) { return; } $this->fireAppCallbacks($this->bootingCallbacks); foreach ($this->registered as $provider) { $provider->boot(); } $this->isBooted = true; $this->fireAppCallbacks($this->bootedCallbacks); }