LumenHelper
class LumenHelper
Properties
static | $app_instances |
Methods
Construct Get Plugin Container from Static Array
Get Lumen Plugin Instance
Get Lumen App
Get Lumen App
Get Cache
Get Auth
Get Public Asset
Throw an HttpException with the given data.
Get the available container instance.
Get the path to the base of the install.
Decrypt the given value.
Dispatch a job to its appropriate handler.
Get / set the specified configuration value.
Get the path to the database directory of the install.
Encrypt the given value.
Gets the value of an environment variable. Supports boolean, empty and null.
Fire an event and call the listeners.
Create a model factory builder for a given class, name, and amount.
Write some information to the log.
Get an instance of the redirector.
Get the path to the resources folder.
Make Validator
Return the current request from the application.
Return a new response from the application.
Generate a URL to a named route.
Get the path to the storage folder.
Translate the given message.
Translates the given message based on a count.
Generate a url for the application.
Get the evaluated view contents for the given view.
Recursive Collection
Details
at line 15
__construct($app)
Construct Get Plugin Container from Static Array
at line 35
static mixed
plugin($namespace)
Get Lumen Plugin Instance
at line 46
Application
app()
Get Lumen App
at line 54
SessionServiceProvider
session()
Get Lumen App
at line 62
WpHelper
wpHelper()
Get wpHelper
at line 70
CacheManager
cache()
Get Cache
at line 78
AuthManager
auth()
Get Auth
at line 86
string
asset($url)
Get Public Asset
at line 101
void
abort(int $code, string $message = '', array $headers = [])
Throw an HttpException with the given data.
at line 113
mixed|Application
make(string $make)
Get the available container instance.
at line 124
string
base_path(string $path = '')
Get the path to the base of the install.
at line 135
string
decrypt(string $value)
Decrypt the given value.
at line 146
mixed
dispatch(mixed $job)
Dispatch a job to its appropriate handler.
at line 160
mixed
config(array|string $key = null, mixed $default = null)
Get / set the specified configuration value.
If an array is passed as the key, we will assume you want to set an array of values.
at line 178
string
database_path(string $path = '')
Get the path to the database directory of the install.
at line 189
string
encrypt(string $value)
Encrypt the given value.
at line 201
mixed
env(string $key, mixed $default = null)
Gets the value of an environment variable. Supports boolean, empty and null.
at line 242
array|null
event(object|string $event, mixed $payload = [], bool $halt = false)
Fire an event and call the listeners.
at line 253
FactoryBuilder
factory()
Create a model factory builder for a given class, name, and amount.
at line 277
void
info(string $message, array $context = [])
Write some information to the log.
at line 291
Redirector|RedirectResponse
redirect(string|null $to = null, int $status = 302, array $headers = [], bool $secure = null)
Get an instance of the redirector.
at line 307
string
resource_path(string $path = '')
Get the path to the resources folder.
at line 316
Validator
validator()
Make Validator
at line 325
Request
request()
Return the current request from the application.
at line 338
Response|ResponseFactory
response(string $content = '', int $status = 200, array $headers = [])
Return a new response from the application.
at line 357
string
route(string $name, array $parameters = [], bool $secure = null)
Generate a URL to a named route.
at line 368
string
storage_path(string $path = '')
Get the path to the storage folder.
at line 381
Translator|string
trans(string $id = null, array $replace = [], string $locale = null)
Translate the given message.
at line 399
string
trans_choice(string $id, int|array|Countable $number, array $replace = [], string $locale = null)
Translates the given message based on a count.
at line 412
string
url(string $path = null, mixed $parameters = [], bool $secure = null)
Generate a url for the application.
at line 425
View
view(string $view = null, array $data = [], array $mergeData = [])
Get the evaluated view contents for the given view.
at line 442
mixed
recursiveCollection(array $array)
Recursive Collection