Compare commits
No commits in common. "336e3dbd3f82b69fae7be651e56d6f29e4a46f8e" and "8b25f57fe3e7afb035c4bbd860d941dca609b6af" have entirely different histories.
336e3dbd3f
...
8b25f57fe3
@ -41,7 +41,7 @@ abstract class Model
|
|||||||
{
|
{
|
||||||
$array = [];
|
$array = [];
|
||||||
|
|
||||||
foreach (static::getFields() as $key) {
|
foreach (self::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;
|
||||||
|
|
||||||
abstract class ModelWithSlug extends Model
|
class ModelWithSlug extends Model
|
||||||
{
|
{
|
||||||
protected static string $slugSource;
|
protected static string $slugSource;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user