PHP code example of towoju5 / kyc-form

1. Go to this page and download the library: Download towoju5/kyc-form 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/ */

    

towoju5 / kyc-form example snippets


      php artisan vendor:publish --provider="Towoju5\KycForm\KycFormServiceProvider"
      php  artisan migrate


      Route::get('/kyc/create', [KycVerificationController::class,  'create'])->name('kyc.create');
      Route::post('/kyc/store', [KycVerificationController::class,  'store'])->name('kyc.store');
      Route::group(['middleware' => config('kyc-form.middleware')], function () {
            Route::get('/kyc', [KycVerificationController::class, 'index'])->name('kyc.index');
            Route::post('/kyc/approve/{id}', [KycVerificationController::class, 'approve'])->name('kyc.approve');
            Route::delete('/kyc/reject/{id}', [KycVerificationController::class, 'reject'])->name('kyc.reject');
      });
bash
      To setup middleware for routes. kindly go to config -> kyc-form.php