Import Filament V3.1

Import was working perfect on localhost but having issue on production
Class "Filament\Actions\ImportAction" not found
Class "Filament\Actions\ImportAction" not found
namespace App\Filament\Finance\Resources\MonthlySalaryStructureResource\Pages;



use App\Filament\Finance\Resources\MonthlySalaryStructureResource;

use App\Filament\Imports\MonthlyImporter;

use Filament\Actions;

use Filament\Resources\Pages\ListRecords;



class ListMonthlySalaryStructures extends ListRecords

{

protected static string $resource = MonthlySalaryStructureResource::class;



protected function getHeaderActions(): array

{

return [

Actions\ImportAction::make()

->importer(MonthlyImporter::class),

Actions\CreateAction::make(),

];

}

}
namespace App\Filament\Finance\Resources\MonthlySalaryStructureResource\Pages;



use App\Filament\Finance\Resources\MonthlySalaryStructureResource;

use App\Filament\Imports\MonthlyImporter;

use Filament\Actions;

use Filament\Resources\Pages\ListRecords;



class ListMonthlySalaryStructures extends ListRecords

{

protected static string $resource = MonthlySalaryStructureResource::class;



protected function getHeaderActions(): array

{

return [

Actions\ImportAction::make()

->importer(MonthlyImporter::class),

Actions\CreateAction::make(),

];

}

}
1 Reply
DrByte
DrByte12mo ago
On your production server, what's the output of php artisan about ? (ie: the error means your server's version of Filament is older than 3.1)
Want results from more Discord servers?
Add your server