質問編集履歴

2

500エラーは解決したが、401エラーが出た事を追記

2019/06/29 14:38

投稿

dauto
dauto

スコア38

test CHANGED
File without changes
test CHANGED
@@ -219,3 +219,9 @@
219
219
  local.ERROR: Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Customer given, called in /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 377 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Customer given, called in /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 377 at /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php:141)
220
220
 
221
221
  ```
222
+
223
+
224
+
225
+ ### 追記2
226
+
227
+ 500エラーは新規モデルがうまく適用されていなかったのが原因だったので、中の構文をapp/User.phpに移動させたところ消えたのですが、今度は401エラーが表示され認証することが出来ません。これはどう対処すればいいでしょうか。

1

logの追記

2019/06/29 14:38

投稿

dauto
dauto

スコア38

test CHANGED
File without changes
test CHANGED
@@ -207,3 +207,15 @@
207
207
  }
208
208
 
209
209
  ```
210
+
211
+
212
+
213
+ ### 追記
214
+
215
+ Laravelのlogに出力されていたエラーはこちらになります。
216
+
217
+ ```log
218
+
219
+ local.ERROR: Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Customer given, called in /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 377 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Customer given, called in /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 377 at /var/www/html/siro/vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php:141)
220
+
221
+ ```