Created
May 8, 2020 13:26
-
-
Save nicolaskempf57/5a3b4cba8fbafc4e84c378872e22d124 to your computer and use it in GitHub Desktop.
Example route with middleware for my blog post on Laravel Middleware https://medium.com/blog-justenico/laravel-les-middlewares-59b651d80b10
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
<?php | |
Route::put('post/{id}', function ($id) {})->middleware('role:editor'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment