public function boot()
    {
        $this->publishes([$this->configuration => config_path('hijri-dates.php')], 'config');
        $this->publishes([$this->translations => resource_path('lang/vendor/hijri-dates/')], 'translation');

        $this->mergeConfigFrom($this->configuration, 'hijri-dates');
        $this->loadTranslationsFrom($this->translations, 'hijri-dates');

        $translation = Config::get('hijri-dates.translation');
        Date::setTranslation(new $translation);
        Date::setToStringFormat(Config::get('hijri-dates.toStringFormat'));
        Date::setDefaultNumbers(Config::get('hijri-dates.numeric_system'));

        Hijri::setDefaultAdjustment(Config::get('hijri-dates.adjustment'));
    }
public function boot()
    {
        $this->publishes([$this->configuration => config_path('hijri-dates.php')], 'config');
        $this->publishes([$this->translations => resource_path('lang/vendor/hijri-dates/')], 'translation');

        $this->mergeConfigFrom($this->configuration, 'hijri-dates');
        $this->loadTranslationsFrom($this->translations, 'hijri-dates');

        $translation = Config::get('hijri-dates.translation');
        Date::setTranslation(new $translation);
        Date::setToStringFormat(Config::get('hijri-dates.toStringFormat'));
        Date::setDefaultNumbers(Config::get('hijri-dates.numeric_system'));

        Hijri::setDefaultAdjustment(Config::get('hijri-dates.adjustment'));
    }
public function boot ( ) { $ this -> publishes ( [ $ this -> configuration => config_path ( 'hijri-dates.php' ) ] , 'config' ) ; $ this -> publishes ( [ $ this -> translations => resource_path ( 'lang/vendor/hijri-dates/' ) ] , 'translation' ) ; $ this -> mergeConfigFrom ( $ this -> configuration , 'hijri-dates' ) ; $ this -> loadTranslationsFrom ( $ this -> translations , 'hijri-dates' ) ; $ translation = Config :: get ( 'hijri-dates.translation' ) ; Date :: setTranslation ( new $ translation ) ; Date :: setToStringFormat ( Config :: get ( 'hijri-dates.toStringFormat' ) ) ; Date :: setDefaultNumbers ( Config :: get ( 'hijri-dates.numeric_system' ) ) ; Hijri :: setDefaultAdjustment ( Config :: get ( 'hijri-dates.adjustment' ) ) ; }
Bootstrap any application services.

@return void
Bootstrap any application services .