src/TranslatableServiceProvider.php
public function register()
    {
        TranslatableConfig::cacheGetter(function($table) {
            return $this->app['cache']->get('translatable.' . $table);
        });

        TranslatableConfig::cacheSetter(function($table, $fields) {
            return $this->app['cache']->forever('translatable.' . $table, $fields);
        });

        TranslatableConfig::currentLocaleGetter(function() {
            return $this->app->getLocale();
        });

        TranslatableConfig::fallbackLocaleGetter(function() {
            return method_exists($this->app, 'getFallbackLocale')
                ? $this->app->getFallbackLocale()
                : config('app.fallback_locale');
        });
    }
public function register()
    {
        TranslatableConfig::cacheGetter(function($table) {
            return $this->app['cache']->get('translatable.' . $table);
        });

        TranslatableConfig::cacheSetter(function($table, $fields) {
            return $this->app['cache']->forever('translatable.' . $table, $fields);
        });

        TranslatableConfig::currentLocaleGetter(function() {
            return $this->app->getLocale();
        });

        TranslatableConfig::fallbackLocaleGetter(function() {
            return method_exists($this->app, 'getFallbackLocale')
                ? $this->app->getFallbackLocale()
                : config('app.fallback_locale');
        });
    }
Register the service provider.

@return void