First setup: module registry, switchable modules, permissions
This commit is contained in:
commit
936c794597
52 files changed
+1304
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace IriksIT\Manager\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/** 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 ?? config('manager.table_prefix').parent::getTable();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user