Skip to content
Advertisement

Tag: laravel-7.x

Error: Object of class AppHttpResourcesProductAttributeResource could not be converted to int

I’m using method in my model to mutate a single response to my client When call product Laravel using this method name by default? Debugger show this area: C:xampphtdocs…/…vendorLaravelframeworksrcIlluminateDatabaseEloquentConcernsHasAttributes.php:521 How can I resolve this error? Answer in my case i use a reserved method name in my model for example i define a new attribute() method for my one to

Advertisement