все
Пожалуйста, помогите с вышеуказанной ошибкой.
Я пытаюсь разместить данные в базе данных.
Это таблица ниже:
public function up() {
Schema::create('investment', function (Blueprint $table) {
$table->bigIncrements('id');
$table->decimal('amount');
$table->integer(**'invest_id')->unsigned()**;
$table->integer('reference_id')->unsigned();`
Это код на контроллере
public function confirm(Request $request)
{
$this->validate($request, [
'amount' => 'required|numeric',
'plan_id' => 'required|numeric',
]);
$interest = new Interest();
$interest->invest_id = $request->invest_id;
$interest->user_id = $user->id;
$interest->save();