回答編集履歴

2

追記

2020/09/21 13:07

投稿

phper.k
phper.k

スコア3923

test CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  use App\Models\Social;
34
34
 
35
+ + use App\Http\Controllers\Controller;
36
+
35
37
 
36
38
 
37
39
  use Socialite;

1

追記

2020/09/21 13:07

投稿

phper.k
phper.k

スコア3923

test CHANGED
@@ -9,3 +9,35 @@
9
9
  + Route::get('/auth/twitter/callback', 'Auth\OAuthLoginController@authTwitterCallback');
10
10
 
11
11
  ```
12
+
13
+
14
+
15
+ ```diff
16
+
17
+ <?php
18
+
19
+
20
+
21
+ - namespace App\Http\Controllers;
22
+
23
+ + namespace App\Http\Controllers\Auth;
24
+
25
+
26
+
27
+ use Illuminate\Http\Request;
28
+
29
+ use Illuminate\Support\Facades\Auth;
30
+
31
+ use App\Models\User;
32
+
33
+ use App\Models\Social;
34
+
35
+
36
+
37
+ use Socialite;
38
+
39
+
40
+
41
+ class OAuthLoginController extends Controller
42
+
43
+ ```