PHP code example of mellojoaoaus / filament-import
1. Go to this page and download the library: Download mellojoaoaus/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/ */
mellojoaoaus / 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'),
])
];
}
}