1. Go to this page and download the library: Download konnco/filament-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/ */
konnco / filament-import example snippets
use Konnco\FilamentImport\Actions\ImportAction;
use Konnco\FilamentImport\Actions\ImportField;
class ListCredentialDatabases extends ListRecords
{
protected static string $resource = CredentialDatabaseResource::class;
protected function getActions(): array
{
return [
ImportAction::make()
->fields([
ImportField::make('project')
->label('Project')
->helperText('Define as project helper'),
ImportField::make('manager')
->label('Manager'),
])
];
}
}