PHP code example of tkaratug / laravel-domain-whitelist
1. Go to this page and download the library: Download tkaratug/laravel-domain-whitelist 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/ */
tkaratug / laravel-domain-whitelist example snippets
return [
/*
|---------------------------------------------
| Domains to allow
| Leave empty to allow all requests
|---------------------------------------------
*/
'domains' => [
//'*.example.com',
//'example.com',
],
/*
|---------------------------------------------
| Paths to exclude
|---------------------------------------------
*/
'excludes' => [
//'/api/posts',
],
];