Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decodes data encoded with MIME base64
<?php base64_decode(string $string, bool $strict = false): string|false
<?php $key = $this->app['config']['app.key'];
if (Str::startsWith($key, 'base64:')) {
$key = base64_decode(substr($key, 7));
}
return new TokenRepository(
<?php public function show($asset)
{
$asset = Asset::find(base64_decode($asset));
<?php public function update(Request $request, $asset)
{
$asset = Asset::find(base64_decode($asset));
$this->authorize('edit', $asset);
<?php public function download($asset)
{
$asset = Asset::find(base64_decode($asset));
<?php public function destroy($asset)
{
$asset = Asset::find(base64_decode($asset));
<?php private function asset($asset)
{
if (! $asset = Asset::find(base64_decode($asset))) {
abort(404);
}
<?php {
public function show(Request $request)
{
$config = json_decode(base64_decode($request->config), true);
$field = (new Field($config['handle'], $config))->setValue($request->value);
<?php protected function fieldtype($request)
{
$config = json_decode(utf8_encode(base64_decode($request->config)), true);
return Fieldtype::find($config['type'])->setField(
new Field('relationship', $config)
<?php {
$this->validateSignature();
$url = base64_decode($url);
return $this->createResponse($this->generateBy('url', $url));
}
<?php {
$this->validateSignature();
$decoded = base64_decode($encoded);
[$container, $path] = explode('/', $decoded, 2);
<?php {
if ($filters = $this->filters) {
$this->merge([
'filters' => collect(json_decode(base64_decode($filters), true)),
]);
}
}