1

I try create new post using:

$post = $this->post->create($session, $response['PAYMENTINFO_0_TRANSACTIONID']);

In $session are complete array of data for store. In $response['PAYMENTINFO_0_TRANSACTIONID'] is token of payment.

When I check database, some fields are missing, but all data are in $session.

Why create() in Laravel don't want store all data?

2 Answers 2

1

Please add the field names in

protected $fillable = ['field1','field2','field3'];

in your Eloquent Model

Sign up to request clarification or add additional context in comments.

Comments

0

Solved with editing Eloquent. No issue with code.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.