PHP code example of zeroone / auth-server

1. Go to this page and download the library: Download zeroone/auth-server 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/ */

    

zeroone / auth-server example snippets


   Zeroone\Authserver\AuthServerServiceProvider::class,
   

    use \Zeroone\Authserver\Http\AuthUserTrait;
    

Route::get("login", "\Zeroone\Authserver\Http\Controllers\LoginController@getLogin")->name("login");
Route::post("login/conclusion/{data?}", "\Zeroone\Authserver\Http\Controllers\LoginController@conclusion")->name("login.conclusion");
Route::get("register", "\Zeroone\AuthServer\Http\Controllers\RegisterController@getRegister")->name("register");

$authServer = auth_server();
bash
   php artisan migrate