Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ composer require elegantly/laravel-translator --dev
Add the following line to your `.gitignore` file:

```
.translator.cache
storage/.translator.cache
```

Publish the configuration file:
Expand Down
2 changes: 1 addition & 1 deletion config/translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
* To speed up detection, all the results of the scan will be stored in a file.
* Feel free to change the path if needed.
*/
'cache_path' => base_path('.translator.cache'),
'cache_path' => storage_path('.translator.cache'),
],
],

Expand Down
4 changes: 1 addition & 3 deletions src/Commands/ClearCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Elegantly\Translator\Facades\Translator;
use Illuminate\Console\Command;

use function Laravel\Prompts\info;

class ClearCacheCommand extends Command
{
public $signature = 'translator:clear-cache';
Expand All @@ -17,7 +15,7 @@ public function handle(): int
{
Translator::clearCache();

info('Cache cleared');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why note prompt info function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

image

Now:

image

For more highlighting the message.

$this->components->info('Translator cache cleared.');

return self::SUCCESS;
}
Expand Down