Create a gist now

Instantly share code, notes, and snippets.

Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.40 (LTS) on 2016-07-18.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
class App extends \Illuminate\Support\Facades\App{
/**
* Get the version number of the application.
*
* @return string
* @static
*/
public static function version(){
return \Illuminate\Foundation\Application::version();
}
/**
* Run the given array of bootstrap classes.
*
* @param array $bootstrappers
* @return void
* @static
*/
public static function bootstrapWith($bootstrappers){
\Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
}
/**
* Register a callback to run after loading the environment.
*
* @param \Closure $callback
* @return void
* @static
*/
public static function afterLoadingEnvironment($callback){
\Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
}
/**
* Register a callback to run before a bootstrapper.
*
* @param string $bootstrapper
* @param \Closure $callback
* @return void
* @static
*/
public static function beforeBootstrapping($bootstrapper, $callback){
\Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
}
/**
* Register a callback to run after a bootstrapper.
*
* @param string $bootstrapper
* @param \Closure $callback
* @return void
* @static
*/
public static function afterBootstrapping($bootstrapper, $callback){
\Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
}
/**
* Determine if the application has been bootstrapped before.
*
* @return bool
* @static
*/
public static function hasBeenBootstrapped(){
return \Illuminate\Foundation\Application::hasBeenBootstrapped();
}
/**
* Set the base path for the application.
*
* @param string $basePath
* @return $this
* @static
*/
public static function setBasePath($basePath){
return \Illuminate\Foundation\Application::setBasePath($basePath);
}
/**
* Get the path to the application "app" directory.
*
* @return string
* @static
*/
public static function path(){
return \Illuminate\Foundation\Application::path();
}
/**
* Get the base path of the Laravel installation.
*
* @return string
* @static
*/
public static function basePath(){
return \Illuminate\Foundation\Application::basePath();
}
/**
* Get the path to the application configuration files.
*
* @return string
* @static
*/
public static function configPath(){
return \Illuminate\Foundation\Application::configPath();
}
/**
* Get the path to the database directory.
*
* @return string
* @static
*/
public static function databasePath(){
return \Illuminate\Foundation\Application::databasePath();
}
/**
* Set the database directory.
*
* @param string $path
* @return $this
* @static
*/
public static function useDatabasePath($path){
return \Illuminate\Foundation\Application::useDatabasePath($path);
}
/**
* Get the path to the language files.
*
* @return string
* @static
*/
public static function langPath(){
return \Illuminate\Foundation\Application::langPath();
}
/**
* Get the path to the public / web directory.
*
* @return string
* @static
*/
public static function publicPath(){
return \Illuminate\Foundation\Application::publicPath();
}
/**
* Get the path to the storage directory.
*
* @return string
* @static
*/
public static function storagePath(){
return \Illuminate\Foundation\Application::storagePath();
}
/**
* Set the storage directory.
*
* @param string $path
* @return $this
* @static
*/
public static function useStoragePath($path){
return \Illuminate\Foundation\Application::useStoragePath($path);
}
/**
* Get the path to the environment file directory.
*
* @return string
* @static
*/
public static function environmentPath(){
return \Illuminate\Foundation\Application::environmentPath();
}
/**
* Set the directory for the environment file.
*
* @param string $path
* @return $this
* @static
*/
public static function useEnvironmentPath($path){
return \Illuminate\Foundation\Application::useEnvironmentPath($path);
}
/**
* Set the environment file to be loaded during bootstrapping.
*
* @param string $file
* @return $this
* @static
*/
public static function loadEnvironmentFrom($file){
return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
}
/**
* Get the environment file the application is using.
*
* @return string
* @static
*/
public static function environmentFile(){
return \Illuminate\Foundation\Application::environmentFile();
}
/**
* Get or check the current application environment.
*
* @param mixed
* @return string
* @static
*/
public static function environment(){
return \Illuminate\Foundation\Application::environment();
}
/**
* Determine if application is in local environment.
*
* @return bool
* @static
*/
public static function isLocal(){
return \Illuminate\Foundation\Application::isLocal();
}
/**
* Detect the application's current environment.
*
* @param \Closure $callback
* @return string
* @static
*/
public static function detectEnvironment($callback){
return \Illuminate\Foundation\Application::detectEnvironment($callback);
}
/**
* Determine if we are running in the console.
*
* @return bool
* @static
*/
public static function runningInConsole(){
return \Illuminate\Foundation\Application::runningInConsole();
}
/**
* Determine if we are running unit tests.
*
* @return bool
* @static
*/
public static function runningUnitTests(){
return \Illuminate\Foundation\Application::runningUnitTests();
}
/**
* Register all of the configured providers.
*
* @return void
* @static
*/
public static function registerConfiguredProviders(){
\Illuminate\Foundation\Application::registerConfiguredProviders();
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @param array $options
* @param bool $force
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function register($provider, $options = array(), $force = false){
return \Illuminate\Foundation\Application::register($provider, $options, $force);
}
/**
* Get the registered service provider instance if it exists.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @return \Illuminate\Support\ServiceProvider|null
* @static
*/
public static function getProvider($provider){
return \Illuminate\Foundation\Application::getProvider($provider);
}
/**
* Resolve a service provider instance from the class name.
*
* @param string $provider
* @return \Illuminate\Support\ServiceProvider
* @static
*/
public static function resolveProviderClass($provider){
return \Illuminate\Foundation\Application::resolveProviderClass($provider);
}
/**
* Load and boot all of the remaining deferred providers.
*
* @return void
* @static
*/
public static function loadDeferredProviders(){
\Illuminate\Foundation\Application::loadDeferredProviders();
}
/**
* Load the provider for a deferred service.
*
* @param string $service
* @return void
* @static
*/
public static function loadDeferredProvider($service){
\Illuminate\Foundation\Application::loadDeferredProvider($service);
}
/**
* Register a deferred provider and service.
*
* @param string $provider
* @param string $service
* @return void
* @static
*/
public static function registerDeferredProvider($provider, $service = null){
\Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
}
/**
* Resolve the given type from the container.
*
* (Overriding Container::make)
*
* @param string $abstract
* @param array $parameters
* @return mixed
* @static
*/
public static function make($abstract, $parameters = array()){
return \Illuminate\Foundation\Application::make($abstract, $parameters);
}
/**
* Determine if the given abstract type has been bound.
*
* (Overriding Container::bound)
*
* @param string $abstract
* @return bool
* @static
*/
public static function bound($abstract){
return \Illuminate\Foundation\Application::bound($abstract);
}
/**
* Determine if the application has booted.
*
* @return bool
* @static
*/
public static function isBooted(){
return \Illuminate\Foundation\Application::isBooted();
}
/**
* Boot the application's service providers.
*
* @return void
* @static
*/
public static function boot(){
\Illuminate\Foundation\Application::boot();
}
/**
* Register a new boot listener.
*
* @param mixed $callback
* @return void
* @static
*/
public static function booting($callback){
\Illuminate\Foundation\Application::booting($callback);
}
/**
* Register a new "booted" listener.
*
* @param mixed $callback
* @return void
* @static
*/
public static function booted($callback){
\Illuminate\Foundation\Application::booted($callback);
}
/**
* {@inheritdoc}
*
* @static
*/
public static function handle($request, $type = 1, $catch = true){
return \Illuminate\Foundation\Application::handle($request, $type, $catch);
}
/**
* Determine if middleware has been disabled for the application.
*
* @return bool
* @static
*/
public static function shouldSkipMiddleware(){
return \Illuminate\Foundation\Application::shouldSkipMiddleware();
}
/**
* Determine if the application configuration is cached.
*
* @return bool
* @static
*/
public static function configurationIsCached(){
return \Illuminate\Foundation\Application::configurationIsCached();
}
/**
* Get the path to the configuration cache file.
*
* @return string
* @static
*/
public static function getCachedConfigPath(){
return \Illuminate\Foundation\Application::getCachedConfigPath();
}
/**
* Determine if the application routes are cached.
*
* @return bool
* @static
*/
public static function routesAreCached(){
return \Illuminate\Foundation\Application::routesAreCached();
}
/**
* Get the path to the routes cache file.
*
* @return string
* @static
*/
public static function getCachedRoutesPath(){
return \Illuminate\Foundation\Application::getCachedRoutesPath();
}
/**
* Get the path to the cached "compiled.php" file.
*
* @return string
* @static
*/
public static function getCachedCompilePath(){
return \Illuminate\Foundation\Application::getCachedCompilePath();
}
/**
* Get the path to the cached services.json file.
*
* @return string
* @static
*/
public static function getCachedServicesPath(){
return \Illuminate\Foundation\Application::getCachedServicesPath();
}
/**
* Determine if the application is currently down for maintenance.
*
* @return bool
* @static
*/
public static function isDownForMaintenance(){
return \Illuminate\Foundation\Application::isDownForMaintenance();
}
/**
* 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()){
\Illuminate\Foundation\Application::abort($code, $message, $headers);
}
/**
* Register a terminating callback with the application.
*
* @param \Closure $callback
* @return $this
* @static
*/
public static function terminating($callback){
return \Illuminate\Foundation\Application::terminating($callback);
}
/**
* Terminate the application.
*
* @return void
* @static
*/
public static function terminate(){
\Illuminate\Foundation\Application::terminate();
}
/**
* Get the service providers that have been loaded.
*
* @return array
* @static
*/
public static function getLoadedProviders(){
return \Illuminate\Foundation\Application::getLoadedProviders();
}
/**
* Get the application's deferred services.
*
* @return array
* @static
*/
public static function getDeferredServices(){
return \Illuminate\Foundation\Application::getDeferredServices();
}
/**
* Set the application's deferred services.
*
* @param array $services
* @return void
* @static
*/
public static function setDeferredServices($services){
\Illuminate\Foundation\Application::setDeferredServices($services);
}
/**
* Add an array of services to the application's deferred services.
*
* @param array $services
* @return void
* @static
*/
public static function addDeferredServices($services){
\Illuminate\Foundation\Application::addDeferredServices($services);
}
/**
* Determine if the given service is a deferred service.
*
* @param string $service
* @return bool
* @static
*/
public static function isDeferredService($service){
return \Illuminate\Foundation\Application::isDeferredService($service);
}
/**
* Define a callback to be used to configure Monolog.
*
* @param callable $callback
* @return $this
* @static
*/
public static function configureMonologUsing($callback){
return \Illuminate\Foundation\Application::configureMonologUsing($callback);
}
/**
* Determine if the application has a custom Monolog configurator.
*
* @return bool
* @static
*/
public static function hasMonologConfigurator(){
return \Illuminate\Foundation\Application::hasMonologConfigurator();
}
/**
* Get the custom Monolog configurator for the application.
*
* @return callable
* @static
*/
public static function getMonologConfigurator(){
return \Illuminate\Foundation\Application::getMonologConfigurator();
}
/**
* Get the current application locale.
*
* @return string
* @static
*/
public static function getLocale(){
return \Illuminate\Foundation\Application::getLocale();
}
/**
* Set the current application locale.
*
* @param string $locale
* @return void
* @static
*/
public static function setLocale($locale){
\Illuminate\Foundation\Application::setLocale($locale);
}
/**
* Register the core class aliases in the container.
*
* @return void
* @static
*/
public static function registerCoreContainerAliases(){
\Illuminate\Foundation\Application::registerCoreContainerAliases();
}
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
* @static
*/
public static function flush(){
\Illuminate\Foundation\Application::flush();
}
/**
* Get the application namespace.
*
* @return string
* @throws \RuntimeException
* @static
*/
public static function getNamespace(){
return \Illuminate\Foundation\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 \Illuminate\Foundation\Application::when($concrete);
}
/**
* 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 \Illuminate\Foundation\Application::resolved($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 \Illuminate\Foundation\Application::isAlias($name);
}
/**
* Register a binding with the container.
*
* @param string|array $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
\Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
}
/**
* 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
\Illuminate\Foundation\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
\Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
}
/**
* Register a shared binding in the container.
*
* @param string|array $abstract
* @param \Closure|string|null $concrete
* @return void
* @static
*/
public static function singleton($abstract, $concrete = null){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::singleton($abstract, $concrete);
}
/**
* Wrap a Closure such that it is shared.
*
* @param \Closure $closure
* @return \Closure
* @static
*/
public static function share($closure){
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::share($closure);
}
/**
* Bind a shared Closure into the container.
*
* @param string $abstract
* @param \Closure $closure
* @return void
* @deprecated since version 5.1. Use singleton instead.
* @static
*/
public static function bindShared($abstract, $closure){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::bindShared($abstract, $closure);
}
/**
* "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
\Illuminate\Foundation\Application::extend($abstract, $closure);
}
/**
* Register an existing instance as shared in the container.
*
* @param string $abstract
* @param mixed $instance
* @return void
* @static
*/
public static function instance($abstract, $instance){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\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
\Illuminate\Foundation\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 \Illuminate\Foundation\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
\Illuminate\Foundation\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 \Illuminate\Foundation\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 \Illuminate\Foundation\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 \Illuminate\Foundation\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 \Illuminate\Foundation\Application::call($callback, $parameters, $defaultMethod);
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @param array $parameters
* @return mixed
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @static
*/
public static function build($concrete, $parameters = array()){
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::build($concrete, $parameters);
}
/**
* Register a new resolving callback.
*
* @param string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function resolving($abstract, $callback = null){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::resolving($abstract, $callback);
}
/**
* Register a new after resolving callback for all types.
*
* @param string $abstract
* @param \Closure|null $callback
* @return void
* @static
*/
public static function afterResolving($abstract, $callback = null){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::afterResolving($abstract, $callback);
}
/**
* 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 \Illuminate\Foundation\Application::isShared($abstract);
}
/**
* Get the container's bindings.
*
* @return array
* @static
*/
public static function getBindings(){
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::getBindings();
}
/**
* 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
\Illuminate\Foundation\Application::forgetInstance($abstract);
}
/**
* Clear all of the instances from the container.
*
* @return void
* @static
*/
public static function forgetInstances(){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\Application::forgetInstances();
}
/**
* Set the globally available instance of the container.
*
* @return static
* @static
*/
public static function getInstance(){
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::getInstance();
}
/**
* Set the shared instance of the container.
*
* @param \Illuminate\Contracts\Container\Container $container
* @return void
* @static
*/
public static function setInstance($container){
//Method inherited from \Illuminate\Container\Container
\Illuminate\Foundation\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 \Illuminate\Foundation\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 \Illuminate\Foundation\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
\Illuminate\Foundation\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
\Illuminate\Foundation\Application::offsetUnset($key);
}
}
class Artisan extends \Illuminate\Support\Facades\Artisan{
/**
* Run the console application.
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return int
* @static
*/
public static function handle($input, $output = null){
//Method inherited from \Illuminate\Foundation\Console\Kernel
return \App\Console\Kernel::handle($input, $output);
}
/**
* Terminate the application.
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param int $status
* @return void
* @static
*/
public static function terminate($input, $status){
//Method inherited from \Illuminate\Foundation\Console\Kernel
\App\Console\Kernel::terminate($input, $status);
}
/**
* Run an Artisan console command by name.
*
* @param string $command
* @param array $parameters
* @return int
* @static
*/
public static function call($command, $parameters = array()){
//Method inherited from \Illuminate\Foundation\Console\Kernel
return \App\Console\Kernel::call($command, $parameters);
}
/**
* Queue the given console command.
*
* @param string $command
* @param array $parameters
* @return void
* @static
*/
public static function queue($command, $parameters = array()){
//Method inherited from \Illuminate\Foundation\Console\Kernel
\App\Console\Kernel::queue($command, $parameters);
}
/**
* Get all of the commands registered with the console.
*
* @return array
* @static
*/
public static function all(){
//Method inherited from \Illuminate\Foundation\Console\Kernel
return \App\Console\Kernel::all();
}
/**
* Get the output for the last run command.
*
* @return string
* @static
*/
public static function output(){
//Method inherited from \Illuminate\Foundation\Console\Kernel
return \App\Console\Kernel::output();
}
/**
* Bootstrap the application for artisan commands.
*
* @return void
* @static
*/
public static function bootstrap(){
//Method inherited from \Illuminate\Foundation\Console\Kernel
\App\Console\Kernel::bootstrap();
}
}
class Auth extends \Illuminate\Support\Facades\Auth{
/**
* Create an instance of the database driver.
*
* @return \Illuminate\Auth\Guard
* @static
*/
public static function createDatabaseDriver(){
return \Illuminate\Auth\AuthManager::createDatabaseDriver();
}
/**
* Create an instance of the Eloquent driver.
*
* @return \Illuminate\Auth\Guard
* @static
*/
public static function createEloquentDriver(){
return \Illuminate\Auth\AuthManager::createEloquentDriver();
}
/**
* Get the default authentication driver name.
*
* @return string
* @static
*/
public static function getDefaultDriver(){
return \Illuminate\Auth\AuthManager::getDefaultDriver();
}
/**
* Set the default authentication driver name.
*
* @param string $name
* @return void
* @static
*/
public static function setDefaultDriver($name){
\Illuminate\Auth\AuthManager::setDefaultDriver($name);
}
/**
* Get a driver instance.
*
* @param string $driver
* @return mixed
* @static
*/
public static function driver($driver = null){
//Method inherited from \Illuminate\Support\Manager
return \Illuminate\Auth\AuthManager::driver($driver);
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
* @param \Closure $callback
* @return $this
* @static
*/
public static function extend($driver, $callback){
//Method inherited from \Illuminate\Support\Manager
return \Illuminate\Auth\AuthManager::extend($driver, $callback);
}
/**
* Get all of the created "drivers".
*
* @return array
* @static
*/
public static function getDrivers(){
//Method inherited from \Illuminate\Support\Manager
return \Illuminate\Auth\AuthManager::getDrivers();
}
/**
* Determine if the current user is authenticated.
*
* @return bool
* @static
*/
public static function check(){
return \Illuminate\Auth\Guard::check();
}
/**
* Determine if the current user is a guest.
*
* @return bool
* @static
*/
public static function guest(){
return \Illuminate\Auth\Guard::guest();
}
/**
* Get the currently authenticated user.
*
* @return \App\User|null
* @static
*/
public static function user(){
return \Illuminate\Auth\Guard::user();
}
/**
* Get the ID for the currently authenticated user.
*
* @return int|null
* @static
*/
public static function id(){
return \Illuminate\Auth\Guard::id();
}
/**
* Log a user into the application without sessions or cookies.
*
* @param array $credentials
* @return bool
* @static
*/
public static function once($credentials = array()){
return \Illuminate\Auth\Guard::once($credentials);
}
/**
* Validate a user's credentials.
*
* @param array $credentials
* @return bool
* @static
*/
public static function validate($credentials = array()){
return \Illuminate\Auth\Guard::validate($credentials);
}
/**
* Attempt to authenticate using HTTP Basic Auth.
*
* @param string $field
* @return \Symfony\Component\HttpFoundation\Response|null
* @static
*/
public static function basic($field = 'email'){
return \Illuminate\Auth\Guard::basic($field);
}
/**
* Perform a stateless HTTP Basic login attempt.
*
* @param string $field
* @return \Symfony\Component\HttpFoundation\Response|null
* @static
*/
public static function onceBasic($field = 'email'){
return \Illuminate\Auth\Guard::onceBasic($field);
}
/**
* Attempt to authenticate a user using the given credentials.
*
* @param array $credentials
* @param bool $remember
* @param bool $login
* @return bool
* @static
*/
public static function attempt($credentials = array(), $remember = false, $login = true){
return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
}
/**
* Register an authentication attempt event listener.
*
* @param mixed $callback
* @return void
* @static
*/
public static function attempting($callback){
\Illuminate\Auth\Guard::attempting($callback);
}
/**
* Log a user into the application.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param bool $remember
* @return void
* @static
*/
public static function login($user, $remember = false){
\Illuminate\Auth\Guard::login($user, $remember);
}
/**
* Log the given user ID into the application.
*
* @param mixed $id
* @param bool $remember
* @return \App\User
* @static
*/
public static function loginUsingId($id, $remember = false){
return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
}
/**
* Log the given user ID into the application without sessions or cookies.
*
* @param mixed $id
* @return bool
* @static
*/
public static function onceUsingId($id){
return \Illuminate\Auth\Guard::onceUsingId($id);
}
/**
* Log the user out of the application.
*
* @return void
* @static
*/
public static function logout(){
\Illuminate\Auth\Guard::logout();
}
/**
* Get the cookie creator instance used by the guard.
*
* @return \Illuminate\Contracts\Cookie\QueueingFactory
* @throws \RuntimeException
* @static
*/
public static function getCookieJar(){
return \Illuminate\Auth\Guard::getCookieJar();
}
/**
* Set the cookie creator instance used by the guard.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
* @return void
* @static
*/
public static function setCookieJar($cookie){
\Illuminate\Auth\Guard::setCookieJar($cookie);
}
/**
* Get the event dispatcher instance.
*
* @return \Illuminate\Contracts\Events\Dispatcher
* @static
*/
public static function getDispatcher(){
return \Illuminate\Auth\Guard::getDispatcher();
}
/**
* Set the event dispatcher instance.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
* @static
*/
public static function setDispatcher($events){
\Illuminate\Auth\Guard::setDispatcher($events);
}
/**
* Get the session store used by the guard.
*
* @return \Illuminate\Session\Store
* @static
*/
public static function getSession(){
return \Illuminate\Auth\Guard::getSession();
}
/**
* Get the user provider used by the guard.
*
* @return \Illuminate\Contracts\Auth\UserProvider
* @static
*/
public static function getProvider(){
return \Illuminate\Auth\Guard::getProvider();
}
/**
* Set the user provider used by the guard.
*
* @param \Illuminate\Contracts\Auth\UserProvider $provider
* @return void
* @static
*/
public static function setProvider($provider){
\Illuminate\Auth\Guard::setProvider($provider);
}
/**
* Return the currently cached user.
*
* @return \App\User|null
* @static
*/
public static function getUser(){
return \Illuminate\Auth\Guard::getUser();
}
/**
* Set the current user.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
* @static
*/
public static function setUser($user){
\Illuminate\Auth\Guard::setUser($user);
}
/**
* Get the current request instance.
*
* @return \Symfony\Component\HttpFoundation\Request
* @static
*/
public static function getRequest(){
return \Illuminate\Auth\Guard::getRequest();
}
/**
* Set the current request instance.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return $this
* @static
*/
public static function setRequest($request){
return \Illuminate\Auth\Guard::setRequest($request);
}
/**
* Get the last user we attempted to authenticate.
*
* @return \App\User
* @static
*/
public static function getLastAttempted(){
return \Illuminate\Auth\Guard::getLastAttempted();
}
/**
* Get a unique identifier for the auth session value.
*
* @return string
* @static
*/
public static function getName(){
return \Illuminate\Auth\Guard::getName();
}
/**
* Get the name of the cookie used to store the "recaller".
*
* @return string
* @static
*/
public static function getRecallerName(){
return \Illuminate\Auth\Guard::getRecallerName();
}
/**
* Determine if the user was authenticated via "remember me" cookie.
*
* @return bool
* @static
*/
public static function viaRemember(){
return \Illuminate\Auth\Guard::viaRemember();
}
}
class Blade extends \Illuminate\Support\Facades\Blade{
/**
* Compile the view at the given path.
*
* @param string $path
* @return void
* @static
*/
public static function compile($path = null){
\Illuminate\View\Compilers\BladeCompiler::compile($path);
}
/**
* Get the path currently being compiled.
*
* @return string
* @static
*/
public static function getPath(){
return \Illuminate\View\Compilers\BladeCompiler::getPath();
}
/**
* Set the path currently being compiled.
*
* @param string $path
* @return void
* @static
*/
public static function setPath($path){
\Illuminate\View\Compilers\BladeCompiler::setPath($path);
}
/**
* Compile the given Blade template contents.
*
* @param string $value
* @return string
* @static
*/
public static function compileString($value){
return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
}
/**
* Compile the default values for the echo statement.
*
* @param string $value
* @return string
* @static
*/
public static function compileEchoDefaults($value){
return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
}
/**
* Get the extensions used by the compiler.
*
* @return array
* @static
*/
public static function getExtensions(){
return \Illuminate\View\Compilers\BladeCompiler::getExtensions();
}
/**
* Register a custom Blade compiler.
*
* @param callable $compiler
* @return void
* @static
*/
public static function extend($compiler){
\Illuminate\View\Compilers\BladeCompiler::extend($compiler);
}
/**
* Register a handler for custom directives.
*
* @param string $name
* @param callable $handler
* @return void
* @static
*/
public static function directive($name, $handler){
\Illuminate\View\Compilers\BladeCompiler::directive($name, $handler);
}
/**
* Get the list of custom directives.
*
* @return array
* @static
*/
public static function getCustomDirectives(){
return \Illuminate\View\Compilers\BladeCompiler::getCustomDirectives();
}
/**
* Gets the raw tags used by the compiler.
*
* @return array
* @static
*/
public static function getRawTags(){
return \Illuminate\View\Compilers\BladeCompiler::getRawTags();
}
/**
* Sets the raw tags used for the compiler.
*
* @param string $openTag
* @param string $closeTag
* @return void
* @static
*/
public static function setRawTags($openTag, $closeTag){
\Illuminate\View\Compilers\BladeCompiler::setRawTags($openTag, $closeTag);
}
/**
* Sets the content tags used for the compiler.
*
* @param string $openTag
* @param string $closeTag
* @param bool $escaped
* @return void
* @static
*/
public static function setContentTags($openTag, $closeTag, $escaped = false){
\Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
}
/**
* Sets the escaped content tags used for the compiler.
*
* @param string $openTag
* @param string $closeTag
* @return void
* @static
*/
public static function setEscapedContentTags($openTag, $closeTag){
\Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
}
/**
* Gets the content tags used for the compiler.
*
* @return string
* @static
*/
public static function getContentTags(){
return \Illuminate\View\Compilers\BladeCompiler::getContentTags();
}
/**
* Gets the escaped content tags used for the compiler.
*
* @return string
* @static
*/
public static function getEscapedContentTags(){
return \Illuminate\View\Compilers\BladeCompiler::getEscapedContentTags();
}
/**
* Set the echo format to be used by the compiler.
*
* @param string $format
* @return void
* @static
*/
public static function setEchoFormat($format){
\Illuminate\View\Compilers\BladeCompiler::setEchoFormat($format);
}
/**
* Get the path to the compiled version of a view.
*
* @param string $path
* @return string
* @static
*/
public static function getCompiledPath($path){
//Method inherited from \Illuminate\View\Compilers\Compiler
return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
}
/**
* Determine if the view at the given path is expired.
*
* @param string $path
* @return bool
* @static
*/
public static function isExpired($path){
//Method inherited from \Illuminate\View\Compilers\Compiler
return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
}
}
class Bus extends \Illuminate\Support\Facades\Bus{
/**
* Marshal a command and dispatch it to its appropriate handler.
*
* @param mixed $command
* @param array $array
* @return mixed
* @static
*/
public static function dispatchFromArray($command, $array){
return \Illuminate\Bus\Dispatcher::dispatchFromArray($command, $array);
}
/**
* Marshal a command and dispatch it to its appropriate handler.
*
* @param mixed $command
* @param \ArrayAccess $source
* @param array $extras
* @return mixed
* @static
*/
public static function dispatchFrom($command, $source, $extras = array()){
return \Illuminate\Bus\Dispatcher::dispatchFrom($command, $source, $extras);
}
/**
* Dispatch a command to its appropriate handler.
*
* @param mixed $command
* @param \Closure|null $afterResolving
* @return mixed
* @static
*/
public static function dispatch($command, $afterResolving = null){
return \Illuminate\Bus\Dispatcher::dispatch($command, $afterResolving);
}
/**
* Dispatch a command to its appropriate handler in the current process.
*
* @param mixed $command
* @param \Closure|null $afterResolving
* @return mixed
* @static
*/
public static function dispatchNow($command, $afterResolving = null){
return \Illuminate\Bus\Dispatcher::dispatchNow($command, $afterResolving);
}
/**
* 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);
}
/**
* Get the handler instance for the given command.
*
* @param mixed $command
* @return mixed
* @static
*/
public static function resolveHandler($command){
return \Illuminate\Bus\Dispatcher::resolveHandler($command);
}
/**
* Get the handler class for the given command.
*
* @param mixed $command
* @return string
* @static
*/
public static function getHandlerClass($command){
return \Illuminate\Bus\Dispatcher::getHandlerClass($command);
}
/**
* Get the handler method for the given command.
*
* @param mixed $command
* @return string
* @static
*/
public static function getHandlerMethod($command){
return \Illuminate\Bus\Dispatcher::getHandlerMethod($command);
}
/**
* Register command-to-handler mappings.
*
* @param array $commands
* @return void
* @static
*/
public static function maps($commands){
\Illuminate\Bus\Dispatcher::maps($commands);
}
/**
* Register a fallback mapper callback.
*
* @param \Closure $mapper
* @return void
* @static
*/
public static function mapUsing($mapper){
\Illuminate\Bus\Dispatcher::mapUsing($mapper);
}
/**
* Map the command to a handler within a given root namespace.
*
* @param mixed $command
* @param string $commandNamespace
* @param string $handlerNamespace
* @return string
* @static
*/
public static function simpleMapping($command, $commandNamespace, $handlerNamespace){
return \Illuminate\Bus\Dispatcher::simpleMapping($command, $commandNamespace, $handlerNamespace);
}
/**
* 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);
}
}
class Cache extends \Illuminate\Support\Facades\Cache{
/**
* Get a cache store instance by name.
*
* @param string|null $name
* @return mixed
* @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);
}
/**
* 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 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 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 \DateTime|int $minutes
* @return void
* @static
*/
public static function put($key, $value, $minutes){
\Illuminate\Cache\Repository::put($key, $value, $minutes);
}
/**
* Store an item in the cache if the key does not exist.
*
* @param string $key
* @param mixed $value
* @param \DateTime|int $minutes
* @return bool
* @static
*/
public static function add($key, $value, $minutes){
return \Illuminate\Cache\Repository::add($key, $value, $minutes);
}
/**
* 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 \DateTime|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);
}
/**
* Begin executing a new tags operation if the store supports it.
*
* @param string $name
* @return \Illuminate\Cache\TaggedCache
* @deprecated since version 5.1. Use tags instead.
* @static
*/
public static function section($name){
return \Illuminate\Cache\Repository::section($name);
}
/**
* 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 int
* @static
*/
public static function getDefaultCacheTime(){
return \Illuminate\Cache\Repository::getDefaultCacheTime();
}
/**
* Set the default cache time in minutes.
*
* @param int $minutes
* @return void
* @static
*/
public static function setDefaultCacheTime($minutes){
\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();
}
/**
* 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 callable $macro
* @return void
* @static
*/
public static function macro($name, $macro){
\Illuminate\Cache\Repository::macro($name, $macro);
}
/**
* 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);
}
/**
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int
* @static
*/
public static function increment($key, $value = 1){
return \Illuminate\Cache\FileStore::increment($key, $value);
}
/**
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int
* @static
*/
public static function decrement($key, $value = 1){
return \Illuminate\Cache\FileStore::decrement($key, $value);
}
/**
* Remove all items from the cache.
*
* @return void
* @static
*/
public static function flush(){
\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 Config extends \Illuminate\Support\Facades\Config{
/**
* Determine if the given configuration value exists.
*
* @param string $key
* @return bool
* @static
*/
public static function has($key){
return \Illuminate\Config\Repository::has($key);
}
/**
* Get the specified configuration value.
*
* @param string $key
* @param mixed $default
* @return mixed
* @static
*/
public static function get($key, $default = null){
return \Illuminate\Config\Repository::get($key, $default);
}
/**
* Set a given configuration value.
*
* @param array|string $key
* @param mixed $value
* @return void
* @static
*/
public static function set($key, $value = null){
\Illuminate\Config\Repository::set($key, $value);
}
/**
* Prepend a value onto an array configuration value.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function prepend($key, $value){
\Illuminate\Config\Repository::prepend($key, $value);
}
/**
* Push a value onto an array configuration value.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function push($key, $value){
\Illuminate\Config\Repository::push($key, $value);
}
/**
* Get all of the configuration items for the application.
*
* @return array
* @static
*/
public static function all(){
return \Illuminate\Config\Repository::all();
}
/**
* Determine if the given configuration option exists.
*
* @param string $key
* @return bool
* @static
*/
public static function offsetExists($key){
return \Illuminate\Config\Repository::offsetExists($key);
}
/**
* Get a configuration option.
*
* @param string $key
* @return mixed
* @static
*/
public static function offsetGet($key){
return \Illuminate\Config\Repository::offsetGet($key);
}
/**
* Set a configuration option.
*
* @param string $key
* @param mixed $value
* @return void
* @static
*/
public static function offsetSet($key, $value){
\Illuminate\Config\Repository::offsetSet($key, $value);
}
/**
* Unset a configuration option.
*
* @param string $key
* @return void
* @static
*/
public static function offsetUnset($key){
\Illuminate\Config\Repository::offsetUnset($key);
}
}
class Cookie extends \Illuminate\Support\Facades\Cookie{
/**
* Create a new cookie instance.
*
* @param string $name
* @param string $value
* @param int $minutes
* @param string $path
* @param string $domain
* @param bool $secure
* @param bool $httpOnly
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
}
/**
* Create a cookie that lasts "forever" (five years).
*
* @param string $name
* @param string $value
* @param string $path
* @param string $domain
* @param bool $secure
* @param bool $httpOnly
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
}
/**
* Expire the given cookie.
*
* @param string $name
* @param string $path
* @param string $domain
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function forget($name, $path = null, $domain = null){
return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
}
/**
* Determine if a cookie has been queued.
*
* @param string $key
* @return bool
* @static
*/
public static function hasQueued($key){
return \Illuminate\Cookie\CookieJar::hasQueued($key);
}
/**
* Get a queued cookie instance.
*
* @param string $key
* @param mixed $default
* @return \Symfony\Component\HttpFoundation\Cookie
* @static
*/
public static function queued($key, $default = null){
return \Illuminate\Cookie\CookieJar::queued($key, $default);
}
/**
* Queue a cookie to send with the next response.
*
* @param mixed
* @return void
* @static
*/
public static function queue(){
\Illuminate\Cookie\CookieJar::queue();
}
/**
* Remove a cookie from the queue.
*
* @param string $name
* @return void
* @static
*/
public static function unqueue($name){
\Illuminate\Cookie\CookieJar::unqueue($name);
}
/**
* Set the default path and domain for the jar.
*
* @param string $path
* @param string $domain
* @param bool $secure
* @return $this
* @static
*/
public static function setDefaultPathAndDomain($path, $domain, $secure = false){
return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain, $secure);
}
/**
* Get the cookies which have been queued for the next request.
*
* @return array
* @static
*/
public static function getQueuedCookies(){
return \Illuminate\Cookie\CookieJar::getQueuedCookies();
}
}
class Crypt extends \Illuminate\Support\Facades\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\McryptEncrypter::supported($key, $cipher);
}
/**
* Encrypt the given value.
*
* @param string $value
* @return string
* @throws \Illuminate\Contracts\Encryption\EncryptException
* @static
*/
public static function encrypt($value){
return \Illuminate\Encryption\McryptEncrypter::encrypt($value);
}
/**
* Decrypt the given value.
*
* @param string $payload
* @return string
* @static
*/
public static function decrypt($payload){
return \Illuminate\Encryption\McryptEncrypter::decrypt($payload);
}
}
class DB extends \Illuminate\Support\Facades\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);
}
/**
* 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();
}
/**
* 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();
}
/**
* 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);
}
/**
* Run a select statement and return a single result.
*
* @param string $query
* @param array $bindings
* @return mixed
* @static
*/
public static function selectOne($query, $bindings = array()){
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings);
}
/**
* 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 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);
}
/**
* 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);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
* @return mixed
* @throws \Throwable
* @static
*/
public static function transaction($callback){
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::transaction($callback);
}
/**
* 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.
*
* @return void
* @static
*/
public static function rollBack(){
//Method inherited from \Illuminate\Database\Connection
\Illuminate\Database\MySqlConnection::rollBack();
}
/**
* Get the number of active transactions.
*
* @return int
* @static
*/
public static function transactionLevel(){
//Method inherited from \Illuminate\Database\Connection
return \Illuminate\Database\MySqlConnection::transactionLevel();
}
/**
* 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);
}
/**
* 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);
}
/**
* 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();