Compression plugin with Laravel mix

I want to generate compressed resources files (br, or gz) after npm run prod with laravel. My (simplified) webpack.mix.js (about the same with mix.styles too) : const mix = require(‘laravel-mix’); mix.options({ cleanCss: { level: { 1: { specialComments: ‘none’ } } }, purifyCss: true }); mix.scripts([ ‘node_modules/popper.js/dist/umd/popper.min.js’, ‘node_modules/bootstrap/dist/js/bootstrap.min.js’, ‘node_modules/toastr/build/toastr.min.js’, ‘resources/js/material/custom.js’, ‘resources/js/material/waves.js’, ‘node_modules/socket.io-client/dist/socket.io.js’, ‘node_modules/laravel-echo/dist/echo.iife.js’ ],’public/js/admin-all.js’); const…

is there any way to store the radio button value in session in laravel

I am working on shopping cart where user can select size of product but when I click submit it just submits the last id not getting the id of selected radio button. Please see my code: Controller: public function getAddToCartsuboption(Request $request,$id){ $menu = SubMenu::find($id); // dd($menu); $oldCart = Session::has(‘cart’) ? Session::get(‘cart’):null; $cart = new Cart($oldCart);…