shortcodes/laravel-api-auth

简单包允许您直接使用Laravel认证功能,如注册和密码重置,作为API使用

0.0.4 2020-06-23 09:28 UTC

This package is auto-updated.

Last update: 2024-09-23 18:55:17 UTC


README

包含基本控制器、路由和规范的包,以加快开发过程

初始包提供路由

您可以在配置文件中更改这些端点

api-auth.php

return [
  'login' => 'login',
  'logout' => 'logout',
  'register' => 'register',
  'remind-password' => 'password/email',
  'reset-password' => 'password/reset',
  'verification' => 'email/verify/{id}/{hash}',
  'resend-activation' => 'email/resend',
],

发布

要发布配置,只需运行

php artisan vendor:publish --provider="Shortcodes\Authentication\AuthenticationPackageProvider"