laravel-meta icon indicating copy to clipboard operation
laravel-meta copied to clipboard

cant use metable with other packages

Open mouhsinelonly opened this issue 9 years ago • 4 comments

when trying to use metable with laravel-stapler package i get a collision of method getattribute and i have to disable laravel-meta or laravel-stapler in order for one of them to work.

mouhsinelonly avatar Nov 13 '15 19:11 mouhsinelonly

@mouhsinelonly I will take a look and let you know.

kodeine avatar Nov 13 '15 19:11 kodeine

The same problem with package Dimsav\Translatable, method getAttribute is getting colliding with the method from other package

vinaykevadia avatar Dec 08 '18 04:12 vinaykevadia

@vinaykevadia if you can submit a PR for a fix please feel free to do so.

kodeine avatar Dec 09 '18 18:12 kodeine

This is not a problem with Metable itself, but a Trait issue and needs a manual operation to rewrite getAttribute, please see: https://stackoverflow.com/a/25064632/405217

For more information: https://www.php.net/manual/en/language.oop5.traits.php#language.oop5.traits.conflict

stephandesouza avatar May 10 '19 13:05 stephandesouza