1 week ago

Need to add one key in musics collection

Posted 1 week ago by Haresh
            $query->select('music_id as id', 'category_id', 'name', 'music', 'is_locked', 'duration');
        }])->select('id', 'name')->where('user_id', $userId)->get();

I want to add one key is_favourite with music. How can I achieve that? I have tried with map but it didn't work.

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