v0.7.0
This commit is contained in:
commit
1c8ad7dd6d
166 files changed
+11934
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace IriksIT\Manager\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
use IriksIT\Manager\Support\Names;
|
||||
|
||||
/** Base of the package models: tables get the configured prefix, e.g. manager_pages. */
|
||||
abstract class Model extends Eloquent
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
public function getTable(): string
|
||||
{
|
||||
return $this->table ?? Names::table(parent::getTable());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user