Created
January 13, 2023 04:19
-
-
Save Vigowebs/5d450b377332108dc83dd9e6da54766d to your computer and use it in GitHub Desktop.
An easy way to mark singleton routes as "destroyable." This type of route may be deleted, but it may not be created by default.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
Route::singleton(...)->creatable()->except('create', 'store'); | |
// After | |
Route::singleton(...)->destroyable(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment