PHP code example of irongate / chief

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

    

irongate / chief example snippets




return [
    'chief' => [
        'client_id'     => env('CHIEF_CLIENT_ID'),
        'client_secret' => env('CHIEF_CLIENT_SECRET'),
        'base_url'      => env('CHIEF_BASE_URL', 'https://account.chief.app'),
        'verify'        => env('CHIEF_VERIFY', true),
        'redirect'      => '/login/callback',
    ],
];

   'webhooks' => [
       'enabled'           => true,
       'events'            => App\Enums\Webhook\EventType::class,
       'queue'             => 'webhooks',
       'breadcrumb_parent' => ['title' => 'Settings', 'route' => 'settings'],
   ],
   
bash
php artisan vendor:publish --tag=chief-config

# php artisan vendor:publish --tag=chief-migrations
bash
php artisan migrate