Compare commits

..

2 Commits

2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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;