Laravel フレームワークにOrchestra プラットフォームを使用しようとしています。
プラットフォーム用のAuthorize、Robotix、Melody Theme Manager、およびCello CMS拡張機能をインストールしました。
Authorize、Robotix、および Cello CMS 拡張機能はすべて [Resources] の下にリストされ、Melody Theme Manager は [Extensions] の横の最上位項目としてリストされることに気付きました。
私が望むのは/orchestra/manages/pages
、Melody Theme Manager に 経由でアクセスできるのと同じ方法で、 Cello CMS 拡張機能に 経由でアクセスできるようにすること/orchestra/manages/melody.themes
です。
トップメニュー項目を追加するには、次のようなものを使用できることがわかりました。
// Attach a menu only if user has the authorization to manage Pages
$acl = Orchestra\Acl::make('cello');
$menu = Orchestra::menu();
if ($acl->can('manage-pages')) {
$menu->add('Cello', 'after:themes')
->title('Pages')
->link(handles('orchestra::resources/cello'));
}
の中にEvent::listen('orchestra.started: backend', function()
もちろん、問題はそれがまだ指してresources/cello
いるということです。代わりにどのように応答させることができmanages/pages
ますか?