PHPackages                             pioneer-dynamics/laravel-passkey - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pioneer-dynamics/laravel-passkey

ActiveLibrary

pioneer-dynamics/laravel-passkey
================================

Easy Passkey integration for Laravel

v2.0.8(11mo ago)8953↑150%MITPHP

Since Mar 27Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/pioneer-dynamics/laravel-passkey)[ Packagist](https://packagist.org/packages/pioneer-dynamics/laravel-passkey)[ RSS](/packages/pioneer-dynamics-laravel-passkey/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (34)Used By (0)

Laravel Passkeys
================

[](#laravel-passkeys)

Easy Passkey integration for Laravel

> Click the thumbnail below to see a video of the package in action.:

[![](https://camo.githubusercontent.com/7cd6f3a8ef3693f2490a4b99178dcc92abca1bbf1782d1030f91b94fdb8d9828/68747470733a2f2f706c61792e766964796172642e636f6d2f5a5834674c707a41726b694343546b72786558504c482e6a7067)](https://share.vidyard.com/watch/ZX4gLpzArkiCCTkrxeXPLH?)

Thank You
---------

[](#thank-you)

The core of the project uses [svgta/webauthn](https://github.com/svgta1/webauthn-php) library.

We are looking for contributors
-------------------------------

[](#we-are-looking-for-contributors)

We are looking for contributors to help improve the library and add compatibility for Livewire.

ALERT
-----

[](#alert)

> !!!WARNING!!! The command `passkey:install` command must be run ONLY on development and ONLY ONCE. Depending on the options provided, this command will publish the below files and modify them to suit your needs. Please find the details below.

1. Config file, if `--config` parameter is provided
2. Migration file
3. Jetstream flavoured Inertia JS component files, if `--jetstream-inertia` is provided.

> !!WARNING!! Any existing files will be replaced.

Installation
------------

[](#installation)

> You have two ways to run setup - 1, the Setup command in step #2 (below) or 2, the `vendor:publish` command. I recommend the `passkey:install` command since it takes care of replacing some placeholders in the published files apart from publishing them. Use the `--table` and `--username` flags to change the defaults. These values default to `users` and `email` respectively. If using the `vendor:publish` command you'll need to replace `__USERNAME__`, `__TABLE__`, `__USERNAME_LABEL__` and the `__USERNAME_TYPE__` placeholders manually. These placeholders can be found in the `js/Components/ConfirmsPasswordOrPasskey.vue`, `js/Components/ConfirmsPasskey.vue`, `js/Pages/Auth/LoginWithPasskey.vue` and the `config/passkey.php` files.

1. Require the library

    `composer install pioneer-dynamics/laravel-passkey`
2. Run the setup

    > Before running this command, run `php artisan passkey:install --help` to see understand all options.

    `php artisan passkey:install`

    > This will publish the config files, migrations and some Jetstream-Inertia flavoured vue files. It will also replace some contents of these published files.
3. Run the migrations

    `php artisan migrate`
4. Implement the `PasskeyUser` interface to you user model and add the `HasPasskeys` trait

    ```
