<?php
namespace App\Providers;
use A17\Twill\View\Components\Navigation\Link;
use A17\Twill\Facades\TwillNavigation;
use A17\Twill\View\Components\Navigation\NavigationLink;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
TwillNavigation::addLink(
NavigationLink::make()->forModule('articles')
);
TwillNavigation::addLink(
NavigationLink::make()->forModule('services')
);
//trying to get my capsule to appear at admin
$link = NavigationLink::make()->title('Homepage')->route('admin.homepages.landing')->icon('home');
TwillNavigation::addLink($link);
}
}