且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Laravel向WordPress数据库授权用户

更新时间:2022-06-11 22:01:51

有很多方法可以做到这一点.您可以:

There are a lot of ways to do this. You could:

  • Use a custom authentication driver on your Laravel app to use WordPress database. Hampel's package does this.
  • Use a custom authentication provider to authenticate WordPress users. Laravel WP User package can do this, and it also support REST API.
  • Override Laravel's hashing to make WordPress compatible password hashes using Laravel WP Password package. You can read more about this here.
  • Replace WordPress's built-in authentication.
  • Use Auth0.

可能还有更多方法.