save to laravel polymorphic relationship

Posted 2 months ago by azhar_hussain

when im trying to submit then following error comes

"message": "Method Illuminate\Support\Collection::likes does not exist. 100"

my code looks like this

                $model=new $this->model;

willl be appriciated

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.