Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
了解路由的運作
Browse files Browse the repository at this point in the history
  • Loading branch information
tad0616 committed May 20, 2019
1 parent bb77ff5 commit b5722ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/welcome.blade.php
Expand Up @@ -81,7 +81,7 @@

<div class="content">
<div class="title m-b-md">
Laravel
{{$name}} {{$say}} Laravel
</div>

<div class="links">
Expand Down
4 changes: 2 additions & 2 deletions routes/web.php
Expand Up @@ -9,10 +9,10 @@
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
*/

Route::get('/', function () {
return view('welcome');
return view('welcome', ['name' => 'tad', 'say' => '嗨!']);
});

Auth::routes();
Expand Down

0 comments on commit b5722ef

Please sign in to comment.