vd/_ide_helper.php
2018-11-05 09:26:30 +08:00

6503 lines
195 KiB
PHP

<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel Lumen (5.5.2) (Laravel Components 5.5.*) on 2018-08-19 22:55:58.
*
* This file should not be included in your code, only analyzed by your IDE!
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace Illuminate\Support\Facades {
class App {
/**
* Bootstrap the router instance.
*
* @return void
* @static
*/
public static function bootstrapRouter()
{
\Laravel\Lumen\Application::bootstrapRouter();
}
/**
* Get the version number of the application.
*
* @return string
* @static
*/
public static function version()
{
return \Laravel\Lumen\Application::version();
}
/**
* Determine if the application is currently down for maintenance.
*
* @return bool
* @static
*/
public static function isDownForMaintenance()
{
return \Laravel\Lumen\Application::isDownForMaintenance();
}
/**
* Get or check the current application environment.
*
* @param mixed
* @return string
* @static
*/
public static function environment()
{
return \Laravel\Lumen\Application::environment();
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function register($provider)
{
return \Laravel\Lumen\Application::register($provider);
}
/**
* Register a deferred provider and service.
*
* @param string $provider
* @return void
* @static
*/
public static function registerDeferredProvider($provider)
{
\Laravel\Lumen\Application::registerDeferredProvider($provider);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function make($abstract, $parameters = array())
{
return \Laravel\Lumen\Application::make($abstract, $parameters);
}
/**
* Define a callback to be used to configure Monolog.
*
* @param callable $callback
* @return $this
* @static
*/
public static function configureMonologUsing($callback)
{
return \Laravel\Lumen\Application::configureMonologUsing($callback);
}
/**
* Configure and load the given component and provider.
*
* @param string $config
* @param array|string $providers
* @param string|null $return
* @return mixed
* @static
*/
public static function loadComponent($config, $providers, $return = null)
{
return \Laravel\Lumen\Application::loadComponent($config, $providers, $return);
}
/**
* Load a configuration file into the application.
*
* @param string $name
* @return void
* @static
*/
public static function configure($name)
{
\Laravel\Lumen\Application::configure($name);
}
/**
* Get the path to the given configuration file.
*
* If no name is provided, then we'll return the path to the config folder.
*
* @param string|null $name
* @return string
* @static
*/
public static function getConfigurationPath($name = null)
{
return \Laravel\Lumen\Application::getConfigurationPath($name);
}
/**
* Register the facades for the application.
*
* @param bool $aliases
* @param array $userAliases
* @return void
* @static
*/
public static function withFacades($aliases = true, $userAliases = array())
{
\Laravel\Lumen\Application::withFacades($aliases, $userAliases);
}
/**
* Register the aliases for the application.
*
* @param array $userAliases
* @return void
* @static
*/
public static function withAliases($userAliases = array())
{
\Laravel\Lumen\Application::withAliases($userAliases);
}
/**
* Load the Eloquent library for the application.
*
* @return void
* @static
*/
public static function withEloquent()
{
\Laravel\Lumen\Application::withEloquent();
}
/**
* Get the path to the application "app" directory.
*
* @return string
* @static
*/
public static function path()
{
return \Laravel\Lumen\Application::path();
}
/**
* Get the base path for the application.
*
* @param string|null $path
* @return string
* @static
*/
public static function basePath($path = null)
{
return \Laravel\Lumen\Application::basePath($path);
}
/**
* Get the path to the database directory.
*
* @param string $path
* @return string
* @static
*/
public static function databasePath($path = '')
{
return \Laravel\Lumen\Application::databasePath($path);
}
/**
* Get the storage path for the application.
*
* @param string|null $path
* @return string
* @static
*/
public static function storagePath($path = '')
{
return \Laravel\Lumen\Application::storagePath($path);
}
/**
* Get the path to the resources directory.
*
* @param string|null $path
* @return string
* @static
*/
public static function resourcePath($path = '')
{
return \Laravel\Lumen\Application::resourcePath($path);
}
/**
* Determine if the application is running in the console.
*
* @return bool
* @static
*/
public static function runningInConsole()
{
return \Laravel\Lumen\Application::runningInConsole();
}
/**
* Determine if we are running unit tests.
*
* @return bool
* @static
*/
public static function runningUnitTests()
{
return \Laravel\Lumen\Application::runningUnitTests();
}
/**
* Prepare the application to execute a console command.
*
* @param bool $aliases
* @return void
* @static
*/
public static function prepareForConsoleCommand($aliases = true)
{
\Laravel\Lumen\Application::prepareForConsoleCommand($aliases);
}
/**
* Get the application namespace.
*
* @return string
* @throws \RuntimeException
* @static
*/
public static function getNamespace()
{
return \Laravel\Lumen\Application::getNamespace();
}
/**
* Define a contextual binding.
*
* @param string $concrete
* @return \Illuminate\Contracts\Container\ContextualBindingBuilder
* @static
*/
public static function when($concrete)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::when($concrete);
}
/**
* Determine if the given abstract type has been bound.
*
* @param string $abstract
* @return bool
* @static
*/
public static function bound($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::bound($abstract);
}
/**
* Returns true if the container can return an entry for the given identifier.
*
* Returns false otherwise.
*
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
* It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
*
* @param string $id Identifier of the entry to look for.
* @return bool
* @static
*/
public static function has($id)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::has($id);
}
/**
* Determine if the given abstract type has been resolved.
*
* @param string $abstract
* @return bool
* @static
*/
public static function resolved($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::resolved($abstract);
}
/**
* Determine if a given type is shared.
*
* @param string $abstract
* @return bool
* @static
*/
public static function isShared($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::isShared($abstract);
}
/**
* Determine if a given string is an alias.
*
* @param string $name
* @return bool
* @static
*/
public static function isAlias($name)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::isAlias($name);
}
/**
* Register a binding with the container.
*
* @param string $abstract
* @param \Closure|string|null $concrete
* @param bool $shared
* @return void
* @static
*/
public static function bind($abstract, $concrete = null, $shared = false)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::bind($abstract, $concrete, $shared);
}
/**
* Determine if the container has a method binding.
*
* @param string $method
* @return bool
* @static
*/
public static function hasMethodBinding($method)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::hasMethodBinding($method);
}
/**
* Bind a callback to resolve with Container::call.
*
* @param string $method
* @param \Closure $callback
* @return void
* @static
*/
public static function bindMethod($method, $callback)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::bindMethod($method, $callback);
}
/**
* Get the method binding for the given method.
*
* @param string $method
* @param mixed $instance
* @return mixed
* @static
*/
public static function callMethodBinding($method, $instance)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::callMethodBinding($method, $instance);
}
/**
* Add a contextual binding to the container.
*
* @param string $concrete
* @param string $abstract
* @param \Closure|string $implementation
* @return void
* @static
*/
public static function addContextualBinding($concrete, $abstract, $implementation)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::addContextualBinding($concrete, $abstract, $implementation);
}
/**
* Register a binding if it hasn't already been registered.
*
* @param string $abstract
* @param \Closure|string|null $concrete
* @param bool $shared
* @return void
* @static
*/
public static function bindIf($abstract, $concrete = null, $shared = false)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::bindIf($abstract, $concrete, $shared);
}
/**
* Register a shared binding in the container.
*
* @param string $abstract
* @param \Closure|string|null $concrete
* @return void
* @static
*/
public static function singleton($abstract, $concrete = null)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::singleton($abstract, $concrete);
}
/**
* "Extend" an abstract type in the container.
*
* @param string $abstract
* @param \Closure $closure
* @return void
* @throws \InvalidArgumentException
* @static
*/
public static function extend($abstract, $closure)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::extend($abstract, $closure);
}
/**
* Register an existing instance as shared in the container.
*
* @param string $abstract
* @param mixed $instance
* @return mixed
* @static
*/
public static function instance($abstract, $instance)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::instance($abstract, $instance);
}
/**
* Assign a set of tags to a given binding.
*
* @param array|string $abstracts
* @param array|mixed $tags
* @return void
* @static
*/
public static function tag($abstracts, $tags)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::tag($abstracts, $tags);
}
/**
* Resolve all of the bindings for a given tag.
*
* @param string $tag
* @return array
* @static
*/
public static function tagged($tag)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::tagged($tag);
}
/**
* Alias a type to a different name.
*
* @param string $abstract
* @param string $alias
* @return void
* @static
*/
public static function alias($abstract, $alias)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::alias($abstract, $alias);
}
/**
* Bind a new callback to an abstract's rebind event.
*
* @param string $abstract
* @param \Closure $callback
* @return mixed
* @static
*/
public static function rebinding($abstract, $callback)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::rebinding($abstract, $callback);
}
/**
* Refresh an instance on the given target and method.
*
* @param string $abstract
* @param mixed $target
* @param string $method
* @return mixed
* @static
*/
public static function refresh($abstract, $target, $method)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::refresh($abstract, $target, $method);
}
/**
* Wrap the given closure such that its dependencies will be injected when executed.
*
* @param \Closure $callback
* @param array $parameters
* @return \Closure
* @static
*/
public static function wrap($callback, $parameters = array())
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::wrap($callback, $parameters);
}
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
* @static
*/
public static function call($callback, $parameters = array(), $defaultMethod = null)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::call($callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
* @param string $abstract
* @return \Closure
* @static
*/
public static function factory($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::factory($abstract);
}
/**
* An alias function name for make().
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function makeWith($abstract, $parameters = array())
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::makeWith($abstract, $parameters);
}
/**
* Finds an entry of the container by its identifier and returns it.
*
* @param string $id Identifier of the entry to look for.
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
* @throws ContainerExceptionInterface Error while retrieving the entry.
* @return mixed Entry.
* @static
*/
public static function get($id)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::get($id);
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @return mixed
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @static
*/
public static function build($concrete)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::build($concrete);
}
/**
* Register a new resolving callback.
*
* @param \Closure|string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function resolving($abstract, $callback = null)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::resolving($abstract, $callback);
}
/**
* Register a new after resolving callback for all types.
*
* @param \Closure|string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function afterResolving($abstract, $callback = null)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::afterResolving($abstract, $callback);
}
/**
* Get the container's bindings.
*
* @return array
* @static
*/
public static function getBindings()
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getBindings();
}
/**
* Get the alias for an abstract if available.
*
* @param string $abstract
* @return string
* @throws \LogicException
* @static
*/
public static function getAlias($abstract)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getAlias($abstract);
}
/**
* Remove all of the extender callbacks for a given type.
*
* @param string $abstract
* @return void
* @static
*/
public static function forgetExtenders($abstract)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetExtenders($abstract);
}
/**
* Remove a resolved instance from the instance cache.
*
* @param string $abstract
* @return void
* @static
*/
public static function forgetInstance($abstract)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetInstance($abstract);
}
/**
* Clear all of the instances from the container.
*
* @return void
* @static
*/
public static function forgetInstances()
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::forgetInstances();
}
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
* @static
*/
public static function flush()
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::flush();
}
/**
* Set the globally available instance of the container.
*
* @return static
* @static
*/
public static function getInstance()
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::getInstance();
}
/**
* Set the shared instance of the container.
*
* @param \Illuminate\Contracts\Container\Container|null $container
* @return static
* @static
*/
public static function setInstance($container = null)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::setInstance($container);
}
/**
* Determine if a given offset exists.
*
* @param string $key
* @return bool
* @static
*/
public static function offsetExists($key)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::offsetExists($key);
}
/**
* Get the value at a given offset.
*
* @param string $key
* @return mixed
* @static
*/
public static function offsetGet($key)
{
//Method inherited from \Illuminate\Container\Container
return \Laravel\Lumen\Application::offsetGet($key);
}
/**
* Set the value at a given offset.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function offsetSet($key, $value)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::offsetSet($key, $value);
}
/**
* Unset the value at a given offset.
*
* @param string $key
* @return void
* @static
*/
public static function offsetUnset($key)
{
//Method inherited from \Illuminate\Container\Container
\Laravel\Lumen\Application::offsetUnset($key);
}
/**
* Add new middleware to the application.
*
* @param \Closure|array $middleware
* @return $this
* @static
*/
public static function middleware($middleware)
{
return \Laravel\Lumen\Application::middleware($middleware);
}
/**
* Define the route middleware for the application.
*
* @param array $middleware
* @return $this
* @static
*/
public static function routeMiddleware($middleware)
{
return \Laravel\Lumen\Application::routeMiddleware($middleware);
}
/**
* {@inheritdoc}
*
* @static
*/
public static function handle($request)
{
return \Laravel\Lumen\Application::handle($request);
}
/**
* Run the application and send the response.
*
* @param \Laravel\Lumen\SymfonyRequest|null $request
* @return void
* @static
*/
public static function run($request = null)
{
\Laravel\Lumen\Application::run($request);
}
/**
* Dispatch the incoming request.
*
* @param \Laravel\Lumen\SymfonyRequest|null $request
* @return \Laravel\Lumen\Response
* @static
*/
public static function dispatch($request = null)
{
return \Laravel\Lumen\Application::dispatch($request);
}
/**
* Set the FastRoute dispatcher instance.
*
* @param \FastRoute\Dispatcher $dispatcher
* @return void
* @static
*/
public static function setDispatcher($dispatcher)
{
\Laravel\Lumen\Application::setDispatcher($dispatcher);
}
/**
* Prepare the response for sending.
*
* @param mixed $response
* @return \Laravel\Lumen\Response
* @static
*/
public static function prepareResponse($response)
{
return \Laravel\Lumen\Application::prepareResponse($response);
}
/**
* Throw an HttpException with the given data.
*
* @param int $code
* @param string $message
* @param array $headers
* @return void
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* @static
*/
public static function abort($code, $message = '', $headers = array())
{
\Laravel\Lumen\Application::abort($code, $message, $headers);
}
}
class Auth {
/**
* Attempt to get the guard from the local cache.
*
* @param string $name
* @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
* @static
*/
public static function guard($name = null)
{
return \Illuminate\Auth\AuthManager::guard($name);
}
/**
* Create a session based authentication guard.
*
* @param string $name
* @param array $config
* @return \Illuminate\Auth\SessionGuard
* @static
*/
public static function createSessionDriver($name, $config)
{
return \Illuminate\Auth\AuthManager::createSessionDriver($name, $config);
}
/**
* Create a token based authentication guard.
*
* @param string $name
* @param array $config
* @return \Illuminate\Auth\TokenGuard
* @static
*/
public static function createTokenDriver($name, $config)
{
return \Illuminate\Auth\AuthManager::createTokenDriver($name, $config);
}
/**
* Get the default authentication driver name.
*
* @return string
* @static
*/
public static function getDefaultDriver()
{
return \Illuminate\Auth\AuthManager::getDefaultDriver();
}
/**
* Set the default guard driver the factory should serve.
*
* @param string $name
* @return void
* @static
*/
public static function shouldUse($name)
{
\Illuminate\Auth\AuthManager::shouldUse($name);
}
/**
* Set the default authentication driver name.
*
* @param string $name
* @return void
* @static
*/
public static function setDefaultDriver($name)
{
\Illuminate\Auth\AuthManager::setDefaultDriver($name);
}
/**
* Register a new callback based request guard.
*
* @param string $driver
* @param callable $callback
* @return $this
* @static
*/
public static function viaRequest($driver, $callback)
{
return \Illuminate\Auth\AuthManager::viaRequest($driver, $callback);
}
/**
* Get the user resolver callback.
*
* @return \Closure
* @static
*/
public static function userResolver()
{
return \Illuminate\Auth\AuthManager::userResolver();
}
/**
* Set the callback to be used to resolve users.
*
* @param \Closure $userResolver
* @return $this
* @static
*/
public static function resolveUsersUsing($userResolver)
{
return \Illuminate\Auth\AuthManager::resolveUsersUsing($userResolver);
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param \Closure $callback
* @return $this
* @static
*/
public static function extend($driver, $callback)
{
return \Illuminate\Auth\AuthManager::extend($driver, $callback);
}
/**
* Register a custom provider creator Closure.
*
* @param string $name
* @param \Closure $callback
* @return $this
* @static
*/
public static function provider($name, $callback)
{
return \Illuminate\Auth\AuthManager::provider($name, $callback);
}
/**
* Create the user provider implementation for the driver.
*
* @param string|null $provider
* @return \Illuminate\Contracts\Auth\UserProvider|null
* @throws \InvalidArgumentException
* @static
*/
public static function createUserProvider($provider = null)
{
return \Illuminate\Auth\AuthManager::createUserProvider($provider);
}
/**
* Get the default user provider name.
*
* @return string
* @static
*/
public static function getDefaultUserProvider()
{
return \Illuminate\Auth\AuthManager::getDefaultUserProvider();
}
/**
* Get the currently authenticated user.
*
* @return \App\User|null
* @static
*/
public static function user()
{
return \Tymon\JWTAuth\JWTGuard::user();
}
/**
* Get the currently authenticated user or throws an exception.
*
* @throws \Tymon\JWTAuth\Exceptions\UserNotDefinedException
* @return \App\User
* @static
*/
public static function userOrFail()
{
return \Tymon\JWTAuth\JWTGuard::userOrFail();
}
/**
* Validate a user's credentials.
*
* @param array $credentials
* @return bool
* @static
*/
public static function validate($credentials = array())
{
return \Tymon\JWTAuth\JWTGuard::validate($credentials);
}
/**
* Attempt to authenticate the user using the given credentials and return the token.
*
* @param array $credentials
* @param bool $login
* @return bool|string
* @static
*/
public static function attempt($credentials = array(), $login = true)
{
return \Tymon\JWTAuth\JWTGuard::attempt($credentials, $login);
}
/**
* Create a token for a user.
*
* @param \Tymon\JWTAuth\Contracts\JWTSubject $user
* @return string
* @static
*/
public static function login($user)
{
return \Tymon\JWTAuth\JWTGuard::login($user);
}
/**
* Logout the user, thus invalidating the token.
*
* @param bool $forceForever
* @return void
* @static
*/
public static function logout($forceForever = false)
{
\Tymon\JWTAuth\JWTGuard::logout($forceForever);
}
/**
* Refresh the token.
*
* @param bool $forceForever
* @param bool $resetClaims
* @return string
* @static
*/
public static function refresh($forceForever = false, $resetClaims = false)
{
return \Tymon\JWTAuth\JWTGuard::refresh($forceForever, $resetClaims);
}
/**
* Invalidate the token.
*
* @param bool $forceForever
* @return \Tymon\JWTAuth\JWT
* @static
*/
public static function invalidate($forceForever = false)
{
return \Tymon\JWTAuth\JWTGuard::invalidate($forceForever);
}
/**
* Create a new token by User id.
*
* @param mixed $id
* @return string|null
* @static
*/
public static function tokenById($id)
{
return \Tymon\JWTAuth\JWTGuard::tokenById($id);
}
/**
* Log a user into the application using their credentials.
*
* @param array $credentials
* @return bool
* @static
*/
public static function once($credentials = array())
{
return \Tymon\JWTAuth\JWTGuard::once($credentials);
}
/**
* Log the given User into the application.
*
* @param mixed $id
* @return bool
* @static
*/
public static function onceUsingId($id)
{
return \Tymon\JWTAuth\JWTGuard::onceUsingId($id);
}
/**
* Alias for onceUsingId.
*
* @param mixed $id
* @return bool
* @static
*/
public static function byId($id)
{
return \Tymon\JWTAuth\JWTGuard::byId($id);
}
/**
* Add any custom claims.
*
* @param array $claims
* @return $this
* @static
*/
public static function claims($claims)
{
return \Tymon\JWTAuth\JWTGuard::claims($claims);
}
/**
* Get the raw Payload instance.
*
* @return \Tymon\JWTAuth\Payload
* @static
*/
public static function getPayload()
{
return \Tymon\JWTAuth\JWTGuard::getPayload();
}
/**
* Alias for getPayload().
*
* @return \Tymon\JWTAuth\Payload
* @static
*/
public static function payload()
{
return \Tymon\JWTAuth\JWTGuard::payload();
}
/**
* Set the token.
*
* @param \Tymon\JWTAuth\Token|string $token
* @return $this
* @static
*/
public static function setToken($token)
{
return \Tymon\JWTAuth\JWTGuard::setToken($token);
}
/**
* Set the token ttl.
*
* @param int $ttl
* @return $this
* @static
*/
public static function setTTL($ttl)
{
return \Tymon\JWTAuth\JWTGuard::setTTL($ttl);
}
/**
* Get the user provider used by the guard.
*
* @return \Illuminate\Contracts\Auth\UserProvider
* @static
*/
public static function getProvider()
{
return \Tymon\JWTAuth\JWTGuard::getProvider();
}
/**
* Set the user provider used by the guard.
*
* @param \Illuminate\Contracts\Auth\UserProvider $provider
* @return $this
* @static
*/
public static function setProvider($provider)
{
return \Tymon\JWTAuth\JWTGuard::setProvider($provider);
}
/**
* Return the currently cached user.
*
* @return \App\User|null
* @static
*/
public static function getUser()
{
return \Tymon\JWTAuth\JWTGuard::getUser();
}
/**
* Get the current request instance.
*
* @return \Illuminate\Http\Request
* @static
*/
public static function getRequest()
{
return \Tymon\JWTAuth\JWTGuard::getRequest();
}
/**
* Set the current request instance.
*
* @param \Illuminate\Http\Request $request
* @return $this
* @static
*/
public static function setRequest($request)
{
return \Tymon\JWTAuth\JWTGuard::setRequest($request);
}
/**
* Get the last user we attempted to authenticate.
*
* @return \App\User
* @static
*/
public static function getLastAttempted()
{
return \Tymon\JWTAuth\JWTGuard::getLastAttempted();
}
/**
* Determine if the current user is authenticated.
*
* @return \App\User
* @throws \Illuminate\Auth\AuthenticationException
* @static
*/
public static function authenticate()
{
return \Tymon\JWTAuth\JWTGuard::authenticate();
}
/**
* Determine if the current user is authenticated.
*
* @return bool
* @static
*/
public static function check()
{
return \Tymon\JWTAuth\JWTGuard::check();
}
/**
* Determine if the current user is a guest.
*
* @return bool
* @static
*/
public static function guest()
{
return \Tymon\JWTAuth\JWTGuard::guest();
}
/**
* Get the ID for the currently authenticated user.
*
* @return int|null
* @static
*/
public static function id()
{
return \Tymon\JWTAuth\JWTGuard::id();
}
/**
* Set the current user.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return $this
* @static
*/
public static function setUser($user)
{
return \Tymon\JWTAuth\JWTGuard::setUser($user);
}
}
class Bus {
/**
* Dispatch a command to its appropriate handler.
*
* @param mixed $command
* @return mixed
* @static
*/
public static function dispatch($command)
{
return \Illuminate\Bus\Dispatcher::dispatch($command);
}
/**
* Dispatch a command to its appropriate handler in the current process.
*
* @param mixed $command
* @param mixed $handler
* @return mixed
* @static
*/
public static function dispatchNow($command, $handler = null)
{
return \Illuminate\Bus\Dispatcher::dispatchNow($command, $handler);
}
/**
* Determine if the given command has a handler.
*
* @param mixed $command
* @return bool
* @static
*/
public static function hasCommandHandler($command)
{
return \Illuminate\Bus\Dispatcher::hasCommandHandler($command);
}
/**
* Retrieve the handler for a command.
*
* @param mixed $command
* @return bool|mixed
* @static
*/
public static function getCommandHandler($command)
{
return \Illuminate\Bus\Dispatcher::getCommandHandler($command);
}
/**
* Dispatch a command to its appropriate handler behind a queue.
*
* @param mixed $command
* @return mixed
* @throws \RuntimeException
* @static
*/
public static function dispatchToQueue($command)
{
return \Illuminate\Bus\Dispatcher::dispatchToQueue($command);
}
/**
* Set the pipes through which commands should be piped before dispatching.
*
* @param array $pipes
* @return $this
* @static
*/
public static function pipeThrough($pipes)
{
return \Illuminate\Bus\Dispatcher::pipeThrough($pipes);
}
/**
* Map a command to a handler.
*
* @param array $map
* @return $this
* @static
*/
public static function map($map)
{
return \Illuminate\Bus\Dispatcher::map($map);
}
}
class DB {
/**
* Get a database connection instance.
*
* @param string $name
* @return \Illuminate\Database\Connection
* @static
*/
public static function connection($name = null)
{
return \Illuminate\Database\DatabaseManager::connection($name);
}
/**
* Disconnect from the given database and remove from local cache.
*
* @param string $name
* @return void
* @static
*/
public static function purge($name = null)
{
\Illuminate\Database\DatabaseManager::purge($name);
}
/**
* Disconnect from the given database.
*
* @param string $name
* @return void
* @static
*/
public static function disconnect($name = null)
{
\Illuminate\Database\DatabaseManager::disconnect($name);
}
/**
* Reconnect to the given database.
*
* @param string $name
* @return \Illuminate\Database\Connection
* @static
*/
public static function reconnect($name = null)
{
return \Illuminate\Database\DatabaseManager::reconnect($name);
}
/**
* Get the default connection name.
*
* @return string
* @static
*/
public static function getDefaultConnection()
{
return \Illuminate\Database\DatabaseManager::getDefaultConnection();
}
/**
* Set the default connection name.
*
* @param string $name
* @return void
* @static
*/
public static function setDefaultConnection($name)
{
\Illuminate\Database\DatabaseManager::setDefaultConnection($name);
}
/**
* Get all of the support drivers.
*
* @return array
* @static
*/
public static function supportedDrivers()
{
return \Illuminate\Database\DatabaseManager::supportedDrivers();
}
/**
* Get all of the drivers that are actually available.
*
* @return array
* @static
*/
public static function availableDrivers()
{
return \Illuminate\Database\DatabaseManager::availableDrivers();
}
/**
* Register an extension connection resolver.
*
* @param string $name
* @param callable $resolver
* @return void
* @static
*/
public static function extend($name, $resolver)
{
\Illuminate\Database\DatabaseManager::extend($name, $resolver);
}
/**
* Return all of the created connections.
*
* @return array
* @static
*/
public static function getConnections()
{
return \Illuminate\Database\DatabaseManager::getConnections();
}
/**
* Get a schema builder instance for the connection.
*
* @return \Illuminate\Database\Schema\MySqlBuilder
* @static
*/
public static function getSchemaBuilder()
{
return \Illuminate\Database\MySqlConnection::getSchemaBuilder();
}
/**
* Bind values to their parameters in the given statement.
*
* @param \PDOStatement $statement
* @param array $bindings
* @return void
* @static
*/
public static function bindValues($statement, $bindings)
{
\Illuminate\Database\MySqlConnection::bindValues($statement, $bindings);
}
/**
* Set the query grammar to the default implementation.
*
* @return void
* @static
*/
public static function useDefaultQueryGrammar()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
}
/**
* Set the schema grammar to the default implementation.
*
* @return void
* @static
*/
public static function useDefaultSchemaGrammar()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
}
/**
* Set the query post processor to the default implementation.
*
* @return void
* @static
*/
public static function useDefaultPostProcessor()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
}
/**
* Begin a fluent query against a database table.
*
* @param string $table
* @return \Illuminate\Database\Query\Builder
* @static
*/
public static function table($table)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::table($table);
}
/**
* Get a new query builder instance.
*
* @return \Illuminate\Database\Query\Builder
* @static
*/
public static function query()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::query();
}
/**
* Run a select statement and return a single result.
*
* @param string $query
* @param array $bindings
* @param bool $useReadPdo
* @return mixed
* @static
*/
public static function selectOne($query, $bindings = array(), $useReadPdo = true)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings, $useReadPdo);
}
/**
* Run a select statement against the database.
*
* @param string $query
* @param array $bindings
* @return array
* @static
*/
public static function selectFromWriteConnection($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::selectFromWriteConnection($query, $bindings);
}
/**
* Run a select statement against the database.
*
* @param string $query
* @param array $bindings
* @param bool $useReadPdo
* @return array
* @static
*/
public static function select($query, $bindings = array(), $useReadPdo = true)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::select($query, $bindings, $useReadPdo);
}
/**
* Run a select statement against the database and returns a generator.
*
* @param string $query
* @param array $bindings
* @param bool $useReadPdo
* @return \Generator
* @static
*/
public static function cursor($query, $bindings = array(), $useReadPdo = true)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::cursor($query, $bindings, $useReadPdo);
}
/**
* Run an insert statement against the database.
*
* @param string $query
* @param array $bindings
* @return bool
* @static
*/
public static function insert($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::insert($query, $bindings);
}
/**
* Run an update statement against the database.
*
* @param string $query
* @param array $bindings
* @return int
* @static
*/
public static function update($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::update($query, $bindings);
}
/**
* Run a delete statement against the database.
*
* @param string $query
* @param array $bindings
* @return int
* @static
*/
public static function delete($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::delete($query, $bindings);
}
/**
* Execute an SQL statement and return the boolean result.
*
* @param string $query
* @param array $bindings
* @return bool
* @static
*/
public static function statement($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::statement($query, $bindings);
}
/**
* Run an SQL statement and get the number of rows affected.
*
* @param string $query
* @param array $bindings
* @return int
* @static
*/
public static function affectingStatement($query, $bindings = array())
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
}
/**
* Run a raw, unprepared query against the PDO connection.
*
* @param string $query
* @return bool
* @static
*/
public static function unprepared($query)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::unprepared($query);
}
/**
* Execute the given callback in "dry run" mode.
*
* @param \Closure $callback
* @return array
* @static
*/
public static function pretend($callback)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::pretend($callback);
}
/**
* Prepare the query bindings for execution.
*
* @param array $bindings
* @return array
* @static
*/
public static function prepareBindings($bindings)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::prepareBindings($bindings);
}
/**
* Log a query in the connection's query log.
*
* @param string $query
* @param array $bindings
* @param float|null $time
* @return void
* @static
*/
public static function logQuery($query, $bindings, $time = null)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
}
/**
* Register a database query listener with the connection.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function listen($callback)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::listen($callback);
}
/**
* Get a new raw query expression.
*
* @param mixed $value
* @return \Illuminate\Database\Query\Expression
* @static
*/
public static function raw($value)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::raw($value);
}
/**
* Indicate if any records have been modified.
*
* @param bool $value
* @return void
* @static
*/
public static function recordsHaveBeenModified($value = true)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::recordsHaveBeenModified($value);
}
/**
* Is Doctrine available?
*
* @return bool
* @static
*/
public static function isDoctrineAvailable()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::isDoctrineAvailable();
}
/**
* Get a Doctrine Schema Column instance.
*
* @param string $table
* @param string $column
* @return \Doctrine\DBAL\Schema\Column
* @static
*/
public static function getDoctrineColumn($table, $column)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
}
/**
* Get the Doctrine DBAL schema manager for the connection.
*
* @return \Doctrine\DBAL\Schema\AbstractSchemaManager
* @static
*/
public static function getDoctrineSchemaManager()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
}
/**
* Get the Doctrine DBAL database connection instance.
*
* @return \Doctrine\DBAL\Connection
* @static
*/
public static function getDoctrineConnection()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getDoctrineConnection();
}
/**
* Get the current PDO connection.
*
* @return \PDO
* @static
*/
public static function getPdo()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getPdo();
}
/**
* Get the current PDO connection used for reading.
*
* @return \PDO
* @static
*/
public static function getReadPdo()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getReadPdo();
}
/**
* Set the PDO connection.
*
* @param \PDO|\Closure|null $pdo
* @return $this
* @static
*/
public static function setPdo($pdo)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::setPdo($pdo);
}
/**
* Set the PDO connection used for reading.
*
* @param \PDO|\Closure|null $pdo
* @return $this
* @static
*/
public static function setReadPdo($pdo)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::setReadPdo($pdo);
}
/**
* Set the reconnect instance on the connection.
*
* @param callable $reconnector
* @return $this
* @static
*/
public static function setReconnector($reconnector)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::setReconnector($reconnector);
}
/**
* Get the database connection name.
*
* @return string|null
* @static
*/
public static function getName()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getName();
}
/**
* Get an option from the configuration options.
*
* @param string|null $option
* @return mixed
* @static
*/
public static function getConfig($option = null)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getConfig($option);
}
/**
* Get the PDO driver name.
*
* @return string
* @static
*/
public static function getDriverName()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getDriverName();
}
/**
* Get the query grammar used by the connection.
*
* @return \Illuminate\Database\Query\Grammars\Grammar
* @static
*/
public static function getQueryGrammar()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getQueryGrammar();
}
/**
* Set the query grammar used by the connection.
*
* @param \Illuminate\Database\Query\Grammars\Grammar $grammar
* @return void
* @static
*/
public static function setQueryGrammar($grammar)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
}
/**
* Get the schema grammar used by the connection.
*
* @return \Illuminate\Database\Schema\Grammars\Grammar
* @static
*/
public static function getSchemaGrammar()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getSchemaGrammar();
}
/**
* Set the schema grammar used by the connection.
*
* @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
* @return void
* @static
*/
public static function setSchemaGrammar($grammar)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
}
/**
* Get the query post processor used by the connection.
*
* @return \Illuminate\Database\Query\Processors\Processor
* @static
*/
public static function getPostProcessor()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getPostProcessor();
}
/**
* Set the query post processor used by the connection.
*
* @param \Illuminate\Database\Query\Processors\Processor $processor
* @return void
* @static
*/
public static function setPostProcessor($processor)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::setPostProcessor($processor);
}
/**
* Get the event dispatcher used by the connection.
*
* @return \Illuminate\Contracts\Events\Dispatcher
* @static
*/
public static function getEventDispatcher()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getEventDispatcher();
}
/**
* Set the event dispatcher instance on the connection.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
* @static
*/
public static function setEventDispatcher($events)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::setEventDispatcher($events);
}
/**
* Determine if the connection in a "dry run".
*
* @return bool
* @static
*/
public static function pretending()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::pretending();
}
/**
* Get the connection query log.
*
* @return array
* @static
*/
public static function getQueryLog()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getQueryLog();
}
/**
* Clear the query log.
*
* @return void
* @static
*/
public static function flushQueryLog()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::flushQueryLog();
}
/**
* Enable the query log on the connection.
*
* @return void
* @static
*/
public static function enableQueryLog()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::enableQueryLog();
}
/**
* Disable the query log on the connection.
*
* @return void
* @static
*/
public static function disableQueryLog()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::disableQueryLog();
}
/**
* Determine whether we're logging queries.
*
* @return bool
* @static
*/
public static function logging()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::logging();
}
/**
* Get the name of the connected database.
*
* @return string
* @static
*/
public static function getDatabaseName()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getDatabaseName();
}
/**
* Set the name of the connected database.
*
* @param string $database
* @return string
* @static
*/
public static function setDatabaseName($database)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::setDatabaseName($database);
}
/**
* Get the table prefix for the connection.
*
* @return string
* @static
*/
public static function getTablePrefix()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getTablePrefix();
}
/**
* Set the table prefix in use by the connection.
*
* @param string $prefix
* @return void
* @static
*/
public static function setTablePrefix($prefix)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
}
/**
* Set the table prefix and return the grammar.
*
* @param \Illuminate\Database\Grammar $grammar
* @return \Illuminate\Database\Grammar
* @static
*/
public static function withTablePrefix($grammar)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
}
/**
* Register a connection resolver.
*
* @param string $driver
* @param \Closure $callback
* @return void
* @static
*/
public static function resolverFor($driver, $callback)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
}
/**
* Get the connection resolver for the given driver.
*
* @param string $driver
* @return mixed
* @static
*/
public static function getResolver($driver)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::getResolver($driver);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
* @param int $attempts
* @return mixed
* @throws \Exception|\Throwable
* @static
*/
public static function transaction($callback, $attempts = 1)
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::transaction($callback, $attempts);
}
/**
* Start a new database transaction.
*
* @return void
* @throws \Exception
* @static
*/
public static function beginTransaction()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::beginTransaction();
}
/**
* Commit the active database transaction.
*
* @return void
* @static
*/
public static function commit()
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::commit();
}
/**
* Rollback the active database transaction.
*
* @param int|null $toLevel
* @return void
* @static
*/
public static function rollBack($toLevel = null)
{
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::rollBack($toLevel);
}
/**
* Get the number of active transactions.
*
* @return int
* @static
*/
public static function transactionLevel()
{
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::transactionLevel();
}
}
class Cache {
/**
* Get a cache store instance by name.
*
* @param string|null $name
* @return \Illuminate\Contracts\Cache\Repository
* @static
*/
public static function store($name = null)
{
return \Illuminate\Cache\CacheManager::store($name);
}
/**
* Get a cache driver instance.
*
* @param string $driver
* @return mixed
* @static
*/
public static function driver($driver = null)
{
return \Illuminate\Cache\CacheManager::driver($driver);
}
/**
* Create a new cache repository with the given implementation.
*
* @param \Illuminate\Contracts\Cache\Store $store
* @return \Illuminate\Cache\Repository
* @static
*/
public static function repository($store)
{
return \Illuminate\Cache\CacheManager::repository($store);
}
/**
* Get the default cache driver name.
*
* @return string
* @static
*/
public static function getDefaultDriver()
{
return \Illuminate\Cache\CacheManager::getDefaultDriver();
}
/**
* Set the default cache driver name.
*
* @param string $name
* @return void
* @static
*/
public static function setDefaultDriver($name)
{
\Illuminate\Cache\CacheManager::setDefaultDriver($name);
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param \Closure $callback
* @return $this
* @static
*/
public static function extend($driver, $callback)
{
return \Illuminate\Cache\CacheManager::extend($driver, $callback);
}
/**
* Determine if an item exists in the cache.
*
* @param string $key
* @return bool
* @static
*/
public static function has($key)
{
return \Illuminate\Cache\Repository::has($key);
}
/**
* Retrieve an item from the cache by key.
*
* @param string $key
* @param mixed $default
* @return mixed
* @static
*/
public static function get($key, $default = null)
{
return \Illuminate\Cache\Repository::get($key, $default);
}
/**
* Retrieve multiple items from the cache by key.
*
* Items not found in the cache will have a null value.
*
* @param array $keys
* @return array
* @static
*/
public static function many($keys)
{
return \Illuminate\Cache\Repository::many($keys);
}
/**
* Obtains multiple cache items by their unique keys.
*
* @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
* @param mixed $default Default value to return for keys that do not exist.
* @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
* @throws \Psr\SimpleCache\InvalidArgumentException
* MUST be thrown if $keys is neither an array nor a Traversable,
* or if any of the $keys are not a legal value.
* @static
*/
public static function getMultiple($keys, $default = null)
{
return \Illuminate\Cache\Repository::getMultiple($keys, $default);
}
/**
* Retrieve an item from the cache and delete it.
*
* @param string $key
* @param mixed $default
* @return mixed
* @static
*/
public static function pull($key, $default = null)
{
return \Illuminate\Cache\Repository::pull($key, $default);
}
/**
* Store an item in the cache.
*
* @param string $key
* @param mixed $value
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @return void
* @static
*/
public static function put($key, $value, $minutes = null)
{
\Illuminate\Cache\Repository::put($key, $value, $minutes);
}
/**
* Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
*
* @param string $key The key of the item to store.
* @param mixed $value The value of the item to store, must be serializable.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* the driver supports TTL then the library may set a default value
* for it or let the driver take care of that.
* @return bool True on success and false on failure.
* @throws \Psr\SimpleCache\InvalidArgumentException
* MUST be thrown if the $key string is not a legal value.
* @static
*/
public static function set($key, $value, $ttl = null)
{
return \Illuminate\Cache\Repository::set($key, $value, $ttl);
}
/**
* Store multiple items in the cache for a given number of minutes.
*
* @param array $values
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @return void
* @static
*/
public static function putMany($values, $minutes)
{
\Illuminate\Cache\Repository::putMany($values, $minutes);
}
/**
* Persists a set of key => value pairs in the cache, with an optional TTL.
*
* @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
* @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
* the driver supports TTL then the library may set a default value
* for it or let the driver take care of that.
* @return bool True on success and false on failure.
* @throws \Psr\SimpleCache\InvalidArgumentException
* MUST be thrown if $values is neither an array nor a Traversable,
* or if any of the $values are not a legal value.
* @static
*/
public static function setMultiple($values, $ttl = null)
{
return \Illuminate\Cache\Repository::setMultiple($values, $ttl);
}
/**
* Store an item in the cache if the key does not exist.
*
* @param string $key
* @param mixed $value
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @return bool
* @static
*/
public static function add($key, $value, $minutes)
{
return \Illuminate\Cache\Repository::add($key, $value, $minutes);
}
/**
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int|bool
* @static
*/
public static function increment($key, $value = 1)
{
return \Illuminate\Cache\Repository::increment($key, $value);
}
/**
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int|bool
* @static
*/
public static function decrement($key, $value = 1)
{
return \Illuminate\Cache\Repository::decrement($key, $value);
}
/**
* Store an item in the cache indefinitely.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function forever($key, $value)
{
\Illuminate\Cache\Repository::forever($key, $value);
}
/**
* Get an item from the cache, or store the default value.
*
* @param string $key
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @param \Closure $callback
* @return mixed
* @static
*/
public static function remember($key, $minutes, $callback)
{
return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
}
/**
* Get an item from the cache, or store the default value forever.
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @static
*/
public static function sear($key, $callback)
{
return \Illuminate\Cache\Repository::sear($key, $callback);
}
/**
* Get an item from the cache, or store the default value forever.
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @static
*/
public static function rememberForever($key, $callback)
{
return \Illuminate\Cache\Repository::rememberForever($key, $callback);
}
/**
* Remove an item from the cache.
*
* @param string $key
* @return bool
* @static
*/
public static function forget($key)
{
return \Illuminate\Cache\Repository::forget($key);
}
/**
* Delete an item from the cache by its unique key.
*
* @param string $key The unique cache key of the item to delete.
* @return bool True if the item was successfully removed. False if there was an error.
* @throws \Psr\SimpleCache\InvalidArgumentException
* MUST be thrown if the $key string is not a legal value.
* @static
*/
public static function delete($key)
{
return \Illuminate\Cache\Repository::delete($key);
}
/**
* Deletes multiple cache items in a single operation.
*
* @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
* @return bool True if the items were successfully removed. False if there was an error.
* @throws \Psr\SimpleCache\InvalidArgumentException
* MUST be thrown if $keys is neither an array nor a Traversable,
* or if any of the $keys are not a legal value.
* @static
*/
public static function deleteMultiple($keys)
{
return \Illuminate\Cache\Repository::deleteMultiple($keys);
}
/**
* Wipes clean the entire cache's keys.
*
* @return bool True on success and false on failure.
* @static
*/
public static function clear()
{
return \Illuminate\Cache\Repository::clear();
}
/**
* Begin executing a new tags operation if the store supports it.
*
* @param array|mixed $names
* @return \Illuminate\Cache\TaggedCache
* @throws \BadMethodCallException
* @static
*/
public static function tags($names)
{
return \Illuminate\Cache\Repository::tags($names);
}
/**
* Get the default cache time.
*
* @return float|int
* @static
*/
public static function getDefaultCacheTime()
{
return \Illuminate\Cache\Repository::getDefaultCacheTime();
}
/**
* Set the default cache time in minutes.
*
* @param float|int $minutes
* @return $this
* @static
*/
public static function setDefaultCacheTime($minutes)
{
return \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
}
/**
* Get the cache store implementation.
*
* @return \Illuminate\Contracts\Cache\Store
* @static
*/
public static function getStore()
{
return \Illuminate\Cache\Repository::getStore();
}
/**
* Set the event dispatcher instance.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
* @static
*/
public static function setEventDispatcher($events)
{
\Illuminate\Cache\Repository::setEventDispatcher($events);
}
/**
* Determine if a cached value exists.
*
* @param string $key
* @return bool
* @static
*/
public static function offsetExists($key)
{
return \Illuminate\Cache\Repository::offsetExists($key);
}
/**
* Retrieve an item from the cache by key.
*
* @param string $key
* @return mixed
* @static
*/
public static function offsetGet($key)
{
return \Illuminate\Cache\Repository::offsetGet($key);
}
/**
* Store an item in the cache for the default time.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function offsetSet($key, $value)
{
\Illuminate\Cache\Repository::offsetSet($key, $value);
}
/**
* Remove an item from the cache.
*
* @param string $key
* @return void
* @static
*/
public static function offsetUnset($key)
{
\Illuminate\Cache\Repository::offsetUnset($key);
}
/**
* Register a custom macro.
*
* @param string $name
* @param object|callable $macro
* @return void
* @static
*/
public static function macro($name, $macro)
{
\Illuminate\Cache\Repository::macro($name, $macro);
}
/**
* Mix another object into the class.
*
* @param object $mixin
* @return void
* @static
*/
public static function mixin($mixin)
{
\Illuminate\Cache\Repository::mixin($mixin);
}
/**
* Checks if macro is registered.
*
* @param string $name
* @return bool
* @static
*/
public static function hasMacro($name)
{
return \Illuminate\Cache\Repository::hasMacro($name);
}
/**
* Dynamically handle calls to the class.
*
* @param string $method
* @param array $parameters
* @return mixed
* @throws \BadMethodCallException
* @static
*/
public static function macroCall($method, $parameters)
{
return \Illuminate\Cache\Repository::macroCall($method, $parameters);
}
/**
* Remove all items from the cache.
*
* @return bool
* @static
*/
public static function flush()
{
return \Illuminate\Cache\FileStore::flush();
}
/**
* Get the Filesystem instance.
*
* @return \Illuminate\Filesystem\Filesystem
* @static
*/
public static function getFilesystem()
{
return \Illuminate\Cache\FileStore::getFilesystem();
}
/**
* Get the working directory of the cache.
*
* @return string
* @static
*/
public static function getDirectory()
{
return \Illuminate\Cache\FileStore::getDirectory();
}
/**
* Get the cache key prefix.
*
* @return string
* @static
*/
public static function getPrefix()
{
return \Illuminate\Cache\FileStore::getPrefix();
}
}
class Crypt {
/**
* Determine if the given key and cipher combination is valid.
*
* @param string $key
* @param string $cipher
* @return bool
* @static
*/
public static function supported($key, $cipher)
{
return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
}
/**
* Create a new encryption key for the given cipher.
*
* @param string $cipher
* @return string
* @static
*/
public static function generateKey($cipher)
{
return \Illuminate\Encryption\Encrypter::generateKey($cipher);
}
/**
* Encrypt the given value.
*
* @param mixed $value
* @param bool $serialize
* @return string
* @throws \Illuminate\Contracts\Encryption\EncryptException
* @static
*/
public static function encrypt($value, $serialize = true)
{
return \Illuminate\Encryption\Encrypter::encrypt($value, $serialize);
}
/**
* Encrypt a string without serialization.
*
* @param string $value
* @return string
* @static
*/
public static function encryptString($value)
{
return \Illuminate\Encryption\Encrypter::encryptString($value);
}
/**
* Decrypt the given value.
*
* @param mixed $payload
* @param bool $unserialize
* @return string
* @throws \Illuminate\Contracts\Encryption\DecryptException
* @static
*/
public static function decrypt($payload, $unserialize = true)
{
return \Illuminate\Encryption\Encrypter::decrypt($payload, $unserialize);
}
/**
* Decrypt the given string without unserialization.
*
* @param string $payload
* @return string
* @static
*/
public static function decryptString($payload)
{
return \Illuminate\Encryption\Encrypter::decryptString($payload);
}
/**
* Get the encryption key.
*
* @return string
* @static
*/
public static function getKey()
{
return \Illuminate\Encryption\Encrypter::getKey();
}
}
class Event {
/**
* Register an event listener with the dispatcher.
*
* @param string|array $events
* @param mixed $listener
* @return void
* @static
*/
public static function listen($events, $listener)
{
\Illuminate\Events\Dispatcher::listen($events, $listener);
}
/**
* Determine if a given event has listeners.
*
* @param string $eventName
* @return bool
* @static
*/
public static function hasListeners($eventName)
{
return \Illuminate\Events\Dispatcher::hasListeners($eventName);
}
/**
* Register an event and payload to be fired later.
*
* @param string $event
* @param array $payload
* @return void
* @static
*/
public static function push($event, $payload = array())
{
\Illuminate\Events\Dispatcher::push($event, $payload);
}
/**
* Flush a set of pushed events.
*
* @param string $event
* @return void
* @static
*/
public static function flush($event)
{
\Illuminate\Events\Dispatcher::flush($event);
}
/**
* Register an event subscriber with the dispatcher.
*
* @param object|string $subscriber
* @return void
* @static
*/
public static function subscribe($subscriber)
{
\Illuminate\Events\Dispatcher::subscribe($subscriber);
}
/**
* Fire an event until the first non-null response is returned.
*
* @param string|object $event
* @param mixed $payload
* @return array|null
* @static
*/
public static function until($event, $payload = array())
{
return \Illuminate\Events\Dispatcher::until($event, $payload);
}
/**
* Fire an event and call the listeners.
*
* @param string|object $event
* @param mixed $payload
* @param bool $halt
* @return array|null
* @static
*/
public static function fire($event, $payload = array(), $halt = false)
{
return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
}
/**
* Fire an event and call the listeners.
*
* @param string|object $event
* @param mixed $payload
* @param bool $halt
* @return array|null
* @static
*/
public static function dispatch($event, $payload = array(), $halt = false)
{
return \Illuminate\Events\Dispatcher::dispatch($event, $payload, $halt);
}
/**
* Get all of the listeners for a given event name.
*
* @param string $eventName
* @return array
* @static
*/
public static function getListeners($eventName)
{
return \Illuminate\Events\Dispatcher::getListeners($eventName);
}
/**
* Register an event listener with the dispatcher.
*
* @param \Closure|string $listener
* @param bool $wildcard
* @return \Closure
* @static
*/
public static function makeListener($listener, $wildcard = false)
{
return \Illuminate\Events\Dispatcher::makeListener($listener, $wildcard);
}
/**
* Create a class based listener using the IoC container.
*
* @param string $listener
* @param bool $wildcard
* @return \Closure
* @static
*/
public static function createClassListener($listener, $wildcard = false)
{
return \Illuminate\Events\Dispatcher::createClassListener($listener, $wildcard);
}
/**
* Remove a set of listeners from the dispatcher.
*
* @param string $event
* @return void
* @static
*/
public static function forget($event)
{
\Illuminate\Events\Dispatcher::forget($event);
}
/**
* Forget all of the pushed listeners.
*
* @return void
* @static
*/
public static function forgetPushed()
{
\Illuminate\Events\Dispatcher::forgetPushed();
}
/**
* Set the queue resolver implementation.
*
* @param callable $resolver
* @return $this
* @static
*/
public static function setQueueResolver($resolver)
{
return \Illuminate\Events\Dispatcher::setQueueResolver($resolver);
}
}
class Hash {
/**
* Hash the given value.
*
* @param string $value
* @param array $options
* @return string
* @throws \RuntimeException
* @static
*/
public static function make($value, $options = array())
{
return \Illuminate\Hashing\BcryptHasher::make($value, $options);
}
/**
* Check the given plain value against a hash.
*
* @param string $value
* @param string $hashedValue
* @param array $options
* @return bool
* @static
*/
public static function check($value, $hashedValue, $options = array())
{
return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
}
/**
* Check if the given hash has been hashed using the given options.
*
* @param string $hashedValue
* @param array $options
* @return bool
* @static
*/
public static function needsRehash($hashedValue, $options = array())
{
return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
}
/**
* Set the default password work factor.
*
* @param int $rounds
* @return $this
* @static
*/
public static function setRounds($rounds)
{
return \Illuminate\Hashing\BcryptHasher::setRounds($rounds);
}
}
class Log {
/**
* Adds a log record at the DEBUG level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function debug($message, $context = array())
{
return \Monolog\Logger::debug($message, $context);
}
/**
* Adds a log record at the INFO level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function info($message, $context = array())
{
return \Monolog\Logger::info($message, $context);
}
/**
* Adds a log record at the NOTICE level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function notice($message, $context = array())
{
return \Monolog\Logger::notice($message, $context);
}
/**
* Adds a log record at the WARNING level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function warning($message, $context = array())
{
return \Monolog\Logger::warning($message, $context);
}
/**
* Adds a log record at the ERROR level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function error($message, $context = array())
{
return \Monolog\Logger::error($message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function critical($message, $context = array())
{
return \Monolog\Logger::critical($message, $context);
}
/**
* Adds a log record at the ALERT level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function alert($message, $context = array())
{
return \Monolog\Logger::alert($message, $context);
}
/**
* Adds a log record at the EMERGENCY level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function emergency($message, $context = array())
{
return \Monolog\Logger::emergency($message, $context);
}
/**
*
*
* @return string
* @static
*/
public static function getName()
{
return \Monolog\Logger::getName();
}
/**
* Return a new cloned instance with the name changed
*
* @return static
* @static
*/
public static function withName($name)
{
return \Monolog\Logger::withName($name);
}
/**
* Pushes a handler on to the stack.
*
* @param \Monolog\HandlerInterface $handler
* @return $this
* @static
*/
public static function pushHandler($handler)
{
return \Monolog\Logger::pushHandler($handler);
}
/**
* Pops a handler from the stack
*
* @return \Monolog\HandlerInterface
* @static
*/
public static function popHandler()
{
return \Monolog\Logger::popHandler();
}
/**
* Set handlers, replacing all existing ones.
*
* If a map is passed, keys will be ignored.
*
* @param \Monolog\HandlerInterface[] $handlers
* @return $this
* @static
*/
public static function setHandlers($handlers)
{
return \Monolog\Logger::setHandlers($handlers);
}
/**
*
*
* @return \Monolog\HandlerInterface[]
* @static
*/
public static function getHandlers()
{
return \Monolog\Logger::getHandlers();
}
/**
* Adds a processor on to the stack.
*
* @param callable $callback
* @return $this
* @static
*/
public static function pushProcessor($callback)
{
return \Monolog\Logger::pushProcessor($callback);
}
/**
* Removes the processor on top of the stack and returns it.
*
* @return callable
* @static
*/
public static function popProcessor()
{
return \Monolog\Logger::popProcessor();
}
/**
*
*
* @return callable[]
* @static
*/
public static function getProcessors()
{
return \Monolog\Logger::getProcessors();
}
/**
* Control the use of microsecond resolution timestamps in the 'datetime'
* member of new records.
*
* Generating microsecond resolution timestamps by calling
* microtime(true), formatting the result via sprintf() and then parsing
* the resulting string via \DateTime::createFromFormat() can incur
* a measurable runtime overhead vs simple usage of DateTime to capture
* a second resolution timestamp in systems which generate a large number
* of log events.
*
* @param bool $micro True to use microtime() to create timestamps
* @static
*/
public static function useMicrosecondTimestamps($micro)
{
return \Monolog\Logger::useMicrosecondTimestamps($micro);
}
/**
* Adds a log record.
*
* @param int $level The logging level
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addRecord($level, $message, $context = array())
{
return \Monolog\Logger::addRecord($level, $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addDebug($message, $context = array())
{
return \Monolog\Logger::addDebug($message, $context);
}
/**
* Adds a log record at the INFO level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addInfo($message, $context = array())
{
return \Monolog\Logger::addInfo($message, $context);
}
/**
* Adds a log record at the NOTICE level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addNotice($message, $context = array())
{
return \Monolog\Logger::addNotice($message, $context);
}
/**
* Adds a log record at the WARNING level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addWarning($message, $context = array())
{
return \Monolog\Logger::addWarning($message, $context);
}
/**
* Adds a log record at the ERROR level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addError($message, $context = array())
{
return \Monolog\Logger::addError($message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addCritical($message, $context = array())
{
return \Monolog\Logger::addCritical($message, $context);
}
/**
* Adds a log record at the ALERT level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addAlert($message, $context = array())
{
return \Monolog\Logger::addAlert($message, $context);
}
/**
* Adds a log record at the EMERGENCY level.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function addEmergency($message, $context = array())
{
return \Monolog\Logger::addEmergency($message, $context);
}
/**
* Gets all supported logging levels.
*
* @return array Assoc array with human-readable level names => level codes.
* @static
*/
public static function getLevels()
{
return \Monolog\Logger::getLevels();
}
/**
* Gets the name of the logging level.
*
* @param int $level
* @return string
* @static
*/
public static function getLevelName($level)
{
return \Monolog\Logger::getLevelName($level);
}
/**
* Converts PSR-3 levels to Monolog ones if necessary
*
* @param string|int Level number (monolog) or name (PSR-3)
* @return int
* @static
*/
public static function toMonologLevel($level)
{
return \Monolog\Logger::toMonologLevel($level);
}
/**
* Checks whether the Logger has a handler that listens on the given level
*
* @param int $level
* @return Boolean
* @static
*/
public static function isHandling($level)
{
return \Monolog\Logger::isHandling($level);
}
/**
* Adds a log record at an arbitrary level.
*
* This method allows for compatibility with common interfaces.
*
* @param mixed $level The log level
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function log($level, $message, $context = array())
{
return \Monolog\Logger::log($level, $message, $context);
}
/**
* Adds a log record at the WARNING level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function warn($message, $context = array())
{
return \Monolog\Logger::warn($message, $context);
}
/**
* Adds a log record at the ERROR level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function err($message, $context = array())
{
return \Monolog\Logger::err($message, $context);
}
/**
* Adds a log record at the CRITICAL level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function crit($message, $context = array())
{
return \Monolog\Logger::crit($message, $context);
}
/**
* Adds a log record at the EMERGENCY level.
*
* This method allows for compatibility with common interfaces.
*
* @param string $message The log message
* @param array $context The log context
* @return Boolean Whether the record has been processed
* @static
*/
public static function emerg($message, $context = array())
{
return \Monolog\Logger::emerg($message, $context);
}
/**
* Set the timezone to be used for the timestamp of log records.
*
* This is stored globally for all Logger instances
*
* @param \DateTimeZone $tz Timezone object
* @static
*/
public static function setTimezone($tz)
{
return \Monolog\Logger::setTimezone($tz);
}
}
class Queue {
/**
* Register an event listener for the before job event.
*
* @param mixed $callback
* @return void
* @static
*/
public static function before($callback)
{
\Illuminate\Queue\QueueManager::before($callback);
}
/**
* Register an event listener for the after job event.
*
* @param mixed $callback
* @return void
* @static
*/
public static function after($callback)
{
\Illuminate\Queue\QueueManager::after($callback);
}
/**
* Register an event listener for the exception occurred job event.
*
* @param mixed $callback
* @return void
* @static
*/
public static function exceptionOccurred($callback)
{
\Illuminate\Queue\QueueManager::exceptionOccurred($callback);
}
/**
* Register an event listener for the daemon queue loop.
*
* @param mixed $callback
* @return void
* @static
*/
public static function looping($callback)
{
\Illuminate\Queue\QueueManager::looping($callback);
}
/**
* Register an event listener for the failed job event.
*
* @param mixed $callback
* @return void
* @static
*/
public static function failing($callback)
{
\Illuminate\Queue\QueueManager::failing($callback);
}
/**
* Register an event listener for the daemon queue stopping.
*
* @param mixed $callback
* @return void
* @static
*/
public static function stopping($callback)
{
\Illuminate\Queue\QueueManager::stopping($callback);
}
/**
* Determine if the driver is connected.
*
* @param string $name
* @return bool
* @static
*/
public static function connected($name = null)
{
return \Illuminate\Queue\QueueManager::connected($name);
}
/**
* Resolve a queue connection instance.
*
* @param string $name
* @return \Illuminate\Contracts\Queue\Queue
* @static
*/
public static function connection($name = null)
{
return \Illuminate\Queue\QueueManager::connection($name);
}
/**
* Add a queue connection resolver.
*
* @param string $driver
* @param \Closure $resolver
* @return void
* @static
*/
public static function extend($driver, $resolver)
{
\Illuminate\Queue\QueueManager::extend($driver, $resolver);
}
/**
* Add a queue connection resolver.
*
* @param string $driver
* @param \Closure $resolver
* @return void
* @static
*/
public static function addConnector($driver, $resolver)
{
\Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
}
/**
* Get the name of the default queue connection.
*
* @return string
* @static
*/
public static function getDefaultDriver()
{
return \Illuminate\Queue\QueueManager::getDefaultDriver();
}
/**
* Set the name of the default queue connection.
*
* @param string $name
* @return void
* @static
*/
public static function setDefaultDriver($name)
{
\Illuminate\Queue\QueueManager::setDefaultDriver($name);
}
/**
* Get the full name for the given connection.
*
* @param string $connection
* @return string
* @static
*/
public static function getName($connection = null)
{
return \Illuminate\Queue\QueueManager::getName($connection);
}
/**
* Determine if the application is in maintenance mode.
*
* @return bool
* @static
*/
public static function isDownForMaintenance()
{
return \Illuminate\Queue\QueueManager::isDownForMaintenance();
}
/**
* Get the size of the queue.
*
* @param string $queue
* @return int
* @static
*/
public static function size($queue = null)
{
return \Illuminate\Queue\SyncQueue::size($queue);
}
/**
* Push a new job onto the queue.
*
* @param string $job
* @param mixed $data
* @param string $queue
* @return mixed
* @throws \Exception|\Throwable
* @static
*/
public static function push($job, $data = '', $queue = null)
{
return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
}
/**
* Push a raw payload onto the queue.
*
* @param string $payload
* @param string $queue
* @param array $options
* @return mixed
* @static
*/
public static function pushRaw($payload, $queue = null, $options = array())
{
return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
}
/**
* Push a new job onto the queue after a delay.
*
* @param \DateTimeInterface|\DateInterval|int $delay
* @param string $job
* @param mixed $data
* @param string $queue
* @return mixed
* @static
*/
public static function later($delay, $job, $data = '', $queue = null)
{
return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
}
/**
* Pop the next job off of the queue.
*
* @param string $queue
* @return \Illuminate\Contracts\Queue\Job|null
* @static
*/
public static function pop($queue = null)
{
return \Illuminate\Queue\SyncQueue::pop($queue);
}
/**
* Push a new job onto the queue.
*
* @param string $queue
* @param string $job
* @param mixed $data
* @return mixed
* @static
*/
public static function pushOn($queue, $job, $data = '')
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::pushOn($queue, $job, $data);
}
/**
* Push a new job onto the queue after a delay.
*
* @param string $queue
* @param \DateTimeInterface|\DateInterval|int $delay
* @param string $job
* @param mixed $data
* @return mixed
* @static
*/
public static function laterOn($queue, $delay, $job, $data = '')
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::laterOn($queue, $delay, $job, $data);
}
/**
* Push an array of jobs onto the queue.
*
* @param array $jobs
* @param mixed $data
* @param string $queue
* @return mixed
* @static
*/
public static function bulk($jobs, $data = '', $queue = null)
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
}
/**
* Get the expiration timestamp for an object-based queue handler.
*
* @param mixed $job
* @return mixed
* @static
*/
public static function getJobExpiration($job)
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::getJobExpiration($job);
}
/**
* Get the connection name for the queue.
*
* @return string
* @static
*/
public static function getConnectionName()
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::getConnectionName();
}
/**
* Set the connection name for the queue.
*
* @param string $name
* @return $this
* @static
*/
public static function setConnectionName($name)
{
//Method inherited from \Illuminate\Queue\Queue
return \Illuminate\Queue\SyncQueue::setConnectionName($name);
}
/**
* Set the IoC container instance.
*
* @param \Illuminate\Container\Container $container
* @return void
* @static
*/
public static function setContainer($container)
{
//Method inherited from \Illuminate\Queue\Queue
\Illuminate\Queue\SyncQueue::setContainer($container);
}
}
class Request {
/**
* Create a new Illuminate HTTP request from server variables.
*
* @return static
* @static
*/
public static function capture()
{
return \Illuminate\Http\Request::capture();
}
/**
* Return the Request instance.
*
* @return $this
* @static
*/
public static function instance()
{
return \Illuminate\Http\Request::instance();
}
/**
* Get the request method.
*
* @return string
* @static
*/
public static function method()
{
return \Illuminate\Http\Request::method();
}
/**
* Get the root URL for the application.
*
* @return string
* @static
*/
public static function root()
{
return \Illuminate\Http\Request::root();
}
/**
* Get the URL (no query string) for the request.
*
* @return string
* @static
*/
public static function url()
{
return \Illuminate\Http\Request::url();
}
/**
* Get the full URL for the request.
*
* @return string
* @static
*/
public static function fullUrl()
{
return \Illuminate\Http\Request::fullUrl();
}
/**
* Get the full URL for the request with the added query string parameters.
*
* @param array $query
* @return string
* @static
*/
public static function fullUrlWithQuery($query)
{
return \Illuminate\Http\Request::fullUrlWithQuery($query);
}
/**
* Get the current path info for the request.
*
* @return string
* @static
*/
public static function path()
{
return \Illuminate\Http\Request::path();
}
/**
* Get the current decoded path info for the request.
*
* @return string
* @static
*/
public static function decodedPath()
{
return \Illuminate\Http\Request::decodedPath();
}
/**
* Get a segment from the URI (1 based index).
*
* @param int $index
* @param string|null $default
* @return string|null
* @static
*/
public static function segment($index, $default = null)
{
return \Illuminate\Http\Request::segment($index, $default);
}
/**
* Get all of the segments for the request path.
*
* @return array
* @static
*/
public static function segments()
{
return \Illuminate\Http\Request::segments();
}
/**
* Determine if the current request URI matches a pattern.
*
* @param mixed $patterns
* @return bool
* @static
*/
public static function is($patterns = null)
{
return \Illuminate\Http\Request::is($patterns);
}
/**
* Determine if the route name matches a given pattern.
*
* @param mixed $patterns
* @return bool
* @static
*/
public static function routeIs($patterns = null)
{
return \Illuminate\Http\Request::routeIs($patterns);
}
/**
* Determine if the current request URL and query string matches a pattern.
*
* @param mixed $patterns
* @return bool
* @static
*/
public static function fullUrlIs($patterns = null)
{
return \Illuminate\Http\Request::fullUrlIs($patterns);
}
/**
* Determine if the request is the result of an AJAX call.
*
* @return bool
* @static
*/
public static function ajax()
{
return \Illuminate\Http\Request::ajax();
}
/**
* Determine if the request is the result of an PJAX call.
*
* @return bool
* @static
*/
public static function pjax()
{
return \Illuminate\Http\Request::pjax();
}
/**
* Determine if the request is over HTTPS.
*
* @return bool
* @static
*/
public static function secure()
{
return \Illuminate\Http\Request::secure();
}
/**
* Get the client IP address.
*
* @return string
* @static
*/
public static function ip()
{
return \Illuminate\Http\Request::ip();
}
/**
* Get the client IP addresses.
*
* @return array
* @static
*/
public static function ips()
{
return \Illuminate\Http\Request::ips();
}
/**
* Get the client user agent.
*
* @return string
* @static
*/
public static function userAgent()
{
return \Illuminate\Http\Request::userAgent();
}
/**
* Merge new input into the current request's input array.
*
* @param array $input
* @return \Illuminate\Http\Request
* @static
*/
public static function merge($input)
{
return \Illuminate\Http\Request::merge($input);
}
/**
* Replace the input for the current request.
*
* @param array $input
* @return \Illuminate\Http\Request
* @static
*/
public static function replace($input)
{
return \Illuminate\Http\Request::replace($input);
}
/**
* Get the JSON payload for the request.
*
* @param string $key
* @param mixed $default
* @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
* @static
*/
public static function json($key = null, $default = null)
{
return \Illuminate\Http\Request::json($key, $default);
}
/**
* Create an Illuminate request from a Symfony instance.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Illuminate\Http\Request
* @static
*/
public static function createFromBase($request)
{
return \Illuminate\Http\Request::createFromBase($request);
}
/**
* Clones a request and overrides some of its parameters.
*
* @param array $query The GET parameters
* @param array $request The POST parameters
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
* @param array $cookies The COOKIE parameters
* @param array $files The FILES parameters
* @param array $server The SERVER parameters
* @return static
* @static
*/
public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
{
return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
}
/**
* Get the session associated with the request.
*
* @return \Illuminate\Session\Store
* @throws \RuntimeException
* @static
*/
public static function session()
{
return \Illuminate\Http\Request::session();
}
/**
* Set the session instance on the request.
*
* @param \Illuminate\Contracts\Session\Session $session
* @return void
* @static
*/
public static function setLaravelSession($session)
{
\Illuminate\Http\Request::setLaravelSession($session);
}
/**
* Get the user making the request.
*
* @param string|null $guard
* @return mixed
* @static
*/
public static function user($guard = null)
{
return \Illuminate\Http\Request::user($guard);
}
/**
* Get the route handling the request.
*
* @param string|null $param
* @return \Illuminate\Routing\Route|object|string
* @static
*/
public static function route($param = null)
{
return \Illuminate\Http\Request::route($param);
}
/**
* Get a unique fingerprint for the request / route / IP address.
*
* @return string
* @throws \RuntimeException
* @static
*/
public static function fingerprint()
{
return \Illuminate\Http\Request::fingerprint();
}
/**
* Set the JSON payload for the request.
*
* @param \Symfony\Component\HttpFoundation\ParameterBag $json
* @return $this
* @static
*/
public static function setJson($json)
{
return \Illuminate\Http\Request::setJson($json);
}
/**
* Get the user resolver callback.
*
* @return \Closure
* @static
*/
public static function getUserResolver()
{
return \Illuminate\Http\Request::getUserResolver();
}
/**
* Set the user resolver callback.
*
* @param \Closure $callback
* @return $this
* @static
*/
public static function setUserResolver($callback)
{
return \Illuminate\Http\Request::setUserResolver($callback);
}
/**
* Get the route resolver callback.
*
* @return \Closure
* @static
*/
public static function getRouteResolver()
{
return \Illuminate\Http\Request::getRouteResolver();
}
/**
* Set the route resolver callback.
*
* @param \Closure $callback
* @return $this
* @static
*/
public static function setRouteResolver($callback)
{
return \Illuminate\Http\Request::setRouteResolver($callback);
}
/**
* Get all of the input and files for the request.
*
* @return array
* @static
*/
public static function toArray()
{
return \Illuminate\Http\Request::toArray();
}
/**
* Determine if the given offset exists.
*
* @param string $offset
* @return bool
* @static
*/
public static function offsetExists($offset)
{
return \Illuminate\Http\Request::offsetExists($offset);
}
/**
* Get the value at the given offset.
*
* @param string $offset
* @return mixed
* @static
*/
public static function offsetGet($offset)
{
return \Illuminate\Http\Request::offsetGet($offset);
}
/**
* Set the value at the given offset.
*
* @param string $offset
* @param mixed $value
* @return void
* @static
*/
public static function offsetSet($offset, $value)
{
\Illuminate\Http\Request::offsetSet($offset, $value);
}
/**
* Remove the value at the given offset.
*
* @param string $offset
* @return void
* @static
*/
public static function offsetUnset($offset)
{
\Illuminate\Http\Request::offsetUnset($offset);
}
/**
* Sets the parameters for this request.
*
* This method also re-initializes all properties.
*
* @param array $query The GET parameters
* @param array $request The POST parameters
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
* @param array $cookies The COOKIE parameters
* @param array $files The FILES parameters
* @param array $server The SERVER parameters
* @param string|resource|null $content The raw body data
* @static
*/
public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
}
/**
* Creates a new request with values from PHP's super globals.
*
* @return static
* @static
*/
public static function createFromGlobals()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::createFromGlobals();
}
/**
* Creates a Request based on a given URI and configuration.
*
* The information contained in the URI always take precedence
* over the other information (server and parameters).
*
* @param string $uri The URI
* @param string $method The HTTP method
* @param array $parameters The query (GET) or request (POST) parameters
* @param array $cookies The request cookies ($_COOKIE)
* @param array $files The request files ($_FILES)
* @param array $server The server parameters ($_SERVER)
* @param string|resource|null $content The raw body data
* @return static
* @static
*/
public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
}
/**
* Sets a callable able to create a Request instance.
*
* This is mainly useful when you need to override the Request class
* to keep BC with an existing system. It should not be used for any
* other purpose.
*
* @param callable|null $callable A PHP callable
* @static
*/
public static function setFactory($callable)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setFactory($callable);
}
/**
* Overrides the PHP global variables according to this request instance.
*
* It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
* $_FILES is never overridden, see rfc1867
*
* @static
*/
public static function overrideGlobals()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::overrideGlobals();
}
/**
* Sets a list of trusted proxies.
*
* You should only list the reverse proxies that you manage directly.
*
* @param array $proxies A list of trusted proxies
* @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
* @throws \InvalidArgumentException When $trustedHeaderSet is invalid
* @static
*/
public static function setTrustedProxies($proxies)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setTrustedProxies($proxies);
}
/**
* Gets the list of trusted proxies.
*
* @return array An array of trusted proxies
* @static
*/
public static function getTrustedProxies()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getTrustedProxies();
}
/**
* Gets the set of trusted headers from trusted proxies.
*
* @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
* @static
*/
public static function getTrustedHeaderSet()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getTrustedHeaderSet();
}
/**
* Sets a list of trusted host patterns.
*
* You should only list the hosts you manage using regexs.
*
* @param array $hostPatterns A list of trusted host patterns
* @static
*/
public static function setTrustedHosts($hostPatterns)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
}
/**
* Gets the list of trusted host patterns.
*
* @return array An array of trusted host patterns
* @static
*/
public static function getTrustedHosts()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getTrustedHosts();
}
/**
* Sets the name for trusted headers.
*
* The following header keys are supported:
*
* * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
* * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
* * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
* * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
* * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
*
* Setting an empty value allows to disable the trusted header for the given key.
*
* @param string $key The header key
* @param string $value The header name
* @throws \InvalidArgumentException
* @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
* @static
*/
public static function setTrustedHeaderName($key, $value)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
}
/**
* Gets the trusted proxy header name.
*
* @param string $key The header key
* @return string The header name
* @throws \InvalidArgumentException
* @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
* @static
*/
public static function getTrustedHeaderName($key)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getTrustedHeaderName($key);
}
/**
* Normalizes a query string.
*
* It builds a normalized query string, where keys/value pairs are alphabetized,
* have consistent escaping and unneeded delimiters are removed.
*
* @param string $qs Query string
* @return string A normalized query string for the Request
* @static
*/
public static function normalizeQueryString($qs)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::normalizeQueryString($qs);
}
/**
* Enables support for the _method request parameter to determine the intended HTTP method.
*
* Be warned that enabling this feature might lead to CSRF issues in your code.
* Check that you are using CSRF tokens when required.
* If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
* and used to send a "PUT" or "DELETE" request via the _method request parameter.
* If these methods are not protected against CSRF, this presents a possible vulnerability.
*
* The HTTP method can only be overridden when the real HTTP method is POST.
*
* @static
*/
public static function enableHttpMethodParameterOverride()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
}
/**
* Checks whether support for the _method request parameter is enabled.
*
* @return bool True when the _method request parameter is enabled, false otherwise
* @static
*/
public static function getHttpMethodParameterOverride()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getHttpMethodParameterOverride();
}
/**
* Gets a "parameter" value from any bag.
*
* This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
* flexibility in controllers, it is better to explicitly get request parameters from the appropriate
* public property instead (attributes, query, request).
*
* Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
*
* @param string $key The key
* @param mixed $default The default value if the parameter key does not exist
* @return mixed
* @static
*/
public static function get($key, $default = null)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::get($key, $default);
}
/**
* Gets the Session.
*
* @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
* @static
*/
public static function getSession()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getSession();
}
/**
* Whether the request contains a Session which was started in one of the
* previous requests.
*
* @return bool
* @static
*/
public static function hasPreviousSession()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::hasPreviousSession();
}
/**
* Whether the request contains a Session object.
*
* This method does not give any information about the state of the session object,
* like whether the session is started or not. It is just a way to check if this Request
* is associated with a Session instance.
*
* @return bool true when the Request contains a Session object, false otherwise
* @static
*/
public static function hasSession()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::hasSession();
}
/**
* Sets the Session.
*
* @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
* @static
*/
public static function setSession($session)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setSession($session);
}
/**
* Returns the client IP addresses.
*
* In the returned array the most trusted IP address is first, and the
* least trusted one last. The "real" client IP address is the last one,
* but this is also the least trusted one. Trusted proxies are stripped.
*
* Use this method carefully; you should use getClientIp() instead.
*
* @return array The client IP addresses
* @see getClientIp()
* @static
*/
public static function getClientIps()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getClientIps();
}
/**
* Returns the client IP address.
*
* This method can read the client IP address from the "X-Forwarded-For" header
* when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
* header value is a comma+space separated list of IP addresses, the left-most
* being the original client, and each successive proxy that passed the request
* adding the IP address where it received the request from.
*
* If your reverse proxy uses a different header name than "X-Forwarded-For",
* ("Client-Ip" for instance), configure it via the $trustedHeaderSet
* argument of the Request::setTrustedProxies() method instead.
*
* @return string|null The client IP address
* @see getClientIps()
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
* @static
*/
public static function getClientIp()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getClientIp();
}
/**
* Returns current script name.
*
* @return string
* @static
*/
public static function getScriptName()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getScriptName();
}
/**
* Returns the path being requested relative to the executed script.
*
* The path info always starts with a /.
*
* Suppose this request is instantiated from /mysite on localhost:
*
* * http://localhost/mysite returns an empty string
* * http://localhost/mysite/about returns '/about'
* * http://localhost/mysite/enco%20ded returns '/enco%20ded'
* * http://localhost/mysite/about?var=1 returns '/about'
*
* @return string The raw path (i.e. not urldecoded)
* @static
*/
public static function getPathInfo()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getPathInfo();
}
/**
* Returns the root path from which this request is executed.
*
* Suppose that an index.php file instantiates this request object:
*
* * http://localhost/index.php returns an empty string
* * http://localhost/index.php/page returns an empty string
* * http://localhost/web/index.php returns '/web'
* * http://localhost/we%20b/index.php returns '/we%20b'
*
* @return string The raw path (i.e. not urldecoded)
* @static
*/
public static function getBasePath()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getBasePath();
}
/**
* Returns the root URL from which this request is executed.
*
* The base URL never ends with a /.
*
* This is similar to getBasePath(), except that it also includes the
* script filename (e.g. index.php) if one exists.
*
* @return string The raw URL (i.e. not urldecoded)
* @static
*/
public static function getBaseUrl()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getBaseUrl();
}
/**
* Gets the request's scheme.
*
* @return string
* @static
*/
public static function getScheme()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getScheme();
}
/**
* Returns the port on which the request is made.
*
* This method can read the client port from the "X-Forwarded-Port" header
* when trusted proxies were set via "setTrustedProxies()".
*
* The "X-Forwarded-Port" header must contain the client port.
*
* If your reverse proxy uses a different header name than "X-Forwarded-Port",
* configure it via via the $trustedHeaderSet argument of the
* Request::setTrustedProxies() method instead.
*
* @return int|string can be a string if fetched from the server bag
* @static
*/
public static function getPort()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getPort();
}
/**
* Returns the user.
*
* @return string|null
* @static
*/
public static function getUser()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getUser();
}
/**
* Returns the password.
*
* @return string|null
* @static
*/
public static function getPassword()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getPassword();
}
/**
* Gets the user info.
*
* @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
* @static
*/
public static function getUserInfo()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getUserInfo();
}
/**
* Returns the HTTP host being requested.
*
* The port name will be appended to the host if it's non-standard.
*
* @return string
* @static
*/
public static function getHttpHost()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getHttpHost();
}
/**
* Returns the requested URI (path and query string).
*
* @return string The raw URI (i.e. not URI decoded)
* @static
*/
public static function getRequestUri()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getRequestUri();
}
/**
* Gets the scheme and HTTP host.
*
* If the URL was called with basic authentication, the user
* and the password are not added to the generated string.
*
* @return string The scheme and HTTP host
* @static
*/
public static function getSchemeAndHttpHost()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getSchemeAndHttpHost();
}
/**
* Generates a normalized URI (URL) for the Request.
*
* @return string A normalized URI (URL) for the Request
* @see getQueryString()
* @static
*/
public static function getUri()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getUri();
}
/**
* Generates a normalized URI for the given path.
*
* @param string $path A path to use instead of the current one
* @return string The normalized URI for the path
* @static
*/
public static function getUriForPath($path)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getUriForPath($path);
}
/**
* Returns the path as relative reference from the current Request path.
*
* Only the URIs path component (no schema, host etc.) is relevant and must be given.
* Both paths must be absolute and not contain relative parts.
* Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
* Furthermore, they can be used to reduce the link size in documents.
*
* Example target paths, given a base path of "/a/b/c/d":
* - "/a/b/c/d" -> ""
* - "/a/b/c/" -> "./"
* - "/a/b/" -> "../"
* - "/a/b/c/other" -> "other"
* - "/a/x/y" -> "../../x/y"
*
* @param string $path The target path
* @return string The relative target path
* @static
*/
public static function getRelativeUriForPath($path)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getRelativeUriForPath($path);
}
/**
* Generates the normalized query string for the Request.
*
* It builds a normalized query string, where keys/value pairs are alphabetized
* and have consistent escaping.
*
* @return string|null A normalized query string for the Request
* @static
*/
public static function getQueryString()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getQueryString();
}
/**
* Checks whether the request is secure or not.
*
* This method can read the client protocol from the "X-Forwarded-Proto" header
* when trusted proxies were set via "setTrustedProxies()".
*
* The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
*
* If your reverse proxy uses a different header name than "X-Forwarded-Proto"
* ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
* argument of the Request::setTrustedProxies() method instead.
*
* @return bool
* @static
*/
public static function isSecure()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isSecure();
}
/**
* Returns the host name.
*
* This method can read the client host name from the "X-Forwarded-Host" header
* when trusted proxies were set via "setTrustedProxies()".
*
* The "X-Forwarded-Host" header must contain the client host name.
*
* If your reverse proxy uses a different header name than "X-Forwarded-Host",
* configure it via the $trustedHeaderSet argument of the
* Request::setTrustedProxies() method instead.
*
* @return string
* @throws SuspiciousOperationException when the host name is invalid or not trusted
* @static
*/
public static function getHost()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getHost();
}
/**
* Sets the request method.
*
* @param string $method
* @static
*/
public static function setMethod($method)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setMethod($method);
}
/**
* Gets the request "intended" method.
*
* If the X-HTTP-Method-Override header is set, and if the method is a POST,
* then it is used to determine the "real" intended HTTP method.
*
* The _method request parameter can also be used to determine the HTTP method,
* but only if enableHttpMethodParameterOverride() has been called.
*
* The method is always an uppercased string.
*
* @return string The request method
* @see getRealMethod()
* @static
*/
public static function getMethod()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getMethod();
}
/**
* Gets the "real" request method.
*
* @return string The request method
* @see getMethod()
* @static
*/
public static function getRealMethod()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getRealMethod();
}
/**
* Gets the mime type associated with the format.
*
* @param string $format The format
* @return string|null The associated mime type (null if not found)
* @static
*/
public static function getMimeType($format)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getMimeType($format);
}
/**
* Gets the mime types associated with the format.
*
* @param string $format The format
* @return array The associated mime types
* @static
*/
public static function getMimeTypes($format)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getMimeTypes($format);
}
/**
* Gets the format associated with the mime type.
*
* @param string $mimeType The associated mime type
* @return string|null The format (null if not found)
* @static
*/
public static function getFormat($mimeType)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getFormat($mimeType);
}
/**
* Associates a format with mime types.
*
* @param string $format The format
* @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
* @static
*/
public static function setFormat($format, $mimeTypes)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
}
/**
* Gets the request format.
*
* Here is the process to determine the format:
*
* * format defined by the user (with setRequestFormat())
* * _format request attribute
* * $default
*
* @param string $default The default format
* @return string The request format
* @static
*/
public static function getRequestFormat($default = 'html')
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getRequestFormat($default);
}
/**
* Sets the request format.
*
* @param string $format The request format
* @static
*/
public static function setRequestFormat($format)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setRequestFormat($format);
}
/**
* Gets the format associated with the request.
*
* @return string|null The format (null if no content type is present)
* @static
*/
public static function getContentType()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getContentType();
}
/**
* Sets the default locale.
*
* @param string $locale
* @static
*/
public static function setDefaultLocale($locale)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setDefaultLocale($locale);
}
/**
* Get the default locale.
*
* @return string
* @static
*/
public static function getDefaultLocale()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getDefaultLocale();
}
/**
* Sets the locale.
*
* @param string $locale
* @static
*/
public static function setLocale($locale)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::setLocale($locale);
}
/**
* Get the locale.
*
* @return string
* @static
*/
public static function getLocale()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getLocale();
}
/**
* Checks if the request method is of specified type.
*
* @param string $method Uppercase request method (GET, POST etc)
* @return bool
* @static
*/
public static function isMethod($method)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isMethod($method);
}
/**
* Checks whether or not the method is safe.
*
* @see https://tools.ietf.org/html/rfc7231#section-4.2.1
* @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
* @return bool
* @static
*/
public static function isMethodSafe()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isMethodSafe();
}
/**
* Checks whether or not the method is idempotent.
*
* @return bool
* @static
*/
public static function isMethodIdempotent()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isMethodIdempotent();
}
/**
* Checks whether the method is cacheable or not.
*
* @see https://tools.ietf.org/html/rfc7231#section-4.2.3
* @return bool
* @static
*/
public static function isMethodCacheable()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isMethodCacheable();
}
/**
* Returns the protocol version.
*
* If the application is behind a proxy, the protocol version used in the
* requests between the client and the proxy and between the proxy and the
* server might be different. This returns the former (from the "Via" header)
* if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
* the latter (from the "SERVER_PROTOCOL" server parameter).
*
* @return string
* @static
*/
public static function getProtocolVersion()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getProtocolVersion();
}
/**
* Returns the request body content.
*
* @param bool $asResource If true, a resource will be returned
* @return string|resource The request body content or a resource to read the body stream
* @throws \LogicException
* @static
*/
public static function getContent($asResource = false)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getContent($asResource);
}
/**
* Gets the Etags.
*
* @return array The entity tags
* @static
*/
public static function getETags()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getETags();
}
/**
*
*
* @return bool
* @static
*/
public static function isNoCache()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isNoCache();
}
/**
* Returns the preferred language.
*
* @param array $locales An array of ordered available locales
* @return string|null The preferred locale
* @static
*/
public static function getPreferredLanguage($locales = null)
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getPreferredLanguage($locales);
}
/**
* Gets a list of languages acceptable by the client browser.
*
* @return array Languages ordered in the user browser preferences
* @static
*/
public static function getLanguages()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getLanguages();
}
/**
* Gets a list of charsets acceptable by the client browser.
*
* @return array List of charsets in preferable order
* @static
*/
public static function getCharsets()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getCharsets();
}
/**
* Gets a list of encodings acceptable by the client browser.
*
* @return array List of encodings in preferable order
* @static
*/
public static function getEncodings()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getEncodings();
}
/**
* Gets a list of content types acceptable by the client browser.
*
* @return array List of content types in preferable order
* @static
*/
public static function getAcceptableContentTypes()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::getAcceptableContentTypes();
}
/**
* Returns true if the request is a XMLHttpRequest.
*
* It works if your JavaScript library sets an X-Requested-With HTTP header.
* It is known to work with common JavaScript frameworks:
*
* @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
* @return bool true if the request is an XMLHttpRequest, false otherwise
* @static
*/
public static function isXmlHttpRequest()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isXmlHttpRequest();
}
/**
* Indicates whether this request originated from a trusted proxy.
*
* This can be useful to determine whether or not to trust the
* contents of a proxy-specific header.
*
* @return bool true if the request came from a trusted proxy, false otherwise
* @static
*/
public static function isFromTrustedProxy()
{
//Method inherited from \Symfony\Component\HttpFoundation\Request
return \Illuminate\Http\Request::isFromTrustedProxy();
}
/**
* Determine if the given content types match.
*
* @param string $actual
* @param string $type
* @return bool
* @static
*/
public static function matchesType($actual, $type)
{
return \Illuminate\Http\Request::matchesType($actual, $type);
}
/**
* Determine if the request is sending JSON.
*
* @return bool
* @static
*/
public static function isJson()
{
return \Illuminate\Http\Request::isJson();
}
/**
* Determine if the current request probably expects a JSON response.
*
* @return bool
* @static
*/
public static function expectsJson()
{
return \Illuminate\Http\Request::expectsJson();
}
/**
* Determine if the current request is asking for JSON in return.
*
* @return bool
* @static
*/
public static function wantsJson()
{
return \Illuminate\Http\Request::wantsJson();
}
/**
* Determines whether the current requests accepts a given content type.
*
* @param string|array $contentTypes
* @return bool
* @static
*/
public static function accepts($contentTypes)
{
return \Illuminate\Http\Request::accepts($contentTypes);
}
/**
* Return the most suitable content type from the given array based on content negotiation.
*
* @param string|array $contentTypes
* @return string|null
* @static
*/
public static function prefers($contentTypes)
{
return \Illuminate\Http\Request::prefers($contentTypes);
}
/**
* Determines whether a request accepts JSON.
*
* @return bool
* @static
*/
public static function acceptsJson()
{
return \Illuminate\Http\Request::acceptsJson();
}
/**
* Determines whether a request accepts HTML.
*
* @return bool
* @static
*/
public static function acceptsHtml()
{
return \Illuminate\Http\Request::acceptsHtml();
}
/**
* Get the data format expected in the response.
*
* @param string $default
* @return string
* @static
*/
public static function format($default = 'html')
{
return \Illuminate\Http\Request::format($default);
}
/**
* Retrieve an old input item.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function old($key = null, $default = null)
{
return \Illuminate\Http\Request::old($key, $default);
}
/**
* Flash the input for the current request to the session.
*
* @return void
* @static
*/
public static function flash()
{
\Illuminate\Http\Request::flash();
}
/**
* Flash only some of the input to the session.
*
* @param array|mixed $keys
* @return void
* @static
*/
public static function flashOnly($keys)
{
\Illuminate\Http\Request::flashOnly($keys);
}
/**
* Flash only some of the input to the session.
*
* @param array|mixed $keys
* @return void
* @static
*/
public static function flashExcept($keys)
{
\Illuminate\Http\Request::flashExcept($keys);
}
/**
* Flush all of the old input from the session.
*
* @return void
* @static
*/
public static function flush()
{
\Illuminate\Http\Request::flush();
}
/**
* Retrieve a server variable from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function server($key = null, $default = null)
{
return \Illuminate\Http\Request::server($key, $default);
}
/**
* Determine if a header is set on the request.
*
* @param string $key
* @return bool
* @static
*/
public static function hasHeader($key)
{
return \Illuminate\Http\Request::hasHeader($key);
}
/**
* Retrieve a header from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function header($key = null, $default = null)
{
return \Illuminate\Http\Request::header($key, $default);
}
/**
* Get the bearer token from the request headers.
*
* @return string|null
* @static
*/
public static function bearerToken()
{
return \Illuminate\Http\Request::bearerToken();
}
/**
* Determine if the request contains a given input item key.
*
* @param string|array $key
* @return bool
* @static
*/
public static function exists($key)
{
return \Illuminate\Http\Request::exists($key);
}
/**
* Determine if the request contains a given input item key.
*
* @param string|array $key
* @return bool
* @static
*/
public static function has($key)
{
return \Illuminate\Http\Request::has($key);
}
/**
* Determine if the request contains any of the given inputs.
*
* @param mixed $key
* @return bool
* @static
*/
public static function hasAny($keys = null)
{
return \Illuminate\Http\Request::hasAny($keys);
}
/**
* Determine if the request contains a non-empty value for an input item.
*
* @param string|array $key
* @return bool
* @static
*/
public static function filled($key)
{
return \Illuminate\Http\Request::filled($key);
}
/**
* Get the keys for all of the input and files.
*
* @return array
* @static
*/
public static function keys()
{
return \Illuminate\Http\Request::keys();
}
/**
* Get all of the input and files for the request.
*
* @param array|mixed $keys
* @return array
* @static
*/
public static function all($keys = null)
{
return \Illuminate\Http\Request::all($keys);
}
/**
* Retrieve an input item from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function input($key = null, $default = null)
{
return \Illuminate\Http\Request::input($key, $default);
}
/**
* Get a subset containing the provided keys with values from the input data.
*
* @param array|mixed $keys
* @return array
* @static
*/
public static function only($keys)
{
return \Illuminate\Http\Request::only($keys);
}
/**
* Get all of the input except for a specified array of items.
*
* @param array|mixed $keys
* @return array
* @static
*/
public static function except($keys)
{
return \Illuminate\Http\Request::except($keys);
}
/**
* Retrieve a query string item from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function query($key = null, $default = null)
{
return \Illuminate\Http\Request::query($key, $default);
}
/**
* Retrieve a request payload item from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function post($key = null, $default = null)
{
return \Illuminate\Http\Request::post($key, $default);
}
/**
* Determine if a cookie is set on the request.
*
* @param string $key
* @return bool
* @static
*/
public static function hasCookie($key)
{
return \Illuminate\Http\Request::hasCookie($key);
}
/**
* Retrieve a cookie from the request.
*
* @param string $key
* @param string|array|null $default
* @return string|array
* @static
*/
public static function cookie($key = null, $default = null)
{
return \Illuminate\Http\Request::cookie($key, $default);
}
/**
* Get an array of all of the files on the request.
*
* @return array
* @static
*/
public static function allFiles()
{
return \Illuminate\Http\Request::allFiles();
}
/**
* Determine if the uploaded data contains a file.
*
* @param string $key
* @return bool
* @static
*/
public static function hasFile($key)
{
return \Illuminate\Http\Request::hasFile($key);
}
/**
* Retrieve a file from the request.
*
* @param string $key
* @param mixed $default
* @return \Illuminate\Http\UploadedFile|array|null
* @static
*/
public static function file($key = null, $default = null)
{
return \Illuminate\Http\Request::file($key, $default);
}
/**
* Register a custom macro.
*
* @param string $name
* @param object|callable $macro
* @return void
* @static
*/
public static function macro($name, $macro)
{
\Illuminate\Http\Request::macro($name, $macro);
}
/**
* Mix another object into the class.
*
* @param object $mixin
* @return void
* @static
*/
public static function mixin($mixin)
{
\Illuminate\Http\Request::mixin($mixin);
}
/**
* Checks if macro is registered.
*
* @param string $name
* @return bool
* @static
*/
public static function hasMacro($name)
{
return \Illuminate\Http\Request::hasMacro($name);
}
/**
*
*
* @static
*/
public static function ids($field = 'ids')
{
return \Illuminate\Http\Request::ids($field);
}
/**
*
*
* @static
*/
public static function time($field)
{
return \Illuminate\Http\Request::time($field);
}
/**
*
*
* @static
*/
public static function import($keys = array())
{
return \Illuminate\Http\Request::import($keys);
}
}
class Schema {
/**
* Determine if the given table exists.
*
* @param string $table
* @return bool
* @static
*/
public static function hasTable($table)
{
return \Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
}
/**
* Get the column listing for a given table.
*
* @param string $table
* @return array
* @static
*/
public static function getColumnListing($table)
{
return \Illuminate\Database\Schema\MySqlBuilder::getColumnListing($table);
}
/**
* Drop all tables from the database.
*
* @return void
* @static
*/
public static function dropAllTables()
{
\Illuminate\Database\Schema\MySqlBuilder::dropAllTables();
}
/**
* Set the default string length for migrations.
*
* @param int $length
* @return void
* @static
*/
public static function defaultStringLength($length)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
}
/**
* Determine if the given table has a given column.
*
* @param string $table
* @param string $column
* @return bool
* @static
*/
public static function hasColumn($table, $column)
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
}
/**
* Determine if the given table has given columns.
*
* @param string $table
* @param array $columns
* @return bool
* @static
*/
public static function hasColumns($table, $columns)
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::hasColumns($table, $columns);
}
/**
* Get the data type for the given column name.
*
* @param string $table
* @param string $column
* @return string
* @static
*/
public static function getColumnType($table, $column)
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::getColumnType($table, $column);
}
/**
* Modify a table on the schema.
*
* @param string $table
* @param \Closure $callback
* @return void
* @static
*/
public static function table($table, $callback)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
}
/**
* Create a new table on the schema.
*
* @param string $table
* @param \Closure $callback
* @return void
* @static
*/
public static function create($table, $callback)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
}
/**
* Drop a table from the schema.
*
* @param string $table
* @return void
* @static
*/
public static function drop($table)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::drop($table);
}
/**
* Drop a table from the schema if it exists.
*
* @param string $table
* @return void
* @static
*/
public static function dropIfExists($table)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
}
/**
* Rename a table on the schema.
*
* @param string $from
* @param string $to
* @return void
* @static
*/
public static function rename($from, $to)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
}
/**
* Enable foreign key constraints.
*
* @return bool
* @static
*/
public static function enableForeignKeyConstraints()
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::enableForeignKeyConstraints();
}
/**
* Disable foreign key constraints.
*
* @return bool
* @static
*/
public static function disableForeignKeyConstraints()
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::disableForeignKeyConstraints();
}
/**
* Get the database connection instance.
*
* @return \Illuminate\Database\Connection
* @static
*/
public static function getConnection()
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::getConnection();
}
/**
* Set the database connection instance.
*
* @param \Illuminate\Database\Connection $connection
* @return $this
* @static
*/
public static function setConnection($connection)
{
//Method inherited from \Illuminate\Database\Schema\Builder
return \Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
}
/**
* Set the Schema Blueprint resolver callback.
*
* @param \Closure $resolver
* @return void
* @static
*/
public static function blueprintResolver($resolver)
{
//Method inherited from \Illuminate\Database\Schema\Builder
\Illuminate\Database\Schema\MySqlBuilder::blueprintResolver($resolver);
}
}
class Storage {
/**
* Get a filesystem instance.
*
* @param string $name
* @return \Illuminate\Contracts\Filesystem\Filesystem
* @static
*/
public static function drive($name = null)
{
return \Illuminate\Filesystem\FilesystemManager::drive($name);
}
/**
* Get a filesystem instance.
*
* @param string $name
* @return \Illuminate\Contracts\Filesystem\Filesystem
* @static
*/
public static function disk($name = null)
{
return \Illuminate\Filesystem\FilesystemManager::disk($name);
}
/**
* Get a default cloud filesystem instance.
*
* @return \Illuminate\Contracts\Filesystem\Filesystem
* @static
*/
public static function cloud()
{
return \Illuminate\Filesystem\FilesystemManager::cloud();
}
/**
* Create an instance of the local driver.
*
* @param array $config
* @return \Illuminate\Contracts\Filesystem\Filesystem
* @static
*/
public static function createLocalDriver($config)
{
return \Illuminate\Filesystem\FilesystemManager::createLocalDriver($config);
}
/**
* Create an instance of the ftp driver.
*
* @param array $config
* @return \Illuminate\Contracts\Filesystem\Filesystem
* @static
*/
public static function createFtpDriver($config)
{
return \Illuminate\Filesystem\FilesystemManager::createFtpDriver($config);
}
/**
* Create an instance of the Amazon S3 driver.
*
* @param array $config
* @return \Illuminate\Contracts\Filesystem\Cloud
* @static
*/
public static function createS3Driver($config)
{
return \Illuminate\Filesystem\FilesystemManager::createS3Driver($config);
}
/**
* Create an instance of the Rackspace driver.
*
* @param array $config
* @return \Illuminate\Contracts\Filesystem\Cloud
* @static
*/
public static function createRackspaceDriver($config)
{
return \Illuminate\Filesystem\FilesystemManager::createRackspaceDriver($config);
}
/**
* Set the given disk instance.
*
* @param string $name
* @param mixed $disk
* @return void
* @static
*/
public static function set($name, $disk)
{
\Illuminate\Filesystem\FilesystemManager::set($name, $disk);
}
/**
* Get the default driver name.
*
* @return string
* @static
*/
public static function getDefaultDriver()
{
return \Illuminate\Filesystem\FilesystemManager::getDefaultDriver();
}
/**
* Get the default cloud driver name.
*
* @return string
* @static
*/
public static function getDefaultCloudDriver()
{
return \Illuminate\Filesystem\FilesystemManager::getDefaultCloudDriver();
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param \Closure $callback
* @return $this
* @static
*/
public static function extend($driver, $callback)
{
return \Illuminate\Filesystem\FilesystemManager::extend($driver, $callback);
}
}
}
namespace {
class App extends \Illuminate\Support\Facades\App {}
class Auth extends \Illuminate\Support\Facades\Auth {}
class Bus extends \Illuminate\Support\Facades\Bus {}
class DB extends \Illuminate\Support\Facades\DB {}
class Cache extends \Illuminate\Support\Facades\Cache {}
class Crypt extends \Illuminate\Support\Facades\Crypt {}
class Event extends \Illuminate\Support\Facades\Event {}
class Hash extends \Illuminate\Support\Facades\Hash {}
class Log extends \Illuminate\Support\Facades\Log {}
class Queue extends \Illuminate\Support\Facades\Queue {}
class Request extends \Illuminate\Support\Facades\Request {}
class Schema extends \Illuminate\Support\Facades\Schema {}
class Storage extends \Illuminate\Support\Facades\Storage {}
}