Files
online.tbbank.gov.tm-larave…/app/Nova/Actions/ExportTranslations.php
2025-03-15 23:58:38 +05:00

42 lines
1.0 KiB
PHP

<?php
namespace App\Nova\Actions;
use App\Repos\System\Locale\LocaleManagerRepo;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Actions\ActionResponse;
use Laravel\Nova\Fields\ActionFields;
use Laravel\Nova\Http\Requests\NovaRequest;
class ExportTranslations extends Action
{
use InteractsWithQueue, Queueable;
/**
* Perform the action on the given models.
*
* @param ActionFields $fields
* @param Collection<array-key, \Illuminate\Database\Eloquent\Model> $models
* @return mixed
*/
public function handle(ActionFields $fields, Collection $models): mixed
{
LocaleManagerRepo::make()->handle();
return ActionResponse::message('It worked!');
}
/**
* Get the fields available on the action.
*
* @return array<int, \Laravel\Nova\Fields\Field>
*/
public function fields(NovaRequest $request): array
{
return [];
}
}