PHP code example of austinheap / laravel-security-txt

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

    

austinheap / laravel-security-txt example snippets


'providers' => [
    //
    AustinHeap\Security\Txt\SecurityTxtServiceProvider::class,
];

'aliases' => [
    //
    'SecurityTxt' => AustinHeap\Security\Txt\SecurityTxtFacade::class,
];

return [
    'enabled' => env('SECURITY_TXT_ENABLED', true),
];
bash
$ php artisan vendor:publish --provider="AustinHeap\Security\Txt\SecurityTxtServiceProvider"