Try below code with corrected insert:
DB::table('magazine_details')->insert([
'magazine_id' => $request->magazine,
'page' => $request->pagename,
'page_description' => $request->description,
'page_number' => $request->pageno,
'file' => $audioName,
'created_at' => $date,
'updated_at' => $date,
'user_id' => 1
]);
Regarding how to insert query, read the documentation.
simomrh liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community