Skip to content

Conversation

@NickSdot
Copy link
Contributor

Like a lot of developers, I hate strings. Strings are for users.

Enums give me type safety for speling mistakes, and generally make me feel more comfortable about the world and my code.

This PR brings the router methods name and domain into line with implicit route binding, Eloquent, AssertableJson, etc...

This change is backward compatible.

// before Route::domain(InterfaceDomain::Marketing->value)->name(Routes::Home->value)->get('/contact', ContactController::class); // after Route::domain(InterfaceDomain::Marketing)->name(Routes::Home)->get('/'contact, ContactController::class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants