ReadOnlyTraitLaravel icon indicating copy to clipboard operation
ReadOnlyTraitLaravel copied to clipboard

Laravel Read Only Model Traits

Results 4 ReadOnlyTraitLaravel issues
Sort by recently updated
recently updated
newest added

When a recently upgrade my system that uses ReadOnlyTrait, the following error is showed: Declaration of MichaelAChrisco\ReadOnly\ReadOnlyTrait::touch() must be compatible with Illuminate\Database\Eloquent\Model::touch($attribute = null) To correct this error, I just...

The newest version 9.0+ https://github.com/illuminate/database seems to be having issues with php 8.0+ Note this bug seems to only break this libraries CI job and NOT the official framework itself....

bug

New functionality was added here: https://github.com/michaelachrisco/ReadOnlyTraitLaravel/pull/43 to disable the trait on the fly. This should be added to the README file at some point.

help wanted
good first issue

https://laravel-news.com/php-8-2-0#content-readonly-classes Looks like PHP introduced readonly classes. Would it make sense to inherit that instead of having custom exceptions? It looks like it only works with dynamic properties not necessarily...

help wanted
good first issue