We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c0261a + 42db9e4 commit 96a7c65Copy full SHA for 96a7c65
index.html
@@ -365,6 +365,7 @@ <h6>HTTP Middleware <a href="http://laravel.com/docs/middleware" title="HTTP Mid
365
<pre class="prettyprint lang-php">
366
// Assigning Middleware To Routes
367
Route::get('admin/profile', ['middleware' => 'auth', function(){}]);
368
+Route::get('admin/profile', function(){})->middleware('auth');
369
</pre>
370
371
<h6>Named Routes</h6>
0 commit comments