Support the ongoing development of Laravel.io →
posted 6 years ago
Database
Last updated 1 year 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!

Full Stack Europe

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.

© 2023 Laravel.io - All rights reserved.