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

simomrh liked this reply

1

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.