PHP Classes

File: site/demos/form-otp.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/demos/form-otp.php   Download  
File: site/demos/form-otp.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 339 bytes
 

 

Contents

Class file image Download
<?php

use Caelrik\Ui\Components\Form;
use Caelrik\Ui\Components\Form\Field;

return Form::make('verify')
    ->action('/verify')
    ->add(
        Field::otp('code', 'Verification code')
            ->required()
            ->help('Enter the 6 digits we sent to +243 ???? 12. You can paste them.'),
    )
    ->submit('Verify');