diff --git a/src/UtilsServiceProvider.php b/src/UtilsServiceProvider.php index e85cbd3..c4d31a3 100644 --- a/src/UtilsServiceProvider.php +++ b/src/UtilsServiceProvider.php @@ -2,6 +2,7 @@ namespace Datalogix\Utils; +use Datalogix\Translation\TranslationServiceProvider; use Datalogix\Utils\Http\Middleware\HttpsProtocolMiddleware; use Illuminate\Contracts\Http\Kernel; use Illuminate\Database\Eloquent\Model; @@ -19,6 +20,7 @@ class UtilsServiceProvider extends ServiceProvider */ public function register() { + $this->app->register(TranslationServiceProvider::class, true); $this->mergeConfigFrom(__DIR__.'/../config/utils.php', 'utils'); } diff --git a/tests/TestCase.php b/tests/TestCase.php index 2930e4d..ca08168 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,23 +2,11 @@ namespace Datalogix\Utils\Tests; -use Datalogix\Translation\TranslationServiceProvider; use Datalogix\Utils\UtilsServiceProvider; use GrahamCampbell\TestBench\AbstractPackageTestCase; abstract class TestCase extends AbstractPackageTestCase { - /** - * Get the required service providers. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @return string[] - */ - protected function getRequiredServiceProviders($app) - { - return [TranslationServiceProvider::class]; - } - /** * Get the service provider class. *