Support the ongoing development of Laravel.io →
posted 5 years ago
Database
Last updated 7 months ago.
0

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.

1

Sign in to participate in this thread!

LaraJobs

Your banner here too?

flipmedia flipmedia Joined 22 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.