october cms extend jsonable code example
Example: octobercms model add fillable
YourModel::extend(function($model) {
$model->addFillable([
'fillable',
'field',
'names'
]);
});
YourModel::extend(function($model) {
$model->addFillable([
'fillable',
'field',
'names'
]);
});