PHP Fatal error: A precedence rule was defined for > Illuminate\Foundation\Auth\AuthenticatesUsers::getGuard

前端 未结 2 881
逝去的感伤
逝去的感伤 2021-01-20 20:49

I\'ve just finished updating an app from Laravel 5.1 to 5.2. Everything is working fine on my local Homestead install. When I deploy to my forge server, the process is faili

相关标签:
2条回答
  • 2021-01-20 20:49

    The AuthenticatesAndRegistersUsers has a precedence statement to use getGuard from AuthenticatesUsers instead of from RegistersUsers.

    The AuthenticatesUsers trait has a getGuard method defined in it.

    Double check to make sure your version of that trait has the getGuard method and or double check those traits against the ones in the laravel repository.

    0 讨论(0)
  • 2021-01-20 20:53

    I fixed this by deleting /bootstrap/cache/compiled.php. The files the error refers to were fine.

    0 讨论(0)
提交回复
热议问题