Skip to content

Instantly share code, notes, and snippets.

@Vigowebs
Created January 13, 2023 04:19
Show Gist options
  • Save Vigowebs/5d450b377332108dc83dd9e6da54766d to your computer and use it in GitHub Desktop.
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.
// 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