Laravel 11 introduces a new method for defining model casts, allowing the use of static methods. The update is backward-compatible with Laravel 10.
Sort: