1. Go to this page and download the library: Download coolsam/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/ */
use Coolsam\FilamentExcel\Actions\ImportAction;
use Coolsam\FilamentExcel\Actions\ImportField;
protected function getHeaderActions(): array
{
return [
ImportAction::make('users')->fields([
ImportField::make('name')->
use Coolsam\FilamentExcel\Actions\ImportField;
use Coolsam\FilamentExcel\Actions\Tables\ImportAction;
$table->headerActions([
ImportAction::make('import users')
->fields([
ImportField::make('name')->))
])