alfa-dev-team/auth-api is a Laravel package.
It currently has 0 GitHub stars and 43 downloads on Packagist (latest version 1.0).
Install it with composer require alfa-dev-team/auth-api.
Discover more Laravel packages by alfa-dev-team
or browse all Laravel packages to compare alternatives.
Last updated
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(); });