Let route names and tables move, and add manager:import
This commit is contained in:
1 parent
984024eb85
commit
60ad85a621
45 files changed
+491
-73
No files matched your search
@@ -3,6 +3,7 @@
|
||||
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
|
||||
@@ -11,6 +12,6 @@ abstract class Model extends Eloquent
|
||||
|
||||
public function getTable(): string
|
||||
{
|
||||
return $this->table ?? config('manager.table_prefix').parent::getTable();
|
||||
return $this->table ?? Names::table(parent::getTable());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user