Laravel по-русски

Русское сообщество разработки на PHP-фреймворке Laravel.

Ты не вошёл. Вход тут.

#1 Re: Laravel 5.x » формирование архива выбранных файлов и их загрузку. ZipArchive » 13.05.2025 12:44:43

To pass the selected product IDs from your Blade checkboxes (`product_checked[]`) to your Laravel controller, enclose the checkboxes and a submit button within an HTML `<form>` with the POST method, pointing to the route of your `zipArchiveFile` method. Laravel will automatically Official Website populate the `$request->input('product_checked')` as an array of the selected values upon form submission. No complex JavaScript is needed for this standard form handling.

Подвал раздела