Skip to content

Commit 1f1d764

Browse files
committed
Merge pull request summerblue#7 from atorscho/patch-2
Another way of adding named routes
2 parents 3873004 + cf62b75 commit 1f1d764

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
@@ -374,6 +374,7 @@ <h6>Named Routes</h6>
374374
Route::get('user/profile', [
375375
'as' => 'profile', 'uses' => 'UserController@showProfile'
376376
]);
377+
Route::get('user/profile', 'UserController@showProfile')->name('profile');
377378
$url = route('profile');
378379
$redirect = redirect()->route('profile');
379380
</pre>

0 commit comments

Comments
 (0)