Is it safe and possible to send large laravel collection as variable through ajax to controllers?
I want to send laravel collection from html button button: <button url="{{ route('get.pk',$pm) }}" data-pm="{{ json_encode($pm) }}"> <i class="fa fa-arrow-down text-white"></i> </button> ajax request: let pm = $(this).data('pm'); if(check.length < 2){ $.ajax({ url: ini.attr('url'), method: "POST", dataType: 'json', data: {_token:…