Download the PHP package formfeed-uk/nova-breadcrumbs without Composer

On this page you can find all versions of the php package formfeed-uk/nova-breadcrumbs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-breadcrumbs

Nova 4 Breadcrumbs

This Laravel Nova package extends the breadcrumbs functionality of the First Party Nova breadcrumbs.

Tests repo can be found here: https://github.com/Formfeed-UK/nova-breadcrumbs-tests

Version 2.x Changes

Version 2.x is a significant change from previous versions, this package now augments the existing nova breadcrumbs to offer:

Breaking changes from 1.x

Requirements >= v2.x

Requirements <= v1.x

Features

This package adds automated breadcrumbs to the top of Nova 4 resources.

It supports:

Installation

1) Install the package in to a Laravel app that uses Nova via composer:

2) Publish the config file (optional)

Usage

General

1) Enable Nova Breadcrumbs in the same way as the first party Nova Breadcrumbs in your NovaServiceProvider boot method:

2) Optionally configure a parent method on your Model to explicitly define the relationship the package should query. The name of this function can be changed in the configuration file.

Resource Methods

You can optionally override the default behaviour of the breadcrumbs package on a per resource basis by adding methods to your Nova Resource. These methods should all return an instance of Breadcrumb or an array of Breadcrumb instances.

For Dashboards, you can use the following method:

Example

Static Callbacks

You can override the default behaviour of the breadcrumbs globally by using the following static methods on the Breadcrumbs class. They should be provided within a boot method on a service provider.

These methods will be overriden by any per resource methods.

The closure provided should return either an instance of Breadcrumb or an array of Breadcrumb instances.

Example

Configuration Options

Please see the included config file for a full list of configuration options (it's well commented).

In addition to these options you can also specify the following options in the resource itself:

Link To parent

This determines if the breadcrumb should link to the parent resource regardless of if the current resource's index is navigable from the main menu:

public static $linkToParent = true|false;

Disable Parent Breadcrumbs

Resolving Parent breadcrumbs can be disabled by adding the following static variable to a resource:

public static $resolveParentBreadcrumbs = false;

Invoking Reflection

Determining the parent via invoking reflected blank model methods and checking the returned type is now disabled by default.

It is highly recommended that this functionality be left off, and either a parent method, form field, or a defined relationship return type be used instead.

However if needed you can still enable this functionality by doing the following:

You can also set this on a per-resource basis with the following static:

public static $invokingReflection = true|false;

Issues/Todo

If you have any requests for functionality or find any bugs please open an issue or submit a Pull Request. Pull requests will be actioned faster than Issues.

License

Nova Breadcrumbs is open-sourced software licensed under the MIT license.


All versions of nova-breadcrumbs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8
laravel/nova Version ^4.19
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package formfeed-uk/nova-breadcrumbs contains the following files

Loading the files please wait ....