| 1 | <?php namespace App\Modules\V1\Core; |
||
| 6 | class Settings extends Model{ |
||
| 7 | |||
| 8 | use SoftDeletes; |
||
| 9 | protected $table = 'settings'; |
||
| 10 | protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
||
| 11 | protected $hidden = ['deleted_at']; |
||
| 12 | protected $guarded = ['id', 'key']; |
||
| 13 | protected $fillable = ['name','value']; |
||
| 14 | public $searchable = ['name', 'value', 'key']; |
||
| 15 | |||
| 16 | public function getCreatedAtAttribute($value) |
||
| 20 | |||
| 21 | public function getUpdatedAtAttribute($value) |
||
| 25 | |||
| 26 | public function getDeletedAtAttribute($value) |
||
| 30 | |||
| 31 | public function newCollection(array $models = []) |
||
| 35 | |||
| 36 | public static function boot() |
||
| 41 | } |
||
| 42 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.