The NavigationConstructor
is one of the Constructor Classes
of hiker. It's used to create the navigation part of the Chrome
.
here's an example of how it's used:
<?php namespace App\Hiker\Chrome; use Hiker\Components\Navigation\Link; use Hiker\Components\Navigation\NavigationConstructor; class Navigation extends NavigationConstructor { protected function links(): array { return array_filter([ Link::resource(Cats::class) ->order(10) ->keyCode('Cats'), Link::resource(Dogs::class) ->order(20) ->keyCode('Dogs'), } }
Required methods
links(): array
Description:
Return the regular navigation links.
Example:
protected function links(): array { return array_filter([ Link::resource(Cats::class) ->order(10) ->keyCode('Cats'), Link::resource(Dogs::class) ->order(20) ->keyCode('Dogs'), }