Skip to content

Laravel, store multiple variables from array into DB

Im not sure if the question title is correct but what I wanna do is clear in the example below I have 3 arrays and I want to store data in one table the table structure is like this table name: tour_transports id transport_id transport_track transport_note arrays coming from blade so as you see the ids are 1 …

Combine/Merge arrays that have the same keys PHP

I have an array that has some keys that are repeating multiple times. Would like to combine them so that I can have them in one array, within the same array. I have an array of this type; Array ( […

how to upload image on flutter to MySQL

I am a newbie in a flutter. Can someone show me how to upload an image to my MySQL? I can’t find any solution in the past weeks. My Code: import ‘dart:io’; import ‘package:flutter/cupertino.dart’; …

getting previous 6 months getting issue

I am facing issue to get last 6 months in the basis of month number issue is this the above code return Oct-21Sep-21Aug-21Jul-21Jun-21May-21 and required result should be Oct-20 Sep-20 Aug-20 Jul-20 Jun-20 May-20 Answer One way to deal with your year issue is to compare $vBillMonthPrev with the current month,…