alfa-dev-team/auth-api

1.0 2022-04-19 16:07 UTC

This package is auto-updated.

Last update: 2022-11-19 17:35:42 UTC


README

Add dependency using composer composer require alfa-dev-team/auth-api

You need to add configuration and migrations using the command:
php artisan vendor:publish --tag=configs
php artisan vendor:publish --tag=migrations

In the config directory, find the auth-api.php file and add your custom models.

composer require doctrine/dbal

Run migrations php artisan migrate

Add routes using
AuthApi::authRoutes();
AuthApi::settingsRoutes();

If you want to redefine some controller, then create a controller that will also inherit from the controller that you are redefining. And add to your service provider in register method For example:

$this->app->bind(AlfaDevTeam\AuthApi\Controllers\ApiController\RegisterController::class, function ($app){ return new \Modules\Cabinet\Http\Controllers\Auth\RegisterController(); });