質問編集履歴
2
恐らく該当するならですがコードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,128 @@
|
|
1
1
|
~追記~
|
2
2
|
|
3
|
-
not found 404の下にApache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.0 Server at localhost Port 80とありました。
|
3
|
+
・not found 404の下にApache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.0 Server at localhost Port 80とありました。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
```ここに言語を入力
|
8
|
+
|
9
|
+
Route::get('/', function () {
|
10
|
+
|
11
|
+
return view('welcome');
|
12
|
+
|
13
|
+
});
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Auth::routes();
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Route::get('/home', 'HomeController@index')->name('home');
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Route::get('/timeline','Auth\TimelineController@showTimelinePage');
|
28
|
+
|
29
|
+
Route::post('/timeline','Auth\TimelineController@postTweet');
|
30
|
+
|
31
|
+
--------------------------------------------------------------------------------------
|
32
|
+
|
33
|
+
<?php
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
namespace App\Http\Controllers\Auth;
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
use Illuminate\Http\Request;
|
42
|
+
|
43
|
+
use App\Http\Controllers\Controller;
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
class TimelineController extends Controller
|
50
|
+
|
51
|
+
{
|
52
|
+
|
53
|
+
public function showTimelinePage()
|
54
|
+
|
55
|
+
{
|
56
|
+
|
57
|
+
return view('auth.timeline');
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
public function postTweet(Request $request)
|
64
|
+
|
65
|
+
{
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
------------------------------------------------------------------------
|
74
|
+
|
75
|
+
↑Route
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
↓.htaccess
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<IfModule mod_rewrite.c>
|
84
|
+
|
85
|
+
<IfModule mod_negotiation.c>
|
86
|
+
|
87
|
+
Options -MultiViews -Indexes
|
88
|
+
|
89
|
+
</IfModule>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
RewriteEngine On
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
# Handle Authorization Header
|
98
|
+
|
99
|
+
RewriteCond %{HTTP:Authorization} .
|
100
|
+
|
101
|
+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
# Redirect Trailing Slashes If Not A Folder...
|
106
|
+
|
107
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
108
|
+
|
109
|
+
RewriteCond %{REQUEST_URI} (.+)/$
|
110
|
+
|
111
|
+
RewriteRule ^ %1 [L,R=301]
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
# Handle Front Controller...
|
116
|
+
|
117
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
118
|
+
|
119
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
120
|
+
|
121
|
+
RewriteRule ^ index.php [L]
|
122
|
+
|
123
|
+
</IfModule>
|
124
|
+
|
125
|
+
```
|
4
126
|
|
5
127
|
|
6
128
|
|
1
追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
~追記~
|
2
|
+
|
3
|
+
not found 404の下にApache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.0 Server at localhost Port 80とありました。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
1
11
|
Laravel6.20.11をXAMPPを用いてtwitterアプリを作っています。参考サイト→https://qiita.com/n_oshiumi/items/8993ab268209d19f052e#1-3-laravel%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B
|
2
12
|
|
3
13
|
|