PHP code example of sinarajabpour1998 / identifier

1. Go to this page and download the library: Download sinarajabpour1998/identifier library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sinarajabpour1998 / identifier example snippets


route('identifier.login');

protected function redirectTo($request)
{
    if (! $request->expectsJson()) {
        return route('identifier.login');
    }
}

    return[
    // other codes ...
    
    // the title of site (this will be used in title and help titles)
    'site_title' => env('APP_NAME', 'پیش فرض'),

    // full url of terms page (this will be used in register page)
    'terms_url' => 'https://test.com/',
    
    // other codes ...
    ];

    return[
    // other codes ...
    
    // admin login redirect route name
    'admin_login_redirect' => 'admin',

    // user login redirect route name
    'user_login_redirect' => 'home',
    
    // other codes ...
    ];

    return[
    // other codes ...
    
    // where did you 'css_public_path' => 'css/auth.css',

    // where did you ..
    ];

    return[
    // other codes ...
    
    // OTP codes digit, by default it's 6-digit (secure and standard)
    'otp_digit' => 6,
    
    // other codes ...
    ];
bash
php artisan vendor:publish --tag=identifier
bash
php artisan vendor:publish --tag=identifier --force
bash
php artisan migrate
bash
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan config:clear