1. Go to this page and download the library: Download westacks/laravel-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/ */
# routes/web.php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AuthController;
Route::auth([
'controller' => AuthController::class,
'middleware' => 'auth' // if you using custom guards for authenticated routes, put them here
]);
# app/Http/Controllers/AuthController.php
namespace App\Http\Controllers;
use WeStacks\Laravel\Auth\Controllers\AuthController as Controller;
class AuthController extends Controller
{
// Your customs here
}