PHP code example of emanate / kitasa

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

    

emanate / kitasa example snippets


return [
    'phone_column' => 'phone_number',

    'otp' => [
        'expiry' => 10, // minutes
        'table' => 'kitasa_otps',
    ],
];

use Emanate\Kitasa\KitasaPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            KitasaPlugin::make(),
        ]);
}
bash
php artisan vendor:publish --tag="kitasa-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="kitasa-config"
bash
php artisan vendor:publish --tag="kitasa-translations"