skip to Main Content

laravel problem running background job in php

I have the following job: public function handle(): void { // sleep(5); echo "hello!"; } Following controller: public function index() { ProcessPodcast::dispatch(); // return redirect('/api'); echo "finished!"; } and route: Route::get("/job", [JobTest::class, 'index']); My problem is basically that the job…

VIEW QUESTION

Laravel – Filament: Hiding Form Input Dynamically

I am working with Filament and Laravel and currently I've got these two field inputs for choosing City BASED ON Province Field, inside form() method: Select::make("meta.employment_state") ->label("Province") ->getSearchResultsUsing(fn (string $search): array => State::query()->where('name', 'like', "%{$search}%")->limit(10)->pluck('name', 'id')->toArray()) ->getOptionLabelUsing(fn ($value): ?string =>…

VIEW QUESTION
Back To Top
Search