leshkens / orchid-help-hint-layout
Orchid 帮助提示布局
v3.0.0
2021-11-04 13:32 UTC
Requires
- php: >=7.3
- illuminate/support: ^8.0
- orchid/platform: ^10.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
安装
通过 composer 安装: composer require leshkens/orchid-help-hint-layout
对于旧版本的 orchid
安装包迁移
php artisan migrate
发布配置文件
php artisan vendor:publish --provider="Leshkens\OrchidHelpHintLayout\Providers\ServiceProvider"
用法
很简单。添加到你的屏幕
public function layout(): array { return [ HelpHintLayout::make('foobar') ]; }
然后将它添加到提示映射(在 config/platform-hints.php
)中
'hints_map' => [ 'foobar' => 'My hint is somewhere' ],
授予用户提示权限,并在 http://yousite.loc/dashboard/systems/help-hints/create
的数据库中添加条目