Skip to content

Commit 96a7c65

Browse files
committed
Merge pull request summerblue#9 from atorscho/patch-3
New way of assigning route middlewares
2 parents 2c0261a + 42db9e4 commit 96a7c65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ <h6>HTTP Middleware <a href="http://laravel.com/docs/middleware" title="HTTP Mid
365365
<pre class="prettyprint lang-php">
366366
// Assigning Middleware To Routes
367367
Route::get('admin/profile', ['middleware' => 'auth', function(){}]);
368+
Route::get('admin/profile', function(){})->middleware('auth');
368369
</pre>
369370

370371
<h6>Named Routes</h6>

0 commit comments

Comments
 (0)