PHP code example of willis1776 / nova-excel-import
1. Go to this page and download the library: Download willis1776/nova-excel-import library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
willis1776 / nova-excel-import example snippets
// in app/Providers/NovaServiceProvider.php or app/Nova/<Resource>.php
// ...
public function card()
{
return [
// ...
new \Willis1776\NovaExcelImport\NovaExcelImport(\App\Nova\User::class),
];
}
// app/Nova/User.php
class User extends Resource
{
public static $importer = CustomImporter::class;
// ...
}
// or app/config/nova-import-card.php
return [
'importer' => CustomImporter::class,
// ...
]