PHP code example of consoletvs / links

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

    

consoletvs / links example snippets


ConsoleTVs\Links\LinksServiceProvider::class,

'Links' => ConsoleTVs\Links\Facades\Links::class,



return [
    /* Middleware that will be applied to the statistic pages */
    'middleware' => ConsoleTVs\Links\Middleware\LinksMiddleware::class,

    /* Password to use if ConsoleTVs\Links\Middleware\LinksMiddleware is beeing used */
    'password' => 'LinksRocks',

    /* The views layout */
    'layout' => 'links::template',

    /* The route prefix, will be applied to all of the routes. */
    'prefix' => 'links',
];

{{ url('http://google.com') }}
{{ route('google') }}

{{ Links::url('http://google.com') }}
{{ Links::route('google') }}

// If jQuery .js is already If jQuery .js is not 
config/app.php
config/app.php

php artisan vendor:publish

php artisan migrate
config/links.php