PHP code example of sanchescom / laravel-vault
1. Go to this page and download the library: Download sanchescom/laravel-vault 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/ */
sanchescom / laravel-vault example snippets
'providers' => [
...
Sanchescom\Vault\Providers\LaravelServiceProvider::class,
],
$app->register(Sanchescom\Vault\Providers\LumenServiceProvider::class);
namespace App\Http\Controllers;
use Sanchescom\Vault\Facades\Vault;
class ExampleController extends Controller
{
protected $sealStatus;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->sealStatus = Vault::sys()->sealStatus();
$vault = Vault::setToken('1389b58b-0000-4800-a000-1d8869aee825');
$vault->sys()->seal();
}
}