回答編集履歴
1
追記
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
// route
|
6
6
|
|
7
|
-
Route::get('user/{username}', 'UserController@show');
|
7
|
+
Route::get('user/{username}', 'UsersController@show');
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -33,3 +33,19 @@
|
|
33
33
|
また、Laravelのドキュメントを和訳してある良いサイトがありますので、参考にしてみてください。
|
34
34
|
|
35
35
|
[https://readouble.com/laravel/5.2/ja/controllers.html](!https://readouble.com/laravel/5.2/ja/controllers.html)
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
追記
|
42
|
+
|
43
|
+
以下のように変更してみても動かないでしょうか
|
44
|
+
|
45
|
+
``` PHP
|
46
|
+
|
47
|
+
//Route::get('{username}', 'UsersController@show');
|
48
|
+
|
49
|
+
Route::get('/{username}', 'UsersController@show');
|
50
|
+
|
51
|
+
```
|