igirid/authify

Laravel based frontend-agnostic authentication package

Fund package maintenance!
Patreon

dev-main 2021-10-03 20:30 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:58 UTC


README

Authify is designed to give laravel developers a headstart. If you would, for some valid reason, rather have seperate models for different user types in your application, Authify basically scaffolds Authentication, Registration, Verification, Password recovery and 2FA Laravel driven boilerplate for your aplication. Authify exposes yor Backend logic in the App\Http\Controllers namespace. We understand you may still want to modify the logic to coresspond fully with your project demands, so we let yo do just that.

Note that Authify does not re-invent The Wheel (except in terms of 2FA), It harmonously integrates pre-existing Laravel features into one package to save your precious time.

Requirements

  1. "laravel/framework" : "^8.54"

Configuration

Publish Authify's Resources using the vendor:publish command

php artisan vendor:publish --provider="Igirid\Authify\AuthifyServiceProvider"

Ensure $namespace in your RouteServiceProvider.php is 'App\Http\Controllers'

<?php

namespace App\Providers;
...

use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
...

class RouteServiceProvider extends ServiceProvider
{
    ...

    protected $namespace = 'App\\Http\\Controllers';

    ...

Authify Scaffold

This scaffolds an authentication, registration, verification, password reset, password update and a 2fa system.

Command syntax php artisan authify:scaffold {model} --omit=[,login,registeration,password,verification,2fa]

Examples

php:artisan authify:scaffold User generates all of Authify's services for the User Model.

php:artisan authify:scaffold Admin --omit=registration generates all of Authify's services except registeration for the Admin model.

php:artisan authify:scaffold Client --omit=registration -o=verification generates all of Authify's services omitting registeration and verification for the admin Model.