public function onIndex()
    {
        $this->breadcrumbs->register(self::$name, function(Generator $breadcrumbs) {
            $breadcrumbs->push(trans('antares/ban_management::messages.breadcrumbs.ban_management'), handles('antares::ban_management/rules/datatable'));
        });

        $this->breadcrumbs->register(self::$name . '-rules', function(Generator $breadcrumbs) {
            $breadcrumbs->parent(self::$name);
        });

        $this->shareOnView(self::$name);
    }
public function onIndex()
    {
        $this->breadcrumbs->register(self::$name, function(Generator $breadcrumbs) {
            $breadcrumbs->push(trans('antares/ban_management::messages.breadcrumbs.ban_management'), handles('antares::ban_management/rules/datatable'));
        });

        $this->breadcrumbs->register(self::$name . '-rules', function(Generator $breadcrumbs) {
            $breadcrumbs->parent(self::$name);
        });

        $this->shareOnView(self::$name);
    }
public function onIndex ( ) { $ this -> breadcrumbs -> register ( self :: $ name , function ( Generator $ breadcrumbs ) { $ breadcrumbs -> push ( trans ( 'antares/ban_management::messages.breadcrumbs.ban_management' ) , handles ( 'antares::ban_management/rules/datatable' ) ) ; } ) ; $ this -> breadcrumbs -> register ( self :: $ name . '-rules' , function ( Generator $ breadcrumbs ) { $ breadcrumbs -> parent ( self :: $ name ) ; } ) ; $ this -> shareOnView ( self :: $ name ) ; }
Register the breadcrumb for the index page.

@throws \DaveJamesMiller\Breadcrumbs\Exception
Register the breadcrumb for the index page .