diff --git a/app/Http/Livewire/Datatable.php b/app/Http/Livewire/Datatable.php index 811ded1..52f0c51 100644 --- a/app/Http/Livewire/Datatable.php +++ b/app/Http/Livewire/Datatable.php @@ -85,6 +85,14 @@ class Datatable extends Component $this->setTrashedColumns(); } + /** + * Get the model name. + */ + public function getModelName() : string + { + return class_basename($this->model); + } + /** * Delete an record */