// Assuming you have a model for the table you want to insert into $model = new YourModel; $model->packages = json_encode(request('packages')); // Store the selected packages as a JSON array $model->save(); =================== $packages = json_decode($model->packages);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter