質問編集履歴
1
問題点であるコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
index.blade.phpのファイルの中身の@section('content')を教本通り下記に変更しました。
|
32
32
|
|
33
|
-
|
33
|
+
```html
|
34
34
|
|
35
35
|
@section('content')
|
36
36
|
|
@@ -58,8 +58,72 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
|
61
|
+
```
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
+
### 補足情報(FW/ツールのバージョンなど)
|
66
|
+
|
67
|
+
アクセスしたいURLはhttp://localhost:8000/helloとなります。
|
68
|
+
|
69
|
+
```controller
|
70
|
+
|
71
|
+
<?php
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
namespace App\Http\Controllers;
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
use Illuminate\Http\Request;
|
80
|
+
|
81
|
+
use Illuminate\Http\Response;
|
82
|
+
|
83
|
+
use Illuminate\Support\Facades\DB;
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
class HelloController extends Controller
|
88
|
+
|
89
|
+
{
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
public function index(Request $request)
|
96
|
+
|
97
|
+
{
|
98
|
+
|
99
|
+
$items = DB::select('select * from people');
|
100
|
+
|
101
|
+
return view('hello.index', ['items' => $items]);
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```routes
|
112
|
+
|
113
|
+
<?php
|
114
|
+
|
115
|
+
Route::get('/', function () {
|
116
|
+
|
117
|
+
return view('welcome');
|
118
|
+
|
119
|
+
});
|
120
|
+
|
121
|
+
Route::get('hello', function() {
|
122
|
+
|
123
|
+
return view('hello.index');
|
124
|
+
|
125
|
+
});
|
126
|
+
|
127
|
+
```
|
128
|
+
|
65
129
|
ここにより詳細な情報を記載してください。
|