PHP code example of scriptoshi / livewire-otp-auth
1. Go to this page and download the library: Download scriptoshi/livewire-otp-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/ */
scriptoshi / livewire-otp-auth example snippets
use Scriptoshi\LivewireOtpAuth\Traits\HasOtpAuth;
class User extends Authenticatable
{
use HasOtpAuth;
// ...
}
bash
php artisan migrate
bash
php artisan vendor:publish --tag=livewire-otp-auth
bash
php artisan vendor:publish --tag=livewire-otp-auth
css
@import "tailwindcss";
@source "../views";
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../vendor/scriptoshi/livewire-otp-auth/resources/views/**/*.blade.php';
/* Rest of your CSS file */