Special php / js functions
object to array (database operation) $getTeam = \App\Models\AgencyMyTeam::where('user_id',$userid)->get()->toArray(); if($getTeam) { $disGallery = ''; } else { $disGallery = 'none'; } Remove backslace from string var finalData = str.replace(/\\/g, "");…