mardi 1 octobre 2019

Laravel package development: No hint path defined for [breadcrumbs]

I have written a CMS package and am writing a bolt-on module to add events functionality.

Both of these packages use the Laravel Breadcrumbs library.

This is part of the service provider for the events module:

class EventsServiceProvider extends ServiceProvider
{
    // boot method

    // register method
    public function register()
    {
            $this->loadRoutesFrom(__DIR__ . '/routes/web.php');
    }
}

Breadcrumbs for the core CMS package all work fine until I try and load the additional breadcrumb routes for this events module package:

   public function register()
    {
        $this->loadRoutesFrom(__DIR__ . '/routes/web.php');
        $this->loadRoutesFrom(__DIR__ . '/routes/breadcrumbs.php');
    }

This then stops all breadcrumb routes from working and the following error is encountered:

No hint path defined for [breadcrumbs]. (View: /Users/*****/Sites/****/CMS (Package)/src/views/admin/news/create.blade.php)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire