File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ composer require elegantly/laravel-translator --dev
6363Add the following line to your ` .gitignore ` file:
6464
6565```
66- .translator.cache
66+ storage/ .translator.cache
6767```
6868
6969Publish the configuration file:
Original file line number Diff line number Diff line change 151151 * To speed up detection, all the results of the scan will be stored in a file.
152152 * Feel free to change the path if needed.
153153 */
154- 'cache_path ' => base_path ('.translator.cache ' ),
154+ 'cache_path ' => storage_path ('.translator.cache ' ),
155155 ],
156156 ],
157157
Original file line number Diff line number Diff line change 55use Elegantly \Translator \Facades \Translator ;
66use Illuminate \Console \Command ;
77
8- use function Laravel \Prompts \info ;
9-
108class ClearCacheCommand extends Command
119{
1210 public $ signature = 'translator:clear-cache ' ;
@@ -17,7 +15,7 @@ public function handle(): int
1715 {
1816 Translator::clearCache ();
1917
20- info ('Cache cleared ' );
18+ $ this -> components -> info ('Translator cache cleared. ' );
2119
2220 return self ::SUCCESS ;
2321 }
You can’t perform that action at this time.
0 commit comments