PHP code example of birdcar / authkit-laravel

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

    

birdcar / authkit-laravel example snippets


use Authkit\Authkit\Facades\Authkit;

$template = Authkit::jwtTemplate()->get();

Authkit::jwtTemplate()->update('{"plan": "{{ organization.name }}"}');
bash
php artisan vendor:publish --tag="authkit-config"
php artisan vendor:publish --tag="authkit-laravel-migrations"
php artisan vendor:publish --tag="authkit-laravel-views"
php artisan vendor:publish --tag="authkit-laravel-lang"
php artisan vendor:publish --tag="authkit-laravel-assets"