PHP code example of misakstvanu / laravel-fortify-passkeys

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

    

misakstvanu / laravel-fortify-passkeys example snippets

 php
'providers' => [
    /*
     * Package Service Providers...
     */
    // ...
    Misakstvanu\LaravelPasskeys\PasskeysServiceProvider::class,
];
 bash
php artisan vendor:publish --tag=laravel-passkeys-migrations
php artisan migrate
 bash
php artisan vendor:publish --tag=laravel-passkeys-config
 php
use Misakstvanu\LaravelPasskeys\Models\Passkey;

public function passkeys() :HasMany {
    return $this->hasMany(Passkey::class);
}