PHP code example of sadiqsalau / laravel-otp-password
1. Go to this page and download the library: Download sadiqsalau/laravel-otp-password 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/ */
sadiqsalau / laravel-otp-password example snippets
use Illuminate\Http\Request;
use SadiqSalau\LaravelOtpPassword\Facades\OtpPassword;
Route::post('/forgot-password', function (Request $request) {
$request->validate(['email' => ' : back()->withErrors(['email' => __($status)]);
})->middleware('guest')->name('password.email');