質問編集履歴
4
初心者マーク
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
laravel,
|
1
|
+
laravel,認可処理で上手く行かない
|
test
CHANGED
File without changes
|
3
初心者マーク
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,13 +18,11 @@
|
|
18
18
|
|
19
19
|
Route::get('/calendar/{skiday}', 'CalendarController@show')->name('calendar.show');
|
20
20
|
|
21
|
-
Route::group(['middleware' => 'can:
|
21
|
+
Route::group(['middleware' => 'can:update,skiday'], function(){
|
22
22
|
|
23
23
|
Route::get('/calendar/{skiday}/edit', 'CalendarController@edit')->name('calendar.edit');
|
24
24
|
|
25
25
|
Route::post('/calendar/{skiday}/edit', 'CalendarController@update')->name('calendar.update');
|
26
|
-
|
27
|
-
Route::post('/calendar/{skiday}/delete', 'CalendarController@destroy')->name('calendar.delete');
|
28
26
|
|
29
27
|
});
|
30
28
|
|
@@ -76,7 +74,7 @@
|
|
76
74
|
|
77
75
|
|
78
76
|
|
79
|
-
public function
|
77
|
+
public function update(User $user, Skiday $skiday)
|
80
78
|
|
81
79
|
{
|
82
80
|
|
2
初心者マーク
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,12 +11,6 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
現状は自分も編集画面にアクセスできなくなってしまいます。
|
14
|
-
|
15
|
-
```
|
16
|
-
|
17
|
-
Failed to load resource: the server responded with a status of 403 (Forbidden)
|
18
|
-
|
19
|
-
```
|
20
14
|
|
21
15
|
|
22
16
|
|
1
初心者マーク
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,12 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
現状は自分も編集画面にアクセスできなくなってしまいます。
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
Failed to load resource: the server responded with a status of 403 (Forbidden)
|
18
|
+
|
19
|
+
```
|
14
20
|
|
15
21
|
|
16
22
|
|