Compare commits

..

No commits in common. "336e3dbd3f82b69fae7be651e56d6f29e4a46f8e" and "8b25f57fe3e7afb035c4bbd860d941dca609b6af" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ abstract class Model
{
$array = [];
foreach (static::getFields() as $key) {
foreach (self::getFields() as $key) {
$method = 'get' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($this, $method)) {

View File

@ -2,7 +2,7 @@
use Cocur\Slugify\Slugify;
abstract class ModelWithSlug extends Model
class ModelWithSlug extends Model
{
protected static string $slugSource;