I
I
iurakuleshov2020-07-24 18:02:30
Laravel
iurakuleshov, 2020-07-24 18:02:30

How to write array to base?

Hello, maybe this is a stupid question, but still.
I have an array

array:10 [▼
  "_token" => "BkHwDGW7QcWypcQcecyJ2LOKEZh153alVUKnjbns"
  "to" => "null"
  "from" => null
  "air-number" => null
  "date" => "31 Июль 2020"
  "classRentDriver" => "0"
  "name-passenger" => "Иван Иванов"
  "phone-passenger" => "+7 (777) 777-77-77"
  "email-passenger" => null
  "comments" => null
]

The base is created there everything is fine, there is a connection. I have already climbed a lot of resources and I still can’t figure out how to write it to the database.
Please tell me how to do it right? I just recently started working with Laravel and still don't understand everything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-07-24
@New_Horizons

https://laravel.com/docs/7.x/queries#inserts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question