Files
online.tbbank.gov.tm-larave…/app/Nova/Actions/ExportTranslations.php
2024-04-30 23:24:35 +05:00

36 lines
832 B
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.
*/
public function handle(ActionFields $fields, Collection $models): mixed
{
LocaleManagerRepo::make()->handle();
return ActionResponse::message('It worked!');
}
/**
* Get the fields available on the action.
*/
public function fields(NovaRequest $request): array
{
return [];
}
}