<?php

namespace Terranet\Navigation;

class Manager
{
    public function providers()
    {
        return array_map(function ($provider) {
            return new $provider;
        }, config('navigation.providers', []));
    }
}
<?php

namespace Terranet\Navigation;

use App\Menu;

class Manager
{
    public function providers()
    {
        return array_map(function ($provider) {
            return new $provider;
        }, config('navigation.providers', []));
    }

    public function make($id)
    {
        return Menu::whereName($id)
            ->first()
            ->items
            ->map(function ($item) {
                return $item->assemble();
            });
    }
}
Add a make navigation method
Add a make navigation method
