質問編集履歴
2
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -85,3 +85,91 @@
|
|
85
85
|
}
|
86
86
|
|
87
87
|
```
|
88
|
+
|
89
|
+
default.blade.php
|
90
|
+
|
91
|
+
```php
|
92
|
+
|
93
|
+
<!DOCTYPE html>
|
94
|
+
|
95
|
+
<html lang="ja">
|
96
|
+
|
97
|
+
<head>
|
98
|
+
|
99
|
+
<meta charset="utf-8">
|
100
|
+
|
101
|
+
<title>@yield('title')</title>
|
102
|
+
|
103
|
+
<link rel="stylesheet" href="/css/style.css">
|
104
|
+
|
105
|
+
</head>
|
106
|
+
|
107
|
+
<body>
|
108
|
+
|
109
|
+
<header>
|
110
|
+
|
111
|
+
<ul>
|
112
|
+
|
113
|
+
<li><a href="/">TOP</a></li>
|
114
|
+
|
115
|
+
<li><a href="/new">新規作成</a></li>
|
116
|
+
|
117
|
+
<li><a href="/dl">CsvDownload</a></li>
|
118
|
+
|
119
|
+
<li><a href="{{ route('logout') }}">ログアウト</a></li>
|
120
|
+
|
121
|
+
</ul>
|
122
|
+
|
123
|
+
</header>
|
124
|
+
|
125
|
+
<div class="container">
|
126
|
+
|
127
|
+
@yield('content')
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</body>
|
132
|
+
|
133
|
+
</html>
|
134
|
+
|
135
|
+
```
|
136
|
+
|
137
|
+
routes/web.php
|
138
|
+
|
139
|
+
```php
|
140
|
+
|
141
|
+
//認証ルート
|
142
|
+
|
143
|
+
Auth::routes();
|
144
|
+
|
145
|
+
Route::get('/', 'CustomersController@index');
|
146
|
+
|
147
|
+
Route::get('/new', 'CustomersController@new');
|
148
|
+
|
149
|
+
Route::post('/create', 'CustomersController@create');
|
150
|
+
|
151
|
+
Route::get('/show/{customer}', 'CustomersController@show');
|
152
|
+
|
153
|
+
Route::get('/edit/{customer}', 'CustomersController@edit');
|
154
|
+
|
155
|
+
Route::patch('/update/{customer}', 'CustomersController@update');
|
156
|
+
|
157
|
+
Route::delete('/delete/{customer}', 'CustomersController@delete');
|
158
|
+
|
159
|
+
Route::get('/search/', 'CustomersController@search');
|
160
|
+
|
161
|
+
Route::get('/dl/', 'CustomersController@csvDownload');
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
Route::get('/hello', 'CustomersController@index');
|
166
|
+
|
167
|
+
Route::get('/home', 'HomeController@index')->name('home');
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
//テストでログアウト登録してみた。
|
172
|
+
|
173
|
+
Route::get('/logout', 'Auth\AuthController@getLogout');
|
174
|
+
|
175
|
+
```
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,12 @@
|
|
42
42
|
|
43
43
|
以下が自作のコントローラの一部です。
|
44
44
|
|
45
|
+
|
46
|
+
|
47
|
+
[補足]
|
48
|
+
|
49
|
+
デフォルトのログイン、ログアウトの画面では問題なくログアウト出来ています
|
50
|
+
|
45
51
|
```php
|
46
52
|
|
47
53
|
namespace App\Http\Controllers;
|