rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

toArray() on collection not working #20

Closed ortix closed 10 years ago

ortix commented 10 years ago

I'm trying to get this package to work but I can't seem to retrieve the tags in a readable form.

I do $show->tagged()->toArray() and it throws and error that the method is not available. The collection does exist and I can even call first() on it. So why doesn't toArray() work?!

Am I missing something here?

rtconner commented 10 years ago

Oh, issue with the documentation, you just want $show->tagged->toArray() I've updated the readme.

ortix commented 10 years ago

You tha boss!