質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -193,3 +193,47 @@
|
|
193
193
|
```
|
194
194
|
|
195
195
|
なぜ同じバリデーションなのに通過できないのでしょうか?
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
追記
|
200
|
+
|
201
|
+
route/web.php
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
```route/web.php
|
206
|
+
|
207
|
+
<?php
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
/*
|
212
|
+
|
213
|
+
|--------------------------------------------------------------------------
|
214
|
+
|
215
|
+
| Web Routes
|
216
|
+
|
217
|
+
|--------------------------------------------------------------------------
|
218
|
+
|
219
|
+
|
|
220
|
+
|
221
|
+
| Here is where you can register web routes for your application. These
|
222
|
+
|
223
|
+
| routes are loaded by the RouteServiceProvider within a group which
|
224
|
+
|
225
|
+
| contains the "web" middleware group. Now create something great!
|
226
|
+
|
227
|
+
|
|
228
|
+
|
229
|
+
*/
|
230
|
+
|
231
|
+
Route::get('/', 'PostsController@index')->name('top');
|
232
|
+
|
233
|
+
Route::resource('comments', 'CommentsController', ['only' => ['store']]);
|
234
|
+
|
235
|
+
Route::resource('posts', 'PostsController', ['only' => ['create', 'store', 'show', 'edit', 'update', 'destroy']]);
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
```
|