Skip to content

Route not needed: Route::get('owners/delete/{id}') #46

@pjmartorell

Description

@pjmartorell

The generated route Route::get('owners/delete/{id}') it's not necessary. I suspect you created to bypass the problem of browsers that don’t recognize the DELETE verb, but with the routes generated by Route:resource(…) it's enough.

You can directly call the whatever.destroy route from the index view using a form. You need to modify the table.blade.php to use a submit button using a form, which allows you to use the hidden verb DELETE.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions