Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

[PROPOSAL] Set the default view in a config file, rather than in application code #10

@tedslittlerobot

Description

@tedslittlerobot

Rather than calling Breadcrumbs::setView, to change the view, specify the default view using a Config option - it seems awkward to have to set the view in application code.

suggested implementation:

eg. in your service provider, something like:

public function register()
{
    $this->app['breadcrumbs'] = $this->app->share(function($app)
    {
        $bc = new BreadcrumbsManager($app['view'])

        $bc->setView($app['config']['breadcrumbs::view.name']);

        return $bc;
    });
}

then set the default value in the a package resources config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions