PHP code example of vormkracht10 / laravel-trailing-slash

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

    

vormkracht10 / laravel-trailing-slash example snippets


return [
    // Enable or disable trailing slashes
    'trailing' => env('TRAILING_SLASHES', true),

    // Enable or disable automatic setup of this package
    // When enabled, only installing this package is sufficient for everything to work
    'auto' => env('TRAILING_SLASHES_AUTO', true),

    // Execute middleware only on these methods
    'methods' => [
        'GET', 'HEAD', 'OPTIONS',
    ],
];
bash
php artisan vendor:publish --tag="laravel-trailing-slash-config"