convert string to array in laravel collection code example Example: string to array in laravel $explode_id = json_decode($request->data, true);