PHP code example of spekulatius / laravel-powertools
1. Go to this page and download the library: Download spekulatius/laravel-powertools 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/ */
spekulatius / laravel-powertools example snippets
collect(['password' => 'this really should not be logged...'])
->maskSensitiveData()
->toArray();
// 'password' => '[masked]'
use Spekulatius\LaravelPowertools\Helpers\SelfDeletingTemporaryDirectory;
// ...
$tempDir = new SelfDeletingTemporaryDirectory;
// use like TemporaryDirectory from Spatie.
$tempFile = (new SelfDeletingTemporaryDirectory)->create()->path('temp.zip');
return [
];
$laravelPowertools = new Spekulatius\LaravelPowertools();
echo $laravelPowertools->echoPhrase('Hello, Spekulatius!');