Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel excel

namespace AppImports;

use AppUser;
use MaatwebsiteExcelConcernsToModel;

class UsersImport implements ToModel
{
    public function model(array $row)
    {
        return new User([
           'email'    => $row[1],
        ])
    }
}
Source by laravel-excel.com #
 
PREVIOUS NEXT
Tagged: #laravel #excel
ADD COMMENT
Topic
Name
2+3 =