Skip to content

Wrong HTML method in UI docs for Layout Listing #1930

@FlorianMoser

Description

@FlorianMoser

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'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions