PHP code example of kilroyweb / klink

1. Go to this page and download the library: Download kilroyweb/klink 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/ */

    

kilroyweb / klink example snippets


KilroyWeb\Klink\KlinkServiceProvider::class,

'Klink'=> KilroyWeb\Klink\Facades\Klink::class,

<ul>
    {!! Klink::url('my-account')->label('My Account') !!}
    {!! Klink::url('logout')->label('Logout') !!}
</ul>

<ul>
    <li class="active"><a href="http://localhost/my-account">My Account</a></li>
    <li><a href="http://localhost/logout">Logout</a></li>
</ul>

{!! Klink::url('my-account')->label('My Account')->container(false) !!}
{!! Klink::url('my-account')->label('My Account')->container('h3') !!}

{!! Klink::url('my-account')->alsoCheck(['/profile', '/'])->label('My Account') !!}