PHP code example of lanin / laravel-hashids

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

    

lanin / laravel-hashids example snippets


Lanin\Laravel\Hashids\HashidsServiceProvider::class,

namespace App\Http;

class Kernel extends HttpKernel
{
    use \Lanin\Laravel\Hashids\UseHashidsRouter;
    
    ...
}

'Hashids' => Lanin\Laravel\Hashids\HashidsFacade::class,

route('page.show', $page);
url('page', ['id' => $page]);
bash
$ php artisan vendor:publish