Support the ongoing development of Laravel.io →
Input Database Forms
Last updated 1 year ago.
0
$input = Request::input();
$input['extra_data'] = $external_value;
Post::create($input);
0

Sorry, i forget to tell i already do this:

$input = $request->all();

But still not saving it to database

0
Solution

Have you defined $fillable property of your model?

0

DAMN! i've forgot it!

Thank you Xum!!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

b82 b82 Joined 12 May 2015

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.