app/Http/Livewire/Datatable.php: Use getModelName() to make the alert messages abit more non-generic.
This commit is contained in:
parent
e596502650
commit
9879181779
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ class Datatable extends Component
|
|||
|
||||
$record->delete();
|
||||
|
||||
$this->info(__("Record #:id was deleted.", [ 'id' => $record->id ]));
|
||||
$this->info(__($this->getModelName() . " #:id was deleted.", [ 'id' => $record->id ]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -132,7 +132,7 @@ class Datatable extends Component
|
|||
|
||||
$record->restore();
|
||||
|
||||
$this->info(__("Record #:id was restored.", [ 'id' => $record->id ]));
|
||||
$this->info(__($this->getModelName() . " #:id was restored.", [ 'id' => $record->id ]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue