PHP code example of paper-leaf / help-guide

1. Go to this page and download the library: Download paper-leaf/help-guide 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/ */

    

paper-leaf / help-guide example snippets


use PaperLeaf\HelpGuide\HelpGuidePlugin;

->plugin(
    HelpGuidePlugin::make()
)

->plugin(
    HelpGuidePlugin::make()
        ->manageGuidePermission('gate_name')
)

->plugin(
    HelpGuidePlugin::make()
        ->availablePermissions(fn() => SystemPermission::toArray())
)

->plugin(
    HelpGuidePlugin::make()
        ->loginUrl('/custom-url')
)
css
@source '../../../../vendor/paper-leaf/help-guide/resources/**/*.blade.php';
bash
php artisan vendor:publish --tag="help-guide-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="help-guide-config"
bash
php artisan vendor:publish --tag="help-guide-views"