leshkens/orchid-help-hint-layout

Orchid help hint layout

v3.0.0 2021-11-04 13:32 UTC

This package is auto-updated.

Last update: 2024-10-04 20:27:15 UTC


README

Latest Version on Packagist Total Downloads

screenshot

Installation

Install via composer: composer require leshkens/orchid-help-hint-layout

For old orchid versions:

Install package migration:

php artisan migrate

Publish config file:

php artisan vendor:publish --provider="Leshkens\OrchidHelpHintLayout\Providers\ServiceProvider"

Usage

It easy. Add to you screen:

public function layout(): array
{
    return [
        HelpHintLayout::make('foobar')
    ];
}

Then add it to the hint map (in config/platform-hints.php):

'hints_map' => [
    'foobar' => 'My hint is somewhere'
],

Grant the user rights to hints and add an entry to the database in http://yousite.loc/dashboard/systems/help-hints/create

Credits