Skip to content
Advertisement

Import from CSV to Laravel

I’m trying to import a lot of records. The records are in a .CSV file.
The records should go to “DocCertification” which model. The records have fields that depend on other models.

What I did was create a path “/import” which uses the TestController. I get the error:

Trying to get property ‘n_matriculated’ of non-object

But I also get public function getCustomerId().

I don’t know what I’m doing wrong.

JavaScript

I don’t understand what I’m supposed to do.

This is the error it shows: Image

Advertisement

Answer

You are not getting anything in the $matriculated variable. Try checking it before returning.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement