Compare commits
2 Commits
8b25f57fe3
...
336e3dbd3f
Author | SHA1 | Date | |
---|---|---|---|
336e3dbd3f | |||
eae3746dd3 |
@ -41,7 +41,7 @@ abstract class Model
|
|||||||
{
|
{
|
||||||
$array = [];
|
$array = [];
|
||||||
|
|
||||||
foreach (self::getFields() as $key) {
|
foreach (static::getFields() as $key) {
|
||||||
$method = 'get' . str_replace('_', '', ucwords($key, '_'));
|
$method = 'get' . str_replace('_', '', ucwords($key, '_'));
|
||||||
|
|
||||||
if (method_exists($this, $method)) {
|
if (method_exists($this, $method)) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use Cocur\Slugify\Slugify;
|
use Cocur\Slugify\Slugify;
|
||||||
|
|
||||||
class ModelWithSlug extends Model
|
abstract class ModelWithSlug extends Model
|
||||||
{
|
{
|
||||||
protected static string $slugSource;
|
protected static string $slugSource;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user