PR CI / ledger (pull_request) Successful in 3s
PR CI / flow (pull_request) Successful in 4s
PR CI / ui (pull_request) Successful in 17s
PR CI / test (lowest) (pull_request) Successful in 45s
PR CI / test (stable) (pull_request) Successful in 48s
PR CI / security (pull_request) Successful in 54s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Successful in 3s
18 lines
407 B
PHP
18 lines
407 B
PHP
<?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());
|
|
}
|
|
}
|