shortcodes/laravel-api-auth

Simple package allows to use Laravel authentication features like register and remind password as API out of the box

0.0.4 2020-06-23 09:28 UTC

This package is auto-updated.

Last update: 2024-04-23 17:56:33 UTC


README

Package with basic controllers, routes and specyfication to speed up development process

initial package provides routes

You can change those endpoints in config file

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',
],

Publish

To publish configs you simple need to run

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