1. Go to this page and download the library: Download ghi/laravel-intranet-auth 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/ */
// app/Model.php
use Ghi\Core\App\Auth\AuthenticatableIntranetUser;
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
{
use AuthenticatableIntranetUser, CanResetPassword;
//
}
'model' => Ghi\Core\Models\User::class,
// app/Http/Controllers/AuthController.php
use Ghi\IntranetAuth\AuthenticatesIntranetUsers;
class AuthController extends Controller
{
use AuthenticatesIntranetUsers, ThrottlesLogins;
//
}