Laravel devs, which do you prefer for fixing PHPStan errors in API Resources? π
Also did you know you can access the underlying model via $this->resource? Just type hint it with @property-read and you are good to go! π
Laravel devs, which do you prefer for fixing PHPStan errors in API Resources? π
Also did you know you can access the underlying model via $this->resource? Just type hint it with @property-read and you are good to go! π