protected function bootIfNotBooted() { if (!isset(static::$booted[static::class])) { static::$booted[static::class] = true; $this->fireModelEvent('booting', false); static::boot(); $this->fireModelEvent('booted', false); } }
protected function bootIfNotBooted() { $this->i18n_default_locale = Session::get("language", "en"); parent::bootIfNotBooted(); }