PHP code example of maestriam / hiker

1. Go to this page and download the library: Download maestriam/hiker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maestriam / hiker example snippets

 php
composer 
 php
    Route::get('/test/edit/{id}', [
        'as'    => 'test.edit',
        'uses'  => 'TestController@edit'
    ]);
 php
    Route::get('/test', [
        'as'    => 'test.index',
        'uses'  => 'TestController@index'
        'icon'  => 'flag',
        'label' => 'My Route Index',
        'desc'  => 'A common index route' 
    ]);
 php
    $menu = Hiker::menu('test-menu');
 php
    $menu = Hiker::menu('test-menu');

    foreach($menu->collection as $route) {
        dump($route->url);
    }
 php
    @foreach($menu->collection as $route)
        {{ $route->url }}
    @endforeach