I just spent some time debugging my custom CP page, just to find out, that the HTML request methods for the action routes in the examples for the Listing Component are wrong.
These routes:
Route::get('team-members/actions', [TeamMemberActionController::class, 'run']);
Route::get('team-members/actions/list', [TeamMemberActionController::class, 'bulkActions']);
Should be changed to:
Route::post('team-members/actions', [TeamMemberActionController::class, 'run']);
Route::post('team-members/actions/list', [TeamMemberActionController::class, 'bulkActions']);
And there is also a missing equal sign under the Using a JSON endpoint
if ($search = $request->input('search'))
I just spent some time debugging my custom CP page, just to find out, that the HTML request methods for the action routes in the examples for the Listing Component are wrong.
These routes:
Should be changed to:
And there is also a missing equal sign under the Using a JSON endpoint