data is showing success , but data is not saving in database. also $company, $year and $month variable is showing the right value. where is the problem? why the data is not saving?
Are you sure $month_year_multi_ids = $request->get('checkbox_Names'); this statement is giving you the correct data? It should give you an array with values from the selected items.
Let's do this step by step. What does the request give you back? You can test that by doing something like this
public function postdata(Request $request)
{
dd($request->all()):
// Your other code
}
@bobbybouwmann , yes $month_year_multi_ids = $request->get('checkbox_Names'); return the right values, and dd($request->all()) also return the right result