app/Http/Livewire/Form/ModelForm.php: Translate flash messages.
This commit is contained in:
parent
4b86674ac7
commit
64bfcc71e1
1 changed files with 2 additions and 2 deletions
|
|
@ -57,10 +57,10 @@ abstract class ModelForm extends Component
|
|||
|
||||
if ($this->isNew()) {
|
||||
return redirect()->route($this->redirect_route)
|
||||
->with('info', "{$this->getModelName()} was successfully created.");
|
||||
->with('info', __("{$this->getModelName()} was successfully created."));
|
||||
}
|
||||
|
||||
$this->info("{$this->getModelName()} was successfully updated.");
|
||||
$this->info(__("{$this->getModelName()} was successfully updated."));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Reference in a new issue