Archived
1
0
Fork 0

app/Http/Livewire/Datatable.php: add getModelName()

This commit is contained in:
Henrik Hautakoski 2022-01-24 22:57:54 +01:00
parent 0c493c2978
commit e596502650

View file

@ -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
*/