skip to Main Content

Laravel – How attach a throttle middleware to a route?

I am having problems with attaching a middleware to my existing routes. Problem is with extra parameters, which cause syntax errors. My current route: Route::get('summary/{topicid}/{issueid}', [AppHttpControllersSummaryController::class, 'show']); Adding the needed middleware is described in the package I am trying to…

VIEW QUESTION

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