1. Go to this page and download the library: Download glaivepro/hidevara 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/ */
glaivepro / hidevara example snippets
// This is already there
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
// Enable only outside testing as this does not work well with phpunit... see below
if ('testing' != env('APP_ENV')) // this will work even with config caching
$app->extend(
Illuminate\Contracts\Debug\ExceptionHandler::class,
function($handler) {
return new GlaivePro\Hidevara\HidingHandler($handler);
});
'_GET' => [ //this is the ruleset for fields in GET
'expose' => true, // show all fields
],
'_ENV' => [
'remove' => ['APP_KEY'], // remove key field entirely
'hide' => '/password/i', // hide anything that matches regex contains password
'trash' => '/PUSHER/' // anything that's not 'expose' or 'hide' will remove matched fields
'expose' => true, // expose all that remains
],
'_SERVER' => [
'expose' => ['REQUEST_METHOD'], // show the REQUEST_METHOD
// everything that hasn't matched a rule will be removed
],