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 25, 2019
1 parent 08f75a1 commit 7bbd2a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions resources/views/product/index.blade.php
@@ -0,0 +1,8 @@
@extends('layouts.app')
@section('content')
<h1>商品一覽</h1>
@endsection
@section('my_menu')
<li><a class="nav-link" href="/home">我的選項</a></li>
@parent
@stop
5 changes: 4 additions & 1 deletion routes/web.php
Expand Up @@ -12,8 +12,11 @@
*/

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

Auth::routes();

Expand Down

0 comments on commit 7bbd2a9

Please sign in to comment.