From a cursory look into Illuminate\Database\Eloquent\Model
I can see the following instance attributes:
protected $connection
protected $table
protected $primaryKey
protected $perPage
public $incrementing
public $timestamps
protected $attributes
protected $original
protected $relations
protected $hidden
protected $visible
protected $appends
protected $fillable
protected $guarded
protected $dates
protected $dateFormat
protected $casts
protected $touches
protected $observables
protected $with
protected $morphClass
public $exists
public $wasRecentlyCreated
Questions:
static
, seeing as they are class-level configuration stuff?It appears that $changes
is also a reserved name.
These attributes can not be static because they are used as their model configuration. If you rewrites them in your model class, you define your own parameters, if not, the Eloquent believes it should use the defaults. Yes, you should not have a column name in your table that matches the name of one of these attributes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With