app/Http/Livewire/Datatable.php: add getModelName()
This commit is contained in:
parent
0c493c2978
commit
e596502650
1 changed files with 8 additions and 0 deletions
|
|
@ -85,6 +85,14 @@ class Datatable extends Component
|
||||||
$this->setTrashedColumns();
|
$this->setTrashedColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the model name.
|
||||||
|
*/
|
||||||
|
public function getModelName() : string
|
||||||
|
{
|
||||||
|
return class_basename($this->model);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete an record
|
* Delete an record
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Reference in a new issue