leshkens / orchid-help-hint-layout
Orchid help hint layout
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/leshkens/orchid-help-hint-layout
Requires
- php: >=7.3
- illuminate/support: ^8.0
- orchid/platform: ^10.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Installation
Install via composer: composer require leshkens/orchid-help-hint-layout
For old orchid versions:
| Orchid version | Composer command |
|---|---|
| Orchid 9.x | composer require leshkens/orchid-help-hint-layout:^2.0 |
| Orchid 8.x | composer require leshkens/orchid-help-hint-layout:^1.0 |
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
