PHP code example of orchid / fortify

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

    

orchid / fortify example snippets


/*
|--------------------------------------------------------------------------
| Auth Page
|--------------------------------------------------------------------------
*/

'auth'  => false,

use Orchid\Fortify\TwoFactorScreenAuthenticatable;

/**
 * Button commands.
 *
 * @return Action[]
 */
public function commandBar(): array
{
    return [
        $this->twoFactorCommandBar(),
    ];
}

/**
 * @return \Orchid\Screen\Layout[]
 */
public function layout(): array
{
    return [
        $this->twoFactorLayout(),
    ];
}
bash
php artisan session:table