質問編集履歴
1
コードの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,71 +94,43 @@
|
|
94
94
|
|
95
95
|
```
|
96
96
|
|
97
|
-
?php
|
97
|
+
<?php
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
|
101
|
+
/*
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
+
|--------------------------------------------------------------------------
|
106
|
+
|
105
|
-
|
107
|
+
| Web Routes
|
108
|
+
|
109
|
+
|--------------------------------------------------------------------------
|
110
|
+
|
111
|
+
|
|
112
|
+
|
113
|
+
| Here is where you can register web routes for your application. These
|
114
|
+
|
115
|
+
| routes are loaded by the RouteServiceProvider within a group which
|
116
|
+
|
117
|
+
| contains the "web" middleware group. Now create something great!
|
118
|
+
|
119
|
+
|
|
120
|
+
|
121
|
+
*/
|
106
122
|
|
107
123
|
|
108
124
|
|
109
|
-
|
125
|
+
Route::get('/', function () {
|
110
126
|
|
111
|
-
|
127
|
+
return view('welcome');
|
112
128
|
|
113
|
-
public function hello(Request $request, Response $response){
|
114
|
-
|
115
|
-
$html = <<<EOF
|
116
|
-
|
117
|
-
<html>
|
118
|
-
|
119
|
-
<head>
|
120
|
-
|
121
|
-
<title>Hello/Index</title>
|
122
|
-
|
123
|
-
<style>
|
124
|
-
|
125
|
-
body { font-size:16pt; color:#999; }
|
126
|
-
|
127
|
-
h1 { font-size:120pt; text-align:right; color:#fafafa; margin:-50px 0px 120px 0px; }
|
128
|
-
|
129
|
-
</style>
|
130
|
-
|
131
|
-
</head>
|
132
|
-
|
133
|
-
<body>
|
134
|
-
|
135
|
-
<h1>Hello</h1>
|
136
|
-
|
137
|
-
<h3>Request</h3>
|
138
|
-
|
139
|
-
<pre>{$request}</pre>
|
140
|
-
|
141
|
-
<h3>Response</h3>
|
142
|
-
|
143
|
-
<pre>{$response}</pre>
|
144
|
-
|
145
|
-
</body>
|
146
|
-
|
147
|
-
</html>
|
148
|
-
|
149
|
-
|
129
|
+
});
|
150
130
|
|
151
131
|
|
152
132
|
|
153
|
-
|
133
|
+
Route::get('hello', 'HelloController@hello');
|
154
|
-
|
155
|
-
return $response;
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
}
|
160
|
-
|
161
|
-
}
|
162
134
|
|
163
135
|
|
164
136
|
|