回答編集履歴

3

誤字修正

2019/06/23 10:21

投稿

fumito_94
fumito_94

スコア679

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- return view('index', compact('hello');
15
+ return view('index', compact('hello'));
16
16
 
17
17
 
18
18
 

2

viewへの渡し方を追加

2019/06/23 10:21

投稿

fumito_94
fumito_94

スコア679

test CHANGED
@@ -6,6 +6,22 @@
6
6
 
7
7
  return view('index', ['hello' => $hello]);
8
8
 
9
+
10
+
11
+ or
12
+
13
+
14
+
15
+ return view('index', compact('hello');
16
+
17
+
18
+
19
+ or
20
+
21
+
22
+
23
+ return view('index')->with('hello', $hello);
24
+
9
25
  ```
10
26
 
11
27
 

1

サイト追加

2019/06/23 09:25

投稿

fumito_94
fumito_94

スコア679

test CHANGED
@@ -7,3 +7,7 @@
7
7
  return view('index', ['hello' => $hello]);
8
8
 
9
9
  ```
10
+
11
+
12
+
13
+ [https://readouble.com/laravel/5.5/ja/views.html](https://readouble.com/laravel/5.5/ja/views.html)