質問編集履歴
1
コードの変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,38 +46,24 @@
|
|
46
46
|
```
|
47
47
|
web.php
|
48
48
|
```
|
49
|
-
?php
|
49
|
+
<?php
|
50
50
|
|
51
|
-
|
51
|
+
/*
|
52
52
|
|
53
|
+
|--------------------------------------------------------------------------
|
53
|
-
|
54
|
+
| Web Routes
|
55
|
+
|--------------------------------------------------------------------------
|
56
|
+
|
|
57
|
+
| Here is where you can register web routes for your application. These
|
58
|
+
| routes are loaded by the RouteServiceProvider within a group which
|
59
|
+
| contains the "web" middleware group. Now create something great!
|
60
|
+
|
|
61
|
+
*/
|
54
62
|
|
55
|
-
class HelloController extends Controller
|
56
|
-
{
|
57
|
-
public function hello(Request $request, Response $response){
|
58
|
-
$html = <<<EOF
|
59
|
-
<html>
|
60
|
-
<head>
|
61
|
-
|
63
|
+
Route::get('/', function () {
|
62
|
-
<style>
|
63
|
-
body { font-size:16pt; color:#999; }
|
64
|
-
h1 { font-size:120pt; text-align:right; color:#fafafa; margin:-50px 0px 120px 0px; }
|
65
|
-
</style>
|
66
|
-
</head>
|
67
|
-
<body>
|
68
|
-
<h1>Hello</h1>
|
69
|
-
<h3>Request</h3>
|
70
|
-
<pre>{$request}</pre>
|
71
|
-
<h3>Response</h3>
|
72
|
-
|
64
|
+
return view('welcome');
|
73
|
-
</body>
|
74
|
-
</html>
|
75
|
-
|
65
|
+
});
|
76
66
|
|
77
|
-
|
67
|
+
Route::get('hello', 'HelloController@hello');
|
78
|
-
return $response;
|
79
68
|
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
69
|
```
|