File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
All notable changes to ` :package_name ` will be documented in this file.
4
+
5
+ ## v1.0.0 - 2024-09-24
6
+
7
+ ** Full Changelog** : https://github.com/ferdiunal/laravel-translator/commits/v1.0.0
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ public static function translator(string $translator): Translator
46
46
/**
47
47
* @var class-string<Translators[T]> $instance
48
48
*/
49
- $ instance = str ($ translator )->ucfirst ()->prepend ('Ferdiunal\LaravelTranslator\Translators \\' )->append ('Translator ' )->toString ();
50
- if (! class_exists ($ instance )) {
49
+ $ instance = str ($ translator )->ucfirst ()->prepend ('\ Ferdiunal\LaravelTranslator\Translators \\' )->append ('Translator ' )->toString ();
50
+ if (! class_exists ($ instance ) && ! app ()-> environment ( ' testing ' ) ) {
51
51
throw new \Exception (sprintf ('The translator %s does not exist. ' , $ instance ));
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -24,13 +24,5 @@ protected function getPackageProviders($app)
24
24
];
25
25
}
26
26
27
- public function getEnvironmentSetUp ($ app )
28
- {
29
- config ()->set ('database.default ' , 'testing ' );
30
-
31
- /*
32
- $migration = include __DIR__.'/../database/migrations/create_laravel-translator_table.php.stub';
33
- $migration->up();
34
- */
35
- }
27
+ public function getEnvironmentSetUp ($ app ) {}
36
28
}
You can’t perform that action at this time.
0 commit comments