Streams parses variables within strings to allow dynamic configuration.
The following request
variables are available:
'request' => [
'url' => Request::url(),
'path' => Request::path(),
'root' => Request::root(),
'input' => Request::input(),
'full_url' => Request::fullUrl(),
'segments' => Request::segments(),
'uri' => Request::getRequestUri(),
'query' => Request::getQueryString(),
'parsed' => array_merge($parsed, [
'domain' => explode('.', $parsed['host'])
]),
],
The following URL
variables are available:
'url' => [
'previous' => URL::previous(),
],
The following route
variables are available:
'route' => [
'uri' => Request::route()->uri(),
'parameters' => Request::route()->parameters(),
'parameters.to_urlencoded' => array_map(
function ($parameter) {
return urlencode($parameter);
},
array_filter(Request::route()->parameters())
),
'parameter_names' => Request::route()->parameterNames(),
'compiled' => [
'static_prefix' => Request::route()->getCompiled()->getStaticPrefix(),
'parameters_suffix' => str_replace(
Request::route()->getCompiled()->getStaticPrefix(),
'',
Request::getRequestUri()
),
],
],
@todo clean up and use table/values.
A blank TALL-stack Laravel project with Streams.
The fundamental features and utilities offered by the Streams platform.
A universal and extensible RESTful API for Streams.
Extensible, user-friendly, and performant control panel, components, and services.
Dev tooling for Laravel Streams.