PageRenderTime 109ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 2ms

/_ide_helper.php

https://github.com/petarblazevski/lv-registration
PHP | 12987 lines | 3127 code | 1020 blank | 8840 comment | 0 complexity | e0b5c89daae291c73b4d7882726abb3f MD5 | raw file
  1. <?php
  2. /**
  3. * An helper file for Laravel 4, to provide autocomplete information to your IDE
  4. * Generated with https://github.com/barryvdh/laravel-ide-helper
  5. * Updated for Laravel 4.2.1 (2014-06-01)
  6. *
  7. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  8. */
  9. namespace {
  10. exit('Only to be used as an helper for your IDE');
  11. class App extends \Illuminate\Support\Facades\App{
  12. /**
  13. * Create a new Illuminate application instance.
  14. *
  15. * @param \Illuminate\Http\Request
  16. * @return void
  17. * @static
  18. */
  19. public static function __construct($request = null){
  20. //Method inherited from \Illuminate\Foundation\Application
  21. \Illuminate\Foundation\Application::__construct($request);
  22. }
  23. /**
  24. * Bind the installation paths to the application.
  25. *
  26. * @param array $paths
  27. * @return void
  28. * @static
  29. */
  30. public static function bindInstallPaths($paths){
  31. //Method inherited from \Illuminate\Foundation\Application
  32. \Illuminate\Foundation\Application::bindInstallPaths($paths);
  33. }
  34. /**
  35. * Get the application bootstrap file.
  36. *
  37. * @return string
  38. * @static
  39. */
  40. public static function getBootstrapFile(){
  41. //Method inherited from \Illuminate\Foundation\Application
  42. return \Illuminate\Foundation\Application::getBootstrapFile();
  43. }
  44. /**
  45. * Start the exception handling for the request.
  46. *
  47. * @return void
  48. * @static
  49. */
  50. public static function startExceptionHandling(){
  51. //Method inherited from \Illuminate\Foundation\Application
  52. \Illuminate\Foundation\Application::startExceptionHandling();
  53. }
  54. /**
  55. * Get or check the current application environment.
  56. *
  57. * @param dynamic
  58. * @return string
  59. * @static
  60. */
  61. public static function environment(){
  62. //Method inherited from \Illuminate\Foundation\Application
  63. return \Illuminate\Foundation\Application::environment();
  64. }
  65. /**
  66. * Determine if application is in local environment.
  67. *
  68. * @return bool
  69. * @static
  70. */
  71. public static function isLocal(){
  72. //Method inherited from \Illuminate\Foundation\Application
  73. return \Illuminate\Foundation\Application::isLocal();
  74. }
  75. /**
  76. * Detect the application's current environment.
  77. *
  78. * @param array|string $envs
  79. * @return string
  80. * @static
  81. */
  82. public static function detectEnvironment($envs){
  83. //Method inherited from \Illuminate\Foundation\Application
  84. return \Illuminate\Foundation\Application::detectEnvironment($envs);
  85. }
  86. /**
  87. * Determine if we are running in the console.
  88. *
  89. * @return bool
  90. * @static
  91. */
  92. public static function runningInConsole(){
  93. //Method inherited from \Illuminate\Foundation\Application
  94. return \Illuminate\Foundation\Application::runningInConsole();
  95. }
  96. /**
  97. * Determine if we are running unit tests.
  98. *
  99. * @return bool
  100. * @static
  101. */
  102. public static function runningUnitTests(){
  103. //Method inherited from \Illuminate\Foundation\Application
  104. return \Illuminate\Foundation\Application::runningUnitTests();
  105. }
  106. /**
  107. * Force register a service provider with the application.
  108. *
  109. * @param \Illuminate\Support\ServiceProvider|string $provider
  110. * @param array $options
  111. * @return \Illuminate\Support\ServiceProvider
  112. * @static
  113. */
  114. public static function forceRegister($provider, $options = array()){
  115. //Method inherited from \Illuminate\Foundation\Application
  116. return \Illuminate\Foundation\Application::forceRegister($provider, $options);
  117. }
  118. /**
  119. * Register a service provider with the application.
  120. *
  121. * @param \Illuminate\Support\ServiceProvider|string $provider
  122. * @param array $options
  123. * @param bool $force
  124. * @return \Illuminate\Support\ServiceProvider
  125. * @static
  126. */
  127. public static function register($provider, $options = array(), $force = false){
  128. //Method inherited from \Illuminate\Foundation\Application
  129. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  130. }
  131. /**
  132. * Get the registered service provider instance if it exists.
  133. *
  134. * @param \Illuminate\Support\ServiceProvider|string $provider
  135. * @return \Illuminate\Support\ServiceProvider|null
  136. * @static
  137. */
  138. public static function getRegistered($provider){
  139. //Method inherited from \Illuminate\Foundation\Application
  140. return \Illuminate\Foundation\Application::getRegistered($provider);
  141. }
  142. /**
  143. * Resolve a service provider instance from the class name.
  144. *
  145. * @param string $provider
  146. * @return \Illuminate\Support\ServiceProvider
  147. * @static
  148. */
  149. public static function resolveProviderClass($provider){
  150. //Method inherited from \Illuminate\Foundation\Application
  151. return \Illuminate\Foundation\Application::resolveProviderClass($provider);
  152. }
  153. /**
  154. * Load and boot all of the remaining deferred providers.
  155. *
  156. * @return void
  157. * @static
  158. */
  159. public static function loadDeferredProviders(){
  160. //Method inherited from \Illuminate\Foundation\Application
  161. \Illuminate\Foundation\Application::loadDeferredProviders();
  162. }
  163. /**
  164. * Register a deferred provider and service.
  165. *
  166. * @param string $provider
  167. * @param string $service
  168. * @return void
  169. * @static
  170. */
  171. public static function registerDeferredProvider($provider, $service = null){
  172. //Method inherited from \Illuminate\Foundation\Application
  173. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  174. }
  175. /**
  176. * Resolve the given type from the container.
  177. *
  178. * (Overriding Container::make)
  179. *
  180. * @param string $abstract
  181. * @param array $parameters
  182. * @return mixed
  183. * @static
  184. */
  185. public static function make($abstract, $parameters = array()){
  186. //Method inherited from \Illuminate\Foundation\Application
  187. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  188. }
  189. /**
  190. * Register a "before" application filter.
  191. *
  192. * @param Closure|string $callback
  193. * @return void
  194. * @static
  195. */
  196. public static function before($callback){
  197. //Method inherited from \Illuminate\Foundation\Application
  198. \Illuminate\Foundation\Application::before($callback);
  199. }
  200. /**
  201. * Register an "after" application filter.
  202. *
  203. * @param Closure|string $callback
  204. * @return void
  205. * @static
  206. */
  207. public static function after($callback){
  208. //Method inherited from \Illuminate\Foundation\Application
  209. \Illuminate\Foundation\Application::after($callback);
  210. }
  211. /**
  212. * Register a "finish" application filter.
  213. *
  214. * @param Closure|string $callback
  215. * @return void
  216. * @static
  217. */
  218. public static function finish($callback){
  219. //Method inherited from \Illuminate\Foundation\Application
  220. \Illuminate\Foundation\Application::finish($callback);
  221. }
  222. /**
  223. * Register a "shutdown" callback.
  224. *
  225. * @param callable $callback
  226. * @return void
  227. * @static
  228. */
  229. public static function shutdown($callback = null){
  230. //Method inherited from \Illuminate\Foundation\Application
  231. \Illuminate\Foundation\Application::shutdown($callback);
  232. }
  233. /**
  234. * Register a function for determining when to use array sessions.
  235. *
  236. * @param \Closure $callback
  237. * @return void
  238. * @static
  239. */
  240. public static function useArraySessions($callback){
  241. //Method inherited from \Illuminate\Foundation\Application
  242. \Illuminate\Foundation\Application::useArraySessions($callback);
  243. }
  244. /**
  245. * Determine if the application has booted.
  246. *
  247. * @return bool
  248. * @static
  249. */
  250. public static function isBooted(){
  251. //Method inherited from \Illuminate\Foundation\Application
  252. return \Illuminate\Foundation\Application::isBooted();
  253. }
  254. /**
  255. * Boot the application's service providers.
  256. *
  257. * @return void
  258. * @static
  259. */
  260. public static function boot(){
  261. //Method inherited from \Illuminate\Foundation\Application
  262. \Illuminate\Foundation\Application::boot();
  263. }
  264. /**
  265. * Register a new boot listener.
  266. *
  267. * @param mixed $callback
  268. * @return void
  269. * @static
  270. */
  271. public static function booting($callback){
  272. //Method inherited from \Illuminate\Foundation\Application
  273. \Illuminate\Foundation\Application::booting($callback);
  274. }
  275. /**
  276. * Register a new "booted" listener.
  277. *
  278. * @param mixed $callback
  279. * @return void
  280. * @static
  281. */
  282. public static function booted($callback){
  283. //Method inherited from \Illuminate\Foundation\Application
  284. \Illuminate\Foundation\Application::booted($callback);
  285. }
  286. /**
  287. * Run the application and send the response.
  288. *
  289. * @param \Symfony\Component\HttpFoundation\Request $request
  290. * @return void
  291. * @static
  292. */
  293. public static function run($request = null){
  294. //Method inherited from \Illuminate\Foundation\Application
  295. \Illuminate\Foundation\Application::run($request);
  296. }
  297. /**
  298. * Add a HttpKernel middleware onto the stack.
  299. *
  300. * @param string $class
  301. * @param array $parameters
  302. * @return \Illuminate\Foundation\Application
  303. * @static
  304. */
  305. public static function middleware($class, $parameters = array()){
  306. //Method inherited from \Illuminate\Foundation\Application
  307. return \Illuminate\Foundation\Application::middleware($class, $parameters);
  308. }
  309. /**
  310. * Remove a custom middleware from the application.
  311. *
  312. * @param string $class
  313. * @return void
  314. * @static
  315. */
  316. public static function forgetMiddleware($class){
  317. //Method inherited from \Illuminate\Foundation\Application
  318. \Illuminate\Foundation\Application::forgetMiddleware($class);
  319. }
  320. /**
  321. * Handle the given request and get the response.
  322. *
  323. * Provides compatibility with BrowserKit functional testing.
  324. *
  325. * @implements HttpKernelInterface::handle
  326. * @param \Symfony\Component\HttpFoundation\Request $request
  327. * @param int $type
  328. * @param bool $catch
  329. * @return \Symfony\Component\HttpFoundation\Response
  330. * @static
  331. */
  332. public static function handle($request, $type = 1, $catch = true){
  333. //Method inherited from \Illuminate\Foundation\Application
  334. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  335. }
  336. /**
  337. * Handle the given request and get the response.
  338. *
  339. * @param \Illuminate\Http\Request $request
  340. * @return \Symfony\Component\HttpFoundation\Response
  341. * @static
  342. */
  343. public static function dispatch($request){
  344. //Method inherited from \Illuminate\Foundation\Application
  345. return \Illuminate\Foundation\Application::dispatch($request);
  346. }
  347. /**
  348. * Terminate the request and send the response to the browser.
  349. *
  350. * @param \Symfony\Component\HttpFoundation\Request $request
  351. * @param \Symfony\Component\HttpFoundation\Response $response
  352. * @return void
  353. * @static
  354. */
  355. public static function terminate($request, $response){
  356. //Method inherited from \Illuminate\Foundation\Application
  357. \Illuminate\Foundation\Application::terminate($request, $response);
  358. }
  359. /**
  360. * Call the "finish" callbacks assigned to the application.
  361. *
  362. * @param \Symfony\Component\HttpFoundation\Request $request
  363. * @param \Symfony\Component\HttpFoundation\Response $response
  364. * @return void
  365. * @static
  366. */
  367. public static function callFinishCallbacks($request, $response){
  368. //Method inherited from \Illuminate\Foundation\Application
  369. \Illuminate\Foundation\Application::callFinishCallbacks($request, $response);
  370. }
  371. /**
  372. * Prepare the request by injecting any services.
  373. *
  374. * @param \Illuminate\Http\Request $request
  375. * @return \Illuminate\Http\Request
  376. * @static
  377. */
  378. public static function prepareRequest($request){
  379. //Method inherited from \Illuminate\Foundation\Application
  380. return \Illuminate\Foundation\Application::prepareRequest($request);
  381. }
  382. /**
  383. * Prepare the given value as a Response object.
  384. *
  385. * @param mixed $value
  386. * @return \Symfony\Component\HttpFoundation\Response
  387. * @static
  388. */
  389. public static function prepareResponse($value){
  390. //Method inherited from \Illuminate\Foundation\Application
  391. return \Illuminate\Foundation\Application::prepareResponse($value);
  392. }
  393. /**
  394. * Determine if the application is ready for responses.
  395. *
  396. * @return bool
  397. * @static
  398. */
  399. public static function readyForResponses(){
  400. //Method inherited from \Illuminate\Foundation\Application
  401. return \Illuminate\Foundation\Application::readyForResponses();
  402. }
  403. /**
  404. * Determine if the application is currently down for maintenance.
  405. *
  406. * @return bool
  407. * @static
  408. */
  409. public static function isDownForMaintenance(){
  410. //Method inherited from \Illuminate\Foundation\Application
  411. return \Illuminate\Foundation\Application::isDownForMaintenance();
  412. }
  413. /**
  414. * Register a maintenance mode event listener.
  415. *
  416. * @param \Closure $callback
  417. * @return void
  418. * @static
  419. */
  420. public static function down($callback){
  421. //Method inherited from \Illuminate\Foundation\Application
  422. \Illuminate\Foundation\Application::down($callback);
  423. }
  424. /**
  425. * Throw an HttpException with the given data.
  426. *
  427. * @param int $code
  428. * @param string $message
  429. * @param array $headers
  430. * @return void
  431. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  432. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  433. * @static
  434. */
  435. public static function abort($code, $message = '', $headers = array()){
  436. //Method inherited from \Illuminate\Foundation\Application
  437. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  438. }
  439. /**
  440. * Register a 404 error handler.
  441. *
  442. * @param Closure $callback
  443. * @return void
  444. * @static
  445. */
  446. public static function missing($callback){
  447. //Method inherited from \Illuminate\Foundation\Application
  448. \Illuminate\Foundation\Application::missing($callback);
  449. }
  450. /**
  451. * Register an application error handler.
  452. *
  453. * @param \Closure $callback
  454. * @return void
  455. * @static
  456. */
  457. public static function error($callback){
  458. //Method inherited from \Illuminate\Foundation\Application
  459. \Illuminate\Foundation\Application::error($callback);
  460. }
  461. /**
  462. * Register an error handler at the bottom of the stack.
  463. *
  464. * @param \Closure $callback
  465. * @return void
  466. * @static
  467. */
  468. public static function pushError($callback){
  469. //Method inherited from \Illuminate\Foundation\Application
  470. \Illuminate\Foundation\Application::pushError($callback);
  471. }
  472. /**
  473. * Register an error handler for fatal errors.
  474. *
  475. * @param Closure $callback
  476. * @return void
  477. * @static
  478. */
  479. public static function fatal($callback){
  480. //Method inherited from \Illuminate\Foundation\Application
  481. \Illuminate\Foundation\Application::fatal($callback);
  482. }
  483. /**
  484. * Get the configuration loader instance.
  485. *
  486. * @return \Illuminate\Config\LoaderInterface
  487. * @static
  488. */
  489. public static function getConfigLoader(){
  490. //Method inherited from \Illuminate\Foundation\Application
  491. return \Illuminate\Foundation\Application::getConfigLoader();
  492. }
  493. /**
  494. * Get the environment variables loader instance.
  495. *
  496. * @return \Illuminate\Config\EnvironmentVariablesLoaderInterface
  497. * @static
  498. */
  499. public static function getEnvironmentVariablesLoader(){
  500. //Method inherited from \Illuminate\Foundation\Application
  501. return \Illuminate\Foundation\Application::getEnvironmentVariablesLoader();
  502. }
  503. /**
  504. * Get the service provider repository instance.
  505. *
  506. * @return \Illuminate\Foundation\ProviderRepository
  507. * @static
  508. */
  509. public static function getProviderRepository(){
  510. //Method inherited from \Illuminate\Foundation\Application
  511. return \Illuminate\Foundation\Application::getProviderRepository();
  512. }
  513. /**
  514. * Get the service providers that have been loaded.
  515. *
  516. * @return array
  517. * @static
  518. */
  519. public static function getLoadedProviders(){
  520. //Method inherited from \Illuminate\Foundation\Application
  521. return \Illuminate\Foundation\Application::getLoadedProviders();
  522. }
  523. /**
  524. * Set the application's deferred services.
  525. *
  526. * @param array $services
  527. * @return void
  528. * @static
  529. */
  530. public static function setDeferredServices($services){
  531. //Method inherited from \Illuminate\Foundation\Application
  532. \Illuminate\Foundation\Application::setDeferredServices($services);
  533. }
  534. /**
  535. * Determine if the given service is a deferred service.
  536. *
  537. * @param string $service
  538. * @return bool
  539. * @static
  540. */
  541. public static function isDeferredService($service){
  542. //Method inherited from \Illuminate\Foundation\Application
  543. return \Illuminate\Foundation\Application::isDeferredService($service);
  544. }
  545. /**
  546. * Get or set the request class for the application.
  547. *
  548. * @param string $class
  549. * @return string
  550. * @static
  551. */
  552. public static function requestClass($class = null){
  553. //Method inherited from \Illuminate\Foundation\Application
  554. return \Illuminate\Foundation\Application::requestClass($class);
  555. }
  556. /**
  557. * Set the application request for the console environment.
  558. *
  559. * @return void
  560. * @static
  561. */
  562. public static function setRequestForConsoleEnvironment(){
  563. //Method inherited from \Illuminate\Foundation\Application
  564. \Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
  565. }
  566. /**
  567. * Call a method on the default request class.
  568. *
  569. * @param string $method
  570. * @param array $parameters
  571. * @return mixed
  572. * @static
  573. */
  574. public static function onRequest($method, $parameters = array()){
  575. //Method inherited from \Illuminate\Foundation\Application
  576. return \Illuminate\Foundation\Application::onRequest($method, $parameters);
  577. }
  578. /**
  579. * Get the current application locale.
  580. *
  581. * @return string
  582. * @static
  583. */
  584. public static function getLocale(){
  585. //Method inherited from \Illuminate\Foundation\Application
  586. return \Illuminate\Foundation\Application::getLocale();
  587. }
  588. /**
  589. * Set the current application locale.
  590. *
  591. * @param string $locale
  592. * @return void
  593. * @static
  594. */
  595. public static function setLocale($locale){
  596. //Method inherited from \Illuminate\Foundation\Application
  597. \Illuminate\Foundation\Application::setLocale($locale);
  598. }
  599. /**
  600. * Register the core class aliases in the container.
  601. *
  602. * @return void
  603. * @static
  604. */
  605. public static function registerCoreContainerAliases(){
  606. //Method inherited from \Illuminate\Foundation\Application
  607. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  608. }
  609. /**
  610. * Dynamically access application services.
  611. *
  612. * @param string $key
  613. * @return mixed
  614. * @static
  615. */
  616. public static function __get($key){
  617. //Method inherited from \Illuminate\Foundation\Application
  618. return \Illuminate\Foundation\Application::__get($key);
  619. }
  620. /**
  621. * Dynamically set application services.
  622. *
  623. * @param string $key
  624. * @param mixed $value
  625. * @return void
  626. * @static
  627. */
  628. public static function __set($key, $value){
  629. //Method inherited from \Illuminate\Foundation\Application
  630. \Illuminate\Foundation\Application::__set($key, $value);
  631. }
  632. /**
  633. * Determine if the given abstract type has been bound.
  634. *
  635. * @param string $abstract
  636. * @return bool
  637. * @static
  638. */
  639. public static function bound($abstract){
  640. //Method inherited from \Illuminate\Container\Container
  641. return \Illuminate\Foundation\Application::bound($abstract);
  642. }
  643. /**
  644. * Determine if a given string is an alias.
  645. *
  646. * @param string $name
  647. * @return bool
  648. * @static
  649. */
  650. public static function isAlias($name){
  651. //Method inherited from \Illuminate\Container\Container
  652. return \Illuminate\Foundation\Application::isAlias($name);
  653. }
  654. /**
  655. * Register a binding with the container.
  656. *
  657. * @param string $abstract
  658. * @param Closure|string|null $concrete
  659. * @param bool $shared
  660. * @return void
  661. * @static
  662. */
  663. public static function bind($abstract, $concrete = null, $shared = false){
  664. //Method inherited from \Illuminate\Container\Container
  665. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  666. }
  667. /**
  668. * Register a binding if it hasn't already been registered.
  669. *
  670. * @param string $abstract
  671. * @param Closure|string|null $concrete
  672. * @param bool $shared
  673. * @return bool
  674. * @static
  675. */
  676. public static function bindIf($abstract, $concrete = null, $shared = false){
  677. //Method inherited from \Illuminate\Container\Container
  678. return \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  679. }
  680. /**
  681. * Register a shared binding in the container.
  682. *
  683. * @param string $abstract
  684. * @param Closure|string|null $concrete
  685. * @return void
  686. * @static
  687. */
  688. public static function singleton($abstract, $concrete = null){
  689. //Method inherited from \Illuminate\Container\Container
  690. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  691. }
  692. /**
  693. * Wrap a Closure such that it is shared.
  694. *
  695. * @param Closure $closure
  696. * @return Closure
  697. * @static
  698. */
  699. public static function share($closure){
  700. //Method inherited from \Illuminate\Container\Container
  701. return \Illuminate\Foundation\Application::share($closure);
  702. }
  703. /**
  704. * Bind a shared Closure into the container.
  705. *
  706. * @param string $abstract
  707. * @param \Closure $closure
  708. * @return void
  709. * @static
  710. */
  711. public static function bindShared($abstract, $closure){
  712. //Method inherited from \Illuminate\Container\Container
  713. \Illuminate\Foundation\Application::bindShared($abstract, $closure);
  714. }
  715. /**
  716. * "Extend" an abstract type in the container.
  717. *
  718. * @param string $abstract
  719. * @param Closure $closure
  720. * @return void
  721. * @throws \InvalidArgumentException
  722. * @static
  723. */
  724. public static function extend($abstract, $closure){
  725. //Method inherited from \Illuminate\Container\Container
  726. \Illuminate\Foundation\Application::extend($abstract, $closure);
  727. }
  728. /**
  729. * Register an existing instance as shared in the container.
  730. *
  731. * @param string $abstract
  732. * @param mixed $instance
  733. * @return void
  734. * @static
  735. */
  736. public static function instance($abstract, $instance){
  737. //Method inherited from \Illuminate\Container\Container
  738. \Illuminate\Foundation\Application::instance($abstract, $instance);
  739. }
  740. /**
  741. * Alias a type to a shorter name.
  742. *
  743. * @param string $abstract
  744. * @param string $alias
  745. * @return void
  746. * @static
  747. */
  748. public static function alias($abstract, $alias){
  749. //Method inherited from \Illuminate\Container\Container
  750. \Illuminate\Foundation\Application::alias($abstract, $alias);
  751. }
  752. /**
  753. * Bind a new callback to an abstract's rebind event.
  754. *
  755. * @param string $abstract
  756. * @param \Closure $callback
  757. * @return mixed
  758. * @static
  759. */
  760. public static function rebinding($abstract, $callback){
  761. //Method inherited from \Illuminate\Container\Container
  762. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  763. }
  764. /**
  765. * Refresh an instance on the given target and method.
  766. *
  767. * @param string $abstract
  768. * @param mixed $target
  769. * @param string $method
  770. * @return mixed
  771. * @static
  772. */
  773. public static function refresh($abstract, $target, $method){
  774. //Method inherited from \Illuminate\Container\Container
  775. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  776. }
  777. /**
  778. * Instantiate a concrete instance of the given type.
  779. *
  780. * @param string $concrete
  781. * @param array $parameters
  782. * @return mixed
  783. * @throws BindingResolutionException
  784. * @static
  785. */
  786. public static function build($concrete, $parameters = array()){
  787. //Method inherited from \Illuminate\Container\Container
  788. return \Illuminate\Foundation\Application::build($concrete, $parameters);
  789. }
  790. /**
  791. * Register a new resolving callback.
  792. *
  793. * @param string $abstract
  794. * @param \Closure $callback
  795. * @return void
  796. * @static
  797. */
  798. public static function resolving($abstract, $callback){
  799. //Method inherited from \Illuminate\Container\Container
  800. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  801. }
  802. /**
  803. * Register a new resolving callback for all types.
  804. *
  805. * @param \Closure $callback
  806. * @return void
  807. * @static
  808. */
  809. public static function resolvingAny($callback){
  810. //Method inherited from \Illuminate\Container\Container
  811. \Illuminate\Foundation\Application::resolvingAny($callback);
  812. }
  813. /**
  814. * Determine if a given type is shared.
  815. *
  816. * @param string $abstract
  817. * @return bool
  818. * @static
  819. */
  820. public static function isShared($abstract){
  821. //Method inherited from \Illuminate\Container\Container
  822. return \Illuminate\Foundation\Application::isShared($abstract);
  823. }
  824. /**
  825. * Get the container's bindings.
  826. *
  827. * @return array
  828. * @static
  829. */
  830. public static function getBindings(){
  831. //Method inherited from \Illuminate\Container\Container
  832. return \Illuminate\Foundation\Application::getBindings();
  833. }
  834. /**
  835. * Remove a resolved instance from the instance cache.
  836. *
  837. * @param string $abstract
  838. * @return void
  839. * @static
  840. */
  841. public static function forgetInstance($abstract){
  842. //Method inherited from \Illuminate\Container\Container
  843. \Illuminate\Foundation\Application::forgetInstance($abstract);
  844. }
  845. /**
  846. * Clear all of the instances from the container.
  847. *
  848. * @return void
  849. * @static
  850. */
  851. public static function forgetInstances(){
  852. //Method inherited from \Illuminate\Container\Container
  853. \Illuminate\Foundation\Application::forgetInstances();
  854. }
  855. /**
  856. * Determine if a given offset exists.
  857. *
  858. * @param string $key
  859. * @return bool
  860. * @static
  861. */
  862. public static function offsetExists($key){
  863. //Method inherited from \Illuminate\Container\Container
  864. return \Illuminate\Foundation\Application::offsetExists($key);
  865. }
  866. /**
  867. * Get the value at a given offset.
  868. *
  869. * @param string $key
  870. * @return mixed
  871. * @static
  872. */
  873. public static function offsetGet($key){
  874. //Method inherited from \Illuminate\Container\Container
  875. return \Illuminate\Foundation\Application::offsetGet($key);
  876. }
  877. /**
  878. * Set the value at a given offset.
  879. *
  880. * @param string $key
  881. * @param mixed $value
  882. * @return void
  883. * @static
  884. */
  885. public static function offsetSet($key, $value){
  886. //Method inherited from \Illuminate\Container\Container
  887. \Illuminate\Foundation\Application::offsetSet($key, $value);
  888. }
  889. /**
  890. * Unset the value at a given offset.
  891. *
  892. * @param string $key
  893. * @return void
  894. * @static
  895. */
  896. public static function offsetUnset($key){
  897. //Method inherited from \Illuminate\Container\Container
  898. \Illuminate\Foundation\Application::offsetUnset($key);
  899. }
  900. }
  901. class Artisan extends \Illuminate\Support\Facades\Artisan{
  902. /**
  903. * Create and boot a new Console application.
  904. *
  905. * @param \Illuminate\Foundation\Application $app
  906. * @return \Illuminate\Console\Application
  907. * @static
  908. */
  909. public static function start($app){
  910. //Method inherited from \Illuminate\Console\Application
  911. return \Illuminate\Console\Application::start($app);
  912. }
  913. /**
  914. * Create a new Console application.
  915. *
  916. * @param \Illuminate\Foundation\Application $app
  917. * @return \Illuminate\Console\Application
  918. * @static
  919. */
  920. public static function make($app){
  921. //Method inherited from \Illuminate\Console\Application
  922. return \Illuminate\Console\Application::make($app);
  923. }
  924. /**
  925. * Boot the Console application.
  926. *
  927. * @return \Illuminate\Console\Application
  928. * @static
  929. */
  930. public static function boot(){
  931. //Method inherited from \Illuminate\Console\Application
  932. return \Illuminate\Console\Application::boot();
  933. }
  934. /**
  935. * Run an Artisan console command by name.
  936. *
  937. * @param string $command
  938. * @param array $parameters
  939. * @param \Symfony\Component\Console\Output\OutputInterface $output
  940. * @return void
  941. * @static
  942. */
  943. public static function call($command, $parameters = array(), $output = null){
  944. //Method inherited from \Illuminate\Console\Application
  945. \Illuminate\Console\Application::call($command, $parameters, $output);
  946. }
  947. /**
  948. * Add a command to the console.
  949. *
  950. * @param \Symfony\Component\Console\Command\Command $command
  951. * @return \Symfony\Component\Console\Command\Command
  952. * @static
  953. */
  954. public static function add($command){
  955. //Method inherited from \Illuminate\Console\Application
  956. return \Illuminate\Console\Application::add($command);
  957. }
  958. /**
  959. * Add a command, resolving through the application.
  960. *
  961. * @param string $command
  962. * @return \Symfony\Component\Console\Command\Command
  963. * @static
  964. */
  965. public static function resolve($command){
  966. //Method inherited from \Illuminate\Console\Application
  967. return \Illuminate\Console\Application::resolve($command);
  968. }
  969. /**
  970. * Resolve an array of commands through the application.
  971. *
  972. * @param array|dynamic $commands
  973. * @return void
  974. * @static
  975. */
  976. public static function resolveCommands($commands){
  977. //Method inherited from \Illuminate\Console\Application
  978. \Illuminate\Console\Application::resolveCommands($commands);
  979. }
  980. /**
  981. * Render the given exception.
  982. *
  983. * @param \Exception $e
  984. * @param \Symfony\Component\Console\Output\OutputInterface $output
  985. * @return void
  986. * @static
  987. */
  988. public static function renderException($e, $output){
  989. //Method inherited from \Illuminate\Console\Application
  990. \Illuminate\Console\Application::renderException($e, $output);
  991. }
  992. /**
  993. * Set the exception handler instance.
  994. *
  995. * @param \Illuminate\Exception\Handler $handler
  996. * @return \Illuminate\Console\Application
  997. * @static
  998. */
  999. public static function setExceptionHandler($handler){
  1000. //Method inherited from \Illuminate\Console\Application
  1001. return \Illuminate\Console\Application::setExceptionHandler($handler);
  1002. }
  1003. /**
  1004. * Set the Laravel application instance.
  1005. *
  1006. * @param \Illuminate\Foundation\Application $laravel
  1007. * @return \Illuminate\Console\Application
  1008. * @static
  1009. */
  1010. public static function setLaravel($laravel){
  1011. //Method inherited from \Illuminate\Console\Application
  1012. return \Illuminate\Console\Application::setLaravel($laravel);
  1013. }
  1014. /**
  1015. * Set whether the Console app should auto-exit when done.
  1016. *
  1017. * @param bool $boolean
  1018. * @return \Illuminate\Console\Application
  1019. * @static
  1020. */
  1021. public static function setAutoExit($boolean){
  1022. //Method inherited from \Illuminate\Console\Application
  1023. return \Illuminate\Console\Application::setAutoExit($boolean);
  1024. }
  1025. /**
  1026. * Constructor.
  1027. *
  1028. * @param string $name The name of the application
  1029. * @param string $version The version of the application
  1030. * @api
  1031. * @static
  1032. */
  1033. public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
  1034. //Method inherited from \Symfony\Component\Console\Application
  1035. \Illuminate\Console\Application::__construct($name, $version);
  1036. }
  1037. /**
  1038. *
  1039. *
  1040. * @static
  1041. */
  1042. public static function setDispatcher($dispatcher){
  1043. //Method inherited from \Symfony\Component\Console\Application
  1044. \Illuminate\Console\Application::setDispatcher($dispatcher);
  1045. }
  1046. /**
  1047. * Runs the current application.
  1048. *
  1049. * @param InputInterface $input An Input instance
  1050. * @param OutputInterface $output An Output instance
  1051. * @return int 0 if everything went fine, or an error code
  1052. * @throws \Exception When doRun returns Exception
  1053. * @api
  1054. * @static
  1055. */
  1056. public static function run($input = null, $output = null){
  1057. //Method inherited from \Symfony\Component\Console\Application
  1058. return \Illuminate\Console\Application::run($input, $output);
  1059. }
  1060. /**
  1061. * Runs the current application.
  1062. *
  1063. * @param InputInterface $input An Input instance
  1064. * @param OutputInterface $output An Output instance
  1065. * @return int 0 if everything went fine, or an error code
  1066. * @static
  1067. */
  1068. public static function doRun($input, $output){
  1069. //Method inherited from \Symfony\Component\Console\Application
  1070. return \Illuminate\Console\Application::doRun($input, $output);
  1071. }
  1072. /**
  1073. * Set a helper set to be used with the command.
  1074. *
  1075. * @param HelperSet $helperSet The helper set
  1076. * @api
  1077. * @static
  1078. */
  1079. public static function setHelperSet($helperSet){
  1080. //Method inherited from \Symfony\Component\Console\Application
  1081. \Illuminate\Console\Application::setHelperSet($helperSet);
  1082. }
  1083. /**
  1084. * Get the helper set associated with the command.
  1085. *
  1086. * @return HelperSet The HelperSet instance associated with this command
  1087. * @api
  1088. * @static
  1089. */
  1090. public static function getHelperSet(){
  1091. //Method inherited from \Symfony\Component\Console\Application
  1092. return \Illuminate\Console\Application::getHelperSet();
  1093. }
  1094. /**
  1095. * Set an input definition set to be used with this application
  1096. *
  1097. * @param InputDefinition $definition The input definition
  1098. * @api
  1099. * @static
  1100. */
  1101. public static function setDefinition($definition){
  1102. //Method inherited from \Symfony\Component\Console\Application
  1103. \Illuminate\Console\Application::setDefinition($definition);
  1104. }
  1105. /**
  1106. * Gets the InputDefinition related to this Application.
  1107. *
  1108. * @return InputDefinition The InputDefinition instance
  1109. * @static
  1110. */
  1111. public static function getDefinition(){
  1112. //Method inherited from \Symfony\Component\Console\Application
  1113. return \Illuminate\Console\Application::getDefinition();
  1114. }
  1115. /**
  1116. * Gets the help message.
  1117. *
  1118. * @return string A help message.
  1119. * @static
  1120. */
  1121. public static function getHelp(){
  1122. //Method inherited from \Symfony\Component\Console\Application
  1123. return \Illuminate\Console\Application::getHelp();
  1124. }
  1125. /**
  1126. * Sets whether to catch exceptions or not during commands execution.
  1127. *
  1128. * @param bool $boolean Whether to catch exceptions or not during commands execution
  1129. * @api
  1130. * @static
  1131. */
  1132. public static function setCatchExceptions($boolean){
  1133. //Method inherited from \Symfony\Component\Console\Application
  1134. \Illuminate\Console\Application::setCatchExceptions($boolean);
  1135. }
  1136. /**
  1137. * Gets the name of the application.
  1138. *
  1139. * @return string The application name
  1140. * @api
  1141. * @static
  1142. */
  1143. public static function getName(){
  1144. //Method inherited from \Symfony\Component\Console\Application
  1145. return \Illuminate\Console\Application::getName();
  1146. }
  1147. /**
  1148. * Sets the application name.
  1149. *
  1150. * @param string $name The application name
  1151. * @api
  1152. * @static
  1153. */
  1154. public static function setName($name){
  1155. //Method inherited from \Symfony\Component\Console\Application
  1156. \Illuminate\Console\Application::setName($name);
  1157. }
  1158. /**
  1159. * Gets the application version.
  1160. *
  1161. * @return string The application version
  1162. * @api
  1163. * @static
  1164. */
  1165. public static function getVersion(){
  1166. //Method inherited from \Symfony\Component\Console\Application
  1167. return \Illuminate\Console\Application::getVersion();
  1168. }
  1169. /**
  1170. * Sets the application version.
  1171. *
  1172. * @param string $version The application version
  1173. * @api
  1174. * @static
  1175. */
  1176. public static function setVersion($version){
  1177. //Method inherited from \Symfony\Component\Console\Application
  1178. \Illuminate\Console\Application::setVersion($version);
  1179. }
  1180. /**
  1181. * Returns the long version of the application.
  1182. *
  1183. * @return string The long application version
  1184. * @api
  1185. * @static
  1186. */
  1187. public static function getLongVersion(){
  1188. //Method inherited from \Symfony\Component\Console\Application
  1189. return \Illuminate\Console\Application::getLongVersion();
  1190. }
  1191. /**
  1192. * Registers a new command.
  1193. *
  1194. * @param string $name The command name
  1195. * @return Command The newly created command
  1196. * @api
  1197. * @static
  1198. */
  1199. public static function register($name){
  1200. //Method inherited from \Symfony\Component\Console\Application
  1201. return \Illuminate\Console\Application::register($name);
  1202. }
  1203. /**
  1204. * Adds an array of command objects.
  1205. *
  1206. * @param Command[] $commands An array of commands
  1207. * @api
  1208. * @static
  1209. */
  1210. public static function addCommands($commands){
  1211. //Method inherited from \Symfony\Component\Console\Application
  1212. \Illuminate\Console\Application::addCommands($commands);
  1213. }
  1214. /**
  1215. * Returns a registered command by name or alias.
  1216. *
  1217. * @param string $name The command name or alias
  1218. * @return Command A Command object
  1219. * @throws \InvalidArgumentException When command name given does not exist
  1220. * @api
  1221. * @static
  1222. */
  1223. public static function get($name){
  1224. //Method inherited from \Symfony\Component\Console\Application
  1225. return \Illuminate\Console\Application::get($name);
  1226. }
  1227. /**
  1228. * Returns true if the command exists, false otherwise.
  1229. *
  1230. * @param string $name The command name or alias
  1231. * @return bool true if the command exists, false otherwise
  1232. * @api
  1233. * @static
  1234. */
  1235. public static function has($name){
  1236. //Method inherited from \Symfony\Component\Console\Application
  1237. return \Illuminate\Console\Application::has($name);
  1238. }
  1239. /**
  1240. * Returns an array of all unique namespaces used by currently registered commands.
  1241. *
  1242. * It does not returns the global namespace which always exists.
  1243. *
  1244. * @return array An array of namespaces
  1245. * @static
  1246. */
  1247. public static function getNamespaces(){
  1248. //Method inherited from \Symfony\Component\Console\Application
  1249. return \Illuminate\Console\Application::getNamespaces();
  1250. }
  1251. /**
  1252. * Finds a registered namespace by a name or an abbreviation.
  1253. *
  1254. * @param string $namespace A namespace or abbreviation to search for
  1255. * @return string A registered namespace
  1256. * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
  1257. * @static
  1258. */
  1259. public static function findNamespace($namespace){
  1260. //Method inherited from \Symfony\Component\Console\Application
  1261. return \Illuminate\Console\Application::findNamespace($namespace);
  1262. }
  1263. /**
  1264. * Finds a command by name or alias.
  1265. *
  1266. * Contrary to get, this command tries to find the best
  1267. * match if you give it an abbreviation of a name or alias.
  1268. *
  1269. * @param string $name A command name or a command alias
  1270. * @return Command A Command instance
  1271. * @throws \InvalidArgumentException When command name is incorrect or ambiguous
  1272. * @api
  1273. * @static
  1274. */
  1275. public static function find($name){
  1276. //Method inherited from \Symfony\Component\Console\Application
  1277. return \Illuminate\Console\Application::find($name);
  1278. }
  1279. /**
  1280. * Gets the commands (registered in the given namespace if provided).
  1281. *
  1282. * The array keys are the full names and the values the command instances.
  1283. *
  1284. * @param string $namespace A namespace name
  1285. * @return Command[] An array of Command instances
  1286. * @api
  1287. * @static
  1288. */
  1289. public static function all($namespace = null){
  1290. //Method inherited from \Symfony\Component\Console\Application
  1291. return \Illuminate\Console\Application::all($namespace);
  1292. }
  1293. /**
  1294. * Returns an array of possible abbreviations given a set of names.
  1295. *
  1296. * @param array $names An array of names
  1297. * @return array An array of abbreviations
  1298. * @static
  1299. */
  1300. public static function getAbbreviations($names){
  1301. //Method inherited from \Symfony\Component\Console\Application
  1302. return \Illuminate\Console\Application::getAbbreviations($names);
  1303. }
  1304. /**
  1305. * Returns a text representation of the Application.
  1306. *
  1307. * @param string $namespace An optional namespace name
  1308. * @param bool $raw Whether to return raw command list
  1309. * @return string A string representing the Application
  1310. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1311. * @static
  1312. */
  1313. public static function asText($namespace = null, $raw = false){
  1314. //Method inherited from \Symfony\Component\Console\Application
  1315. return \Illuminate\Console\Application::asText($namespace, $raw);
  1316. }
  1317. /**
  1318. * Returns an XML representation of the Application.
  1319. *
  1320. * @param string $namespace An optional namespace name
  1321. * @param bool $asDom Whether to return a DOM or an XML string
  1322. * @return string|\DOMDocument An XML string representing the Application
  1323. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1324. * @static
  1325. */
  1326. public static function asXml($namespace = null, $asDom = false){
  1327. //Method inherited from \Symfony\Component\Console\Application
  1328. return \Illuminate\Console\Application::asXml($namespace, $asDom);
  1329. }
  1330. /**
  1331. * Tries to figure out the terminal dimensions based on the current environment
  1332. *
  1333. * @return array Array containing width and height
  1334. * @static
  1335. */
  1336. public static function getTerminalDimensions(){
  1337. //Method inherited from \Symfony\Component\Console\Application
  1338. return \Illuminate\Console\Application::getTerminalDimensions();
  1339. }
  1340. /**
  1341. * Sets terminal dimensions.
  1342. *
  1343. * Can be useful to force terminal dimensions for functional tests.
  1344. *
  1345. * @param int $width The width
  1346. * @param int $height The height
  1347. * @return Application The current application
  1348. * @static
  1349. */
  1350. public static function setTerminalDimensions($width, $height){
  1351. //Method inherited from \Symfony\Component\Console\Application
  1352. return \Illuminate\Console\Application::setTerminalDimensions($width, $height);
  1353. }
  1354. /**
  1355. * Returns the namespace part of the command name.
  1356. *
  1357. * This method is not part of public API and should not be used directly.
  1358. *
  1359. * @param string $name The full name of the command
  1360. * @param string $limit The maximum number of parts of the namespace
  1361. * @return string The namespace of the command
  1362. * @static
  1363. */
  1364. public static function extractNamespace($name, $limit = null){
  1365. //Method inherited from \Symfony\Component\Console\Application
  1366. return \Illuminate\Console\Application::extractNamespace($name, $limit);
  1367. }
  1368. /**
  1369. * Sets the default Command name.
  1370. *
  1371. * @param string $commandName The Command name
  1372. * @static
  1373. */
  1374. public static function setDefaultCommand($commandName){
  1375. //Method inherited from \Symfony\Component\Console\Application
  1376. \Illuminate\Console\Application::setDefaultCommand($commandName);
  1377. }
  1378. /**
  1379. * Dynamically pass all missing methods to console Artisan.
  1380. *
  1381. * @param string $method
  1382. * @param array $parameters
  1383. * @return mixed
  1384. * @static
  1385. */
  1386. public static function __call($method, $parameters){
  1387. //Method inherited from \Illuminate\Foundation\Artisan
  1388. return \Illuminate\Foundation\Artisan::__call($method, $parameters);
  1389. }
  1390. }
  1391. class Auth extends \Illuminate\Support\Facades\Auth{
  1392. /**
  1393. * Create an instance of the database driver.
  1394. *
  1395. * @return \Illuminate\Auth\Guard
  1396. * @static
  1397. */
  1398. public static function createDatabaseDriver(){
  1399. //Method inherited from \Illuminate\Auth\AuthManager
  1400. return \Illuminate\Auth\AuthManager::createDatabaseDriver();
  1401. }
  1402. /**
  1403. * Create an instance of the Eloquent driver.
  1404. *
  1405. * @return \Illuminate\Auth\Guard
  1406. * @static
  1407. */
  1408. public static function createEloquentDriver(){
  1409. //Method inherited from \Illuminate\Auth\AuthManager
  1410. return \Illuminate\Auth\AuthManager::createEloquentDriver();
  1411. }
  1412. /**
  1413. * Get the default authentication driver name.
  1414. *
  1415. * @return string
  1416. * @static
  1417. */
  1418. public static function getDefaultDriver(){
  1419. //Method inherited from \Illuminate\Auth\AuthManager
  1420. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1421. }
  1422. /**
  1423. * Set the default authentication driver name.
  1424. *
  1425. * @param string $name
  1426. * @return void
  1427. * @static
  1428. */
  1429. public static function setDefaultDriver($name){
  1430. //Method inherited from \Illuminate\Auth\AuthManager
  1431. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1432. }
  1433. /**
  1434. * Create a new manager instance.
  1435. *
  1436. * @param \Illuminate\Foundation\Application $app
  1437. * @return void
  1438. * @static
  1439. */
  1440. public static function __construct($app){
  1441. //Method inherited from \Illuminate\Support\Manager
  1442. \Illuminate\Auth\AuthManager::__construct($app);
  1443. }
  1444. /**
  1445. * Get a driver instance.
  1446. *
  1447. * @param string $driver
  1448. * @return mixed
  1449. * @static
  1450. */
  1451. public static function driver($driver = null){
  1452. //Method inherited from \Illuminate\Support\Manager
  1453. return \Illuminate\Auth\AuthManager::driver($driver);
  1454. }
  1455. /**
  1456. * Register a custom driver creator Closure.
  1457. *
  1458. * @param string $driver
  1459. * @param Closure $callback
  1460. * @return \Illuminate\Support\Manager|static
  1461. * @static
  1462. */
  1463. public static function extend($driver, $callback){
  1464. //Method inherited from \Illuminate\Support\Manager
  1465. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1466. }
  1467. /**
  1468. * Get all of the created "drivers".
  1469. *
  1470. * @return array
  1471. * @static
  1472. */
  1473. public static function getDrivers(){
  1474. //Method inherited from \Illuminate\Support\Manager
  1475. return \Illuminate\Auth\AuthManager::getDrivers();
  1476. }
  1477. /**
  1478. * Dynamically call the default driver instance.
  1479. *
  1480. * @param string $method
  1481. * @param array $parameters
  1482. * @return mixed
  1483. * @static
  1484. */
  1485. public static function __call($method, $parameters){
  1486. //Method inherited from \Illuminate\Support\Manager
  1487. return \Illuminate\Auth\AuthManager::__call($method, $parameters);
  1488. }
  1489. /**
  1490. * Determine if the current user is authenticated.
  1491. *
  1492. * @return bool
  1493. * @static
  1494. */
  1495. public static function check(){
  1496. //Method inherited from \Illuminate\Auth\Guard
  1497. return \Illuminate\Auth\Guard::check();
  1498. }
  1499. /**
  1500. * Determine if the current user is a guest.
  1501. *
  1502. * @return bool
  1503. * @static
  1504. */
  1505. public static function guest(){
  1506. //Method inherited from \Illuminate\Auth\Guard
  1507. return \Illuminate\Auth\Guard::guest();
  1508. }
  1509. /**
  1510. * Get the currently authenticated user.
  1511. *
  1512. * @return \Illuminate\Auth\UserInterface|null
  1513. * @static
  1514. */
  1515. public static function user(){
  1516. //Method inherited from \Illuminate\Auth\Guard
  1517. return \Illuminate\Auth\Guard::user();
  1518. }
  1519. /**
  1520. * Get the ID for the currently authenticated user.
  1521. *
  1522. * @return int|null
  1523. * @static
  1524. */
  1525. public static function id(){
  1526. //Method inherited from \Illuminate\Auth\Guard
  1527. return \Illuminate\Auth\Guard::id();
  1528. }
  1529. /**
  1530. * Log a user into the application without sessions or cookies.
  1531. *
  1532. * @param array $credentials
  1533. * @return bool
  1534. * @static
  1535. */
  1536. public static function once($credentials = array()){
  1537. //Method inherited from \Illuminate\Auth\Guard
  1538. return \Illuminate\Auth\Guard::once($credentials);
  1539. }
  1540. /**
  1541. * Validate a user's credentials.
  1542. *
  1543. * @param array $credentials
  1544. * @return bool
  1545. * @static
  1546. */
  1547. public static function validate($credentials = array()){
  1548. //Method inherited from \Illuminate\Auth\Guard
  1549. return \Illuminate\Auth\Guard::validate($credentials);
  1550. }
  1551. /**
  1552. * Attempt to authenticate using HTTP Basic Auth.
  1553. *
  1554. * @param string $field
  1555. * @param \Symfony\Component\HttpFoundation\Request $request
  1556. * @return \Symfony\Component\HttpFoundation\Response|null
  1557. * @static
  1558. */
  1559. public static function basic($field = 'email', $request = null){
  1560. //Method inherited from \Illuminate\Auth\Guard
  1561. return \Illuminate\Auth\Guard::basic($field, $request);
  1562. }
  1563. /**
  1564. * Perform a stateless HTTP Basic login attempt.
  1565. *
  1566. * @param string $field
  1567. * @param \Symfony\Component\HttpFoundation\Request $request
  1568. * @return \Symfony\Component\HttpFoundation\Response|null
  1569. * @static
  1570. */
  1571. public static function onceBasic($field = 'email', $request = null){
  1572. //Method inherited from \Illuminate\Auth\Guard
  1573. return \Illuminate\Auth\Guard::onceBasic($field, $request);
  1574. }
  1575. /**
  1576. * Attempt to authenticate a user using the given credentials.
  1577. *
  1578. * @param array $credentials
  1579. * @param bool $remember
  1580. * @param bool $login
  1581. * @return bool
  1582. * @static
  1583. */
  1584. public static function attempt($credentials = array(), $remember = false, $login = true){
  1585. //Method inherited from \Illuminate\Auth\Guard
  1586. return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
  1587. }
  1588. /**
  1589. * Register an authentication attempt event listener.
  1590. *
  1591. * @param mixed $callback
  1592. * @return void
  1593. * @static
  1594. */
  1595. public static function attempting($callback){
  1596. //Method inherited from \Illuminate\Auth\Guard
  1597. \Illuminate\Auth\Guard::attempting($callback);
  1598. }
  1599. /**
  1600. * Log a user into the application.
  1601. *
  1602. * @param \Illuminate\Auth\UserInterface $user
  1603. * @param bool $remember
  1604. * @return void
  1605. * @static
  1606. */
  1607. public static function login($user, $remember = false){
  1608. //Method inherited from \Illuminate\Auth\Guard
  1609. \Illuminate\Auth\Guard::login($user, $remember);
  1610. }
  1611. /**
  1612. * Log the given user ID into the application.
  1613. *
  1614. * @param mixed $id
  1615. * @param bool $remember
  1616. * @return \Illuminate\Auth\UserInterface
  1617. * @static
  1618. */
  1619. public static function loginUsingId($id, $remember = false){
  1620. //Method inherited from \Illuminate\Auth\Guard
  1621. return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
  1622. }
  1623. /**
  1624. * Log the given user ID into the application without sessions or cookies.
  1625. *
  1626. * @param mixed $id
  1627. * @return bool
  1628. * @static
  1629. */
  1630. public static function onceUsingId($id){
  1631. //Method inherited from \Illuminate\Auth\Guard
  1632. return \Illuminate\Auth\Guard::onceUsingId($id);
  1633. }
  1634. /**
  1635. * Log the user out of the application.
  1636. *
  1637. * @return void
  1638. * @static
  1639. */
  1640. public static function logout(){
  1641. //Method inherited from \Illuminate\Auth\Guard
  1642. \Illuminate\Auth\Guard::logout();
  1643. }
  1644. /**
  1645. * Get the cookie creator instance used by the guard.
  1646. *
  1647. * @return \Illuminate\Cookie\CookieJar
  1648. * @throws \RuntimeException
  1649. * @static
  1650. */
  1651. public static function getCookieJar(){
  1652. //Method inherited from \Illuminate\Auth\Guard
  1653. return \Illuminate\Auth\Guard::getCookieJar();
  1654. }
  1655. /**
  1656. * Set the cookie creator instance used by the guard.
  1657. *
  1658. * @param \Illuminate\Cookie\CookieJar $cookie
  1659. * @return void
  1660. * @static
  1661. */
  1662. public static function setCookieJar($cookie){
  1663. //Method inherited from \Illuminate\Auth\Guard
  1664. \Illuminate\Auth\Guard::setCookieJar($cookie);
  1665. }
  1666. /**
  1667. * Get the event dispatcher instance.
  1668. *
  1669. * @return \Illuminate\Events\Dispatcher
  1670. * @static
  1671. */
  1672. public static function getDispatcher(){
  1673. //Method inherited from \Illuminate\Auth\Guard
  1674. return \Illuminate\Auth\Guard::getDispatcher();
  1675. }
  1676. /**
  1677. * Set the event dispatcher instance.
  1678. *
  1679. * @param \Illuminate\Events\Dispatcher
  1680. * @static
  1681. */
  1682. public static function setDispatcher($events){
  1683. //Method inherited from \Illuminate\Auth\Guard
  1684. \Illuminate\Auth\Guard::setDispatcher($events);
  1685. }
  1686. /**
  1687. * Get the session store used by the guard.
  1688. *
  1689. * @return \Illuminate\Session\Store
  1690. * @static
  1691. */
  1692. public static function getSession(){
  1693. //Method inherited from \Illuminate\Auth\Guard
  1694. return \Illuminate\Auth\Guard::getSession();
  1695. }
  1696. /**
  1697. * Get the user provider used by the guard.
  1698. *
  1699. * @return \Illuminate\Auth\UserProviderInterface
  1700. * @static
  1701. */
  1702. public static function getProvider(){
  1703. //Method inherited from \Illuminate\Auth\Guard
  1704. return \Illuminate\Auth\Guard::getProvider();
  1705. }
  1706. /**
  1707. * Set the user provider used by the guard.
  1708. *
  1709. * @param \Illuminate\Auth\UserProviderInterface $provider
  1710. * @return void
  1711. * @static
  1712. */
  1713. public static function setProvider($provider){
  1714. //Method inherited from \Illuminate\Auth\Guard
  1715. \Illuminate\Auth\Guard::setProvider($provider);
  1716. }
  1717. /**
  1718. * Return the currently cached user of the application.
  1719. *
  1720. * @return \Illuminate\Auth\UserInterface|null
  1721. * @static
  1722. */
  1723. public static function getUser(){
  1724. //Method inherited from \Illuminate\Auth\Guard
  1725. return \Illuminate\Auth\Guard::getUser();
  1726. }
  1727. /**
  1728. * Set the current user of the application.
  1729. *
  1730. * @param \Illuminate\Auth\UserInterface $user
  1731. * @return void
  1732. * @static
  1733. */
  1734. public static function setUser($user){
  1735. //Method inherited from \Illuminate\Auth\Guard
  1736. \Illuminate\Auth\Guard::setUser($user);
  1737. }
  1738. /**
  1739. * Get the current request instance.
  1740. *
  1741. * @return \Symfony\Component\HttpFoundation\Request
  1742. * @static
  1743. */
  1744. public static function getRequest(){
  1745. //Method inherited from \Illuminate\Auth\Guard
  1746. return \Illuminate\Auth\Guard::getRequest();
  1747. }
  1748. /**
  1749. * Set the current request instance.
  1750. *
  1751. * @param \Symfony\Component\HttpFoundation\Request
  1752. * @return \Illuminate\Auth\Guard
  1753. * @static
  1754. */
  1755. public static function setRequest($request){
  1756. //Method inherited from \Illuminate\Auth\Guard
  1757. return \Illuminate\Auth\Guard::setRequest($request);
  1758. }
  1759. /**
  1760. * Get the last user we attempted to authenticate.
  1761. *
  1762. * @return \Illuminate\Auth\UserInterface
  1763. * @static
  1764. */
  1765. public static function getLastAttempted(){
  1766. //Method inherited from \Illuminate\Auth\Guard
  1767. return \Illuminate\Auth\Guard::getLastAttempted();
  1768. }
  1769. /**
  1770. * Get a unique identifier for the auth session value.
  1771. *
  1772. * @return string
  1773. * @static
  1774. */
  1775. public static function getName(){
  1776. //Method inherited from \Illuminate\Auth\Guard
  1777. return \Illuminate\Auth\Guard::getName();
  1778. }
  1779. /**
  1780. * Get the name of the cookie used to store the "recaller".
  1781. *
  1782. * @return string
  1783. * @static
  1784. */
  1785. public static function getRecallerName(){
  1786. //Method inherited from \Illuminate\Auth\Guard
  1787. return \Illuminate\Auth\Guard::getRecallerName();
  1788. }
  1789. /**
  1790. * Determine if the user was authenticated via "remember me" cookie.
  1791. *
  1792. * @return bool
  1793. * @static
  1794. */
  1795. public static function viaRemember(){
  1796. //Method inherited from \Illuminate\Auth\Guard
  1797. return \Illuminate\Auth\Guard::viaRemember();
  1798. }
  1799. }
  1800. class Blade extends \Illuminate\Support\Facades\Blade{
  1801. /**
  1802. * Compile the view at the given path.
  1803. *
  1804. * @param string $path
  1805. * @return void
  1806. * @static
  1807. */
  1808. public static function compile($path = null){
  1809. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1810. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1811. }
  1812. /**
  1813. * Get the path currently being compiled.
  1814. *
  1815. * @return string
  1816. * @static
  1817. */
  1818. public static function getPath(){
  1819. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1820. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1821. }
  1822. /**
  1823. * Set the path currently being compiled.
  1824. *
  1825. * @param string $path
  1826. * @return void
  1827. * @static
  1828. */
  1829. public static function setPath($path){
  1830. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1831. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1832. }
  1833. /**
  1834. * Compile the given Blade template contents.
  1835. *
  1836. * @param string $value
  1837. * @return string
  1838. * @static
  1839. */
  1840. public static function compileString($value){
  1841. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1842. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1843. }
  1844. /**
  1845. * Compile the default values for the echo statement.
  1846. *
  1847. * @param string $value
  1848. * @return string
  1849. * @static
  1850. */
  1851. public static function compileEchoDefaults($value){
  1852. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1853. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  1854. }
  1855. /**
  1856. * Register a custom Blade compiler.
  1857. *
  1858. * @param Closure $compiler
  1859. * @return void
  1860. * @static
  1861. */
  1862. public static function extend($compiler){
  1863. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1864. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1865. }
  1866. /**
  1867. * Get the regular expression for a generic Blade function.
  1868. *
  1869. * @param string $function
  1870. * @return string
  1871. * @static
  1872. */
  1873. public static function createMatcher($function){
  1874. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1875. return \Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
  1876. }
  1877. /**
  1878. * Get the regular expression for a generic Blade function.
  1879. *
  1880. * @param string $function
  1881. * @return string
  1882. * @static
  1883. */
  1884. public static function createOpenMatcher($function){
  1885. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1886. return \Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
  1887. }
  1888. /**
  1889. * Create a plain Blade matcher.
  1890. *
  1891. * @param string $function
  1892. * @return string
  1893. * @static
  1894. */
  1895. public static function createPlainMatcher($function){
  1896. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1897. return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
  1898. }
  1899. /**
  1900. * Sets the content tags used for the compiler.
  1901. *
  1902. * @param string $openTag
  1903. * @param string $closeTag
  1904. * @param bool $escaped
  1905. * @return void
  1906. * @static
  1907. */
  1908. public static function setContentTags($openTag, $closeTag, $escaped = false){
  1909. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1910. \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
  1911. }
  1912. /**
  1913. * Sets the escaped content tags used for the compiler.
  1914. *
  1915. * @param string $openTag
  1916. * @param string $closeTag
  1917. * @return void
  1918. * @static
  1919. */
  1920. public static function setEscapedContentTags($openTag, $closeTag){
  1921. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1922. \Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
  1923. }
  1924. /**
  1925. * Gets the content tags used for the compiler.
  1926. *
  1927. * @return string
  1928. * @static
  1929. */
  1930. public static function getContentTags(){
  1931. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1932. return \Illuminate\View\Compilers\BladeCompiler::getContentTags();
  1933. }
  1934. /**
  1935. * Gets the escaped content tags used for the compiler.
  1936. *
  1937. * @return string
  1938. * @static
  1939. */
  1940. public static function getEscapedContentTags(){
  1941. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1942. return \Illuminate\View\Compilers\BladeCompiler::getEscapedContentTags();
  1943. }
  1944. /**
  1945. * Create a new compiler instance.
  1946. *
  1947. * @param \Illuminate\Filesystem\Filesystem $files
  1948. * @param string $cachePath
  1949. * @return void
  1950. * @static
  1951. */
  1952. public static function __construct($files, $cachePath){
  1953. //Method inherited from \Illuminate\View\Compilers\Compiler
  1954. \Illuminate\View\Compilers\BladeCompiler::__construct($files, $cachePath);
  1955. }
  1956. /**
  1957. * Get the path to the compiled version of a view.
  1958. *
  1959. * @param string $path
  1960. * @return string
  1961. * @static
  1962. */
  1963. public static function getCompiledPath($path){
  1964. //Method inherited from \Illuminate\View\Compilers\Compiler
  1965. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1966. }
  1967. /**
  1968. * Determine if the view at the given path is expired.
  1969. *
  1970. * @param string $path
  1971. * @return bool
  1972. * @static
  1973. */
  1974. public static function isExpired($path){
  1975. //Method inherited from \Illuminate\View\Compilers\Compiler
  1976. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1977. }
  1978. }
  1979. class Cache extends \Illuminate\Support\Facades\Cache{
  1980. /**
  1981. * Get the cache "prefix" value.
  1982. *
  1983. * @return string
  1984. * @static
  1985. */
  1986. public static function getPrefix(){
  1987. //Method inherited from \Illuminate\Cache\CacheManager
  1988. return \Illuminate\Cache\CacheManager::getPrefix();
  1989. }
  1990. /**
  1991. * Set the cache "prefix" value.
  1992. *
  1993. * @param string $name
  1994. * @return void
  1995. * @static
  1996. */
  1997. public static function setPrefix($name){
  1998. //Method inherited from \Illuminate\Cache\CacheManager
  1999. \Illuminate\Cache\CacheManager::setPrefix($name);
  2000. }
  2001. /**
  2002. * Get the default cache driver name.
  2003. *
  2004. * @return string
  2005. * @static
  2006. */
  2007. public static function getDefaultDriver(){
  2008. //Method inherited from \Illuminate\Cache\CacheManager
  2009. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  2010. }
  2011. /**
  2012. * Set the default cache driver name.
  2013. *
  2014. * @param string $name
  2015. * @return void
  2016. * @static
  2017. */
  2018. public static function setDefaultDriver($name){
  2019. //Method inherited from \Illuminate\Cache\CacheManager
  2020. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  2021. }
  2022. /**
  2023. * Create a new manager instance.
  2024. *
  2025. * @param \Illuminate\Foundation\Application $app
  2026. * @return void
  2027. * @static
  2028. */
  2029. public static function __construct($app){
  2030. //Method inherited from \Illuminate\Support\Manager
  2031. \Illuminate\Cache\CacheManager::__construct($app);
  2032. }
  2033. /**
  2034. * Get a driver instance.
  2035. *
  2036. * @param string $driver
  2037. * @return mixed
  2038. * @static
  2039. */
  2040. public static function driver($driver = null){
  2041. //Method inherited from \Illuminate\Support\Manager
  2042. return \Illuminate\Cache\CacheManager::driver($driver);
  2043. }
  2044. /**
  2045. * Register a custom driver creator Closure.
  2046. *
  2047. * @param string $driver
  2048. * @param Closure $callback
  2049. * @return \Illuminate\Support\Manager|static
  2050. * @static
  2051. */
  2052. public static function extend($driver, $callback){
  2053. //Method inherited from \Illuminate\Support\Manager
  2054. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  2055. }
  2056. /**
  2057. * Get all of the created "drivers".
  2058. *
  2059. * @return array
  2060. * @static
  2061. */
  2062. public static function getDrivers(){
  2063. //Method inherited from \Illuminate\Support\Manager
  2064. return \Illuminate\Cache\CacheManager::getDrivers();
  2065. }
  2066. /**
  2067. * Dynamically call the default driver instance.
  2068. *
  2069. * @param string $method
  2070. * @param array $parameters
  2071. * @return mixed
  2072. * @static
  2073. */
  2074. public static function __call($method, $parameters){
  2075. //Method inherited from \Illuminate\Support\Manager
  2076. return \Illuminate\Cache\CacheManager::__call($method, $parameters);
  2077. }
  2078. /**
  2079. * Determine if an item exists in the cache.
  2080. *
  2081. * @param string $key
  2082. * @return bool
  2083. * @static
  2084. */
  2085. public static function has($key){
  2086. //Method inherited from \Illuminate\Cache\Repository
  2087. return \Illuminate\Cache\Repository::has($key);
  2088. }
  2089. /**
  2090. * Retrieve an item from the cache by key.
  2091. *
  2092. * @param string $key
  2093. * @param mixed $default
  2094. * @return mixed
  2095. * @static
  2096. */
  2097. public static function get($key, $default = null){
  2098. //Method inherited from \Illuminate\Cache\Repository
  2099. return \Illuminate\Cache\Repository::get($key, $default);
  2100. }
  2101. /**
  2102. * Retrieve an item from the cache and delete it.
  2103. *
  2104. * @param string $key
  2105. * @param mixed $default
  2106. * @return mixed
  2107. * @static
  2108. */
  2109. public static function pull($key, $default = null){
  2110. //Method inherited from \Illuminate\Cache\Repository
  2111. return \Illuminate\Cache\Repository::pull($key, $default);
  2112. }
  2113. /**
  2114. * Store an item in the cache.
  2115. *
  2116. * @param string $key
  2117. * @param mixed $value
  2118. * @param \DateTime|int $minutes
  2119. * @return void
  2120. * @static
  2121. */
  2122. public static function put($key, $value, $minutes){
  2123. //Method inherited from \Illuminate\Cache\Repository
  2124. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  2125. }
  2126. /**
  2127. * Store an item in the cache if the key does not exist.
  2128. *
  2129. * @param string $key
  2130. * @param mixed $value
  2131. * @param \DateTime|int $minutes
  2132. * @return bool
  2133. * @static
  2134. */
  2135. public static function add($key, $value, $minutes){
  2136. //Method inherited from \Illuminate\Cache\Repository
  2137. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  2138. }
  2139. /**
  2140. * Get an item from the cache, or store the default value.
  2141. *
  2142. * @param string $key
  2143. * @param \DateTime|int $minutes
  2144. * @param Closure $callback
  2145. * @return mixed
  2146. * @static
  2147. */
  2148. public static function remember($key, $minutes, $callback){
  2149. //Method inherited from \Illuminate\Cache\Repository
  2150. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  2151. }
  2152. /**
  2153. * Get an item from the cache, or store the default value forever.
  2154. *
  2155. * @param string $key
  2156. * @param Closure $callback
  2157. * @return mixed
  2158. * @static
  2159. */
  2160. public static function sear($key, $callback){
  2161. //Method inherited from \Illuminate\Cache\Repository
  2162. return \Illuminate\Cache\Repository::sear($key, $callback);
  2163. }
  2164. /**
  2165. * Get an item from the cache, or store the default value forever.
  2166. *
  2167. * @param string $key
  2168. * @param Closure $callback
  2169. * @return mixed
  2170. * @static
  2171. */
  2172. public static function rememberForever($key, $callback){
  2173. //Method inherited from \Illuminate\Cache\Repository
  2174. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  2175. }
  2176. /**
  2177. * Get the default cache time.
  2178. *
  2179. * @return int
  2180. * @static
  2181. */
  2182. public static function getDefaultCacheTime(){
  2183. //Method inherited from \Illuminate\Cache\Repository
  2184. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  2185. }
  2186. /**
  2187. * Set the default cache time in minutes.
  2188. *
  2189. * @param int $minutes
  2190. * @return void
  2191. * @static
  2192. */
  2193. public static function setDefaultCacheTime($minutes){
  2194. //Method inherited from \Illuminate\Cache\Repository
  2195. \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  2196. }
  2197. /**
  2198. * Get the cache store implementation.
  2199. *
  2200. * @return \Illuminate\Cache\StoreInterface
  2201. * @static
  2202. */
  2203. public static function getStore(){
  2204. //Method inherited from \Illuminate\Cache\Repository
  2205. return \Illuminate\Cache\Repository::getStore();
  2206. }
  2207. /**
  2208. * Determine if a cached value exists.
  2209. *
  2210. * @param string $key
  2211. * @return bool
  2212. * @static
  2213. */
  2214. public static function offsetExists($key){
  2215. //Method inherited from \Illuminate\Cache\Repository
  2216. return \Illuminate\Cache\Repository::offsetExists($key);
  2217. }
  2218. /**
  2219. * Retrieve an item from the cache by key.
  2220. *
  2221. * @param string $key
  2222. * @return mixed
  2223. * @static
  2224. */
  2225. public static function offsetGet($key){
  2226. //Method inherited from \Illuminate\Cache\Repository
  2227. return \Illuminate\Cache\Repository::offsetGet($key);
  2228. }
  2229. /**
  2230. * Store an item in the cache for the default time.
  2231. *
  2232. * @param string $key
  2233. * @param mixed $value
  2234. * @return void
  2235. * @static
  2236. */
  2237. public static function offsetSet($key, $value){
  2238. //Method inherited from \Illuminate\Cache\Repository
  2239. \Illuminate\Cache\Repository::offsetSet($key, $value);
  2240. }
  2241. /**
  2242. * Remove an item from the cache.
  2243. *
  2244. * @param string $key
  2245. * @return void
  2246. * @static
  2247. */
  2248. public static function offsetUnset($key){
  2249. //Method inherited from \Illuminate\Cache\Repository
  2250. \Illuminate\Cache\Repository::offsetUnset($key);
  2251. }
  2252. /**
  2253. * Register a custom macro.
  2254. *
  2255. * @param string $name
  2256. * @param callable $macro
  2257. * @return void
  2258. * @static
  2259. */
  2260. public static function macro($name, $macro){
  2261. //Method inherited from \Illuminate\Cache\Repository
  2262. \Illuminate\Cache\Repository::macro($name, $macro);
  2263. }
  2264. /**
  2265. * Checks if macro is registered
  2266. *
  2267. * @param string $name
  2268. * @return boolean
  2269. * @static
  2270. */
  2271. public static function hasMacro($name){
  2272. //Method inherited from \Illuminate\Cache\Repository
  2273. return \Illuminate\Cache\Repository::hasMacro($name);
  2274. }
  2275. /**
  2276. * Dynamically handle calls to the class.
  2277. *
  2278. * @param string $method
  2279. * @param array $parameters
  2280. * @return mixed
  2281. * @throws \BadMethodCallException
  2282. * @static
  2283. */
  2284. public static function __callStatic($method, $parameters){
  2285. //Method inherited from \Illuminate\Cache\Repository
  2286. return \Illuminate\Cache\Repository::__callStatic($method, $parameters);
  2287. }
  2288. /**
  2289. * Dynamically handle calls to the form builder.
  2290. *
  2291. * @param string $method
  2292. * @param array $parameters
  2293. * @return mixed
  2294. * @throws \BadMethodCallException
  2295. * @static
  2296. */
  2297. public static function macroCall($method, $parameters){
  2298. //Method inherited from \Illuminate\Cache\Repository
  2299. return \Illuminate\Cache\Repository::macroCall($method, $parameters);
  2300. }
  2301. /**
  2302. * Increment the value of an item in the cache.
  2303. *
  2304. * @param string $key
  2305. * @param mixed $value
  2306. * @return void
  2307. * @throws \LogicException
  2308. * @static
  2309. */
  2310. public static function increment($key, $value = 1){
  2311. //Method inherited from \Illuminate\Cache\FileStore
  2312. \Illuminate\Cache\FileStore::increment($key, $value);
  2313. }
  2314. /**
  2315. * Decrement the value of an item in the cache.
  2316. *
  2317. * @param string $key
  2318. * @param mixed $value
  2319. * @return void
  2320. * @throws \LogicException
  2321. * @static
  2322. */
  2323. public static function decrement($key, $value = 1){
  2324. //Method inherited from \Illuminate\Cache\FileStore
  2325. \Illuminate\Cache\FileStore::decrement($key, $value);
  2326. }
  2327. /**
  2328. * Store an item in the cache indefinitely.
  2329. *
  2330. * @param string $key
  2331. * @param mixed $value
  2332. * @return void
  2333. * @static
  2334. */
  2335. public static function forever($key, $value){
  2336. //Method inherited from \Illuminate\Cache\FileStore
  2337. \Illuminate\Cache\FileStore::forever($key, $value);
  2338. }
  2339. /**
  2340. * Remove an item from the cache.
  2341. *
  2342. * @param string $key
  2343. * @return void
  2344. * @static
  2345. */
  2346. public static function forget($key){
  2347. //Method inherited from \Illuminate\Cache\FileStore
  2348. \Illuminate\Cache\FileStore::forget($key);
  2349. }
  2350. /**
  2351. * Remove all items from the cache.
  2352. *
  2353. * @return void
  2354. * @static
  2355. */
  2356. public static function flush(){
  2357. //Method inherited from \Illuminate\Cache\FileStore
  2358. \Illuminate\Cache\FileStore::flush();
  2359. }
  2360. /**
  2361. * Get the Filesystem instance.
  2362. *
  2363. * @return \Illuminate\Filesystem\Filesystem
  2364. * @static
  2365. */
  2366. public static function getFilesystem(){
  2367. //Method inherited from \Illuminate\Cache\FileStore
  2368. return \Illuminate\Cache\FileStore::getFilesystem();
  2369. }
  2370. /**
  2371. * Get the working directory of the cache.
  2372. *
  2373. * @return string
  2374. * @static
  2375. */
  2376. public static function getDirectory(){
  2377. //Method inherited from \Illuminate\Cache\FileStore
  2378. return \Illuminate\Cache\FileStore::getDirectory();
  2379. }
  2380. }
  2381. class ClassLoader extends \Illuminate\Support\ClassLoader{
  2382. }
  2383. class Config extends \Illuminate\Support\Facades\Config{
  2384. /**
  2385. * Create a new configuration repository.
  2386. *
  2387. * @param \Illuminate\Config\LoaderInterface $loader
  2388. * @param string $environment
  2389. * @return void
  2390. * @static
  2391. */
  2392. public static function __construct($loader, $environment){
  2393. //Method inherited from \Illuminate\Config\Repository
  2394. \Illuminate\Config\Repository::__construct($loader, $environment);
  2395. }
  2396. /**
  2397. * Determine if the given configuration value exists.
  2398. *
  2399. * @param string $key
  2400. * @return bool
  2401. * @static
  2402. */
  2403. public static function has($key){
  2404. //Method inherited from \Illuminate\Config\Repository
  2405. return \Illuminate\Config\Repository::has($key);
  2406. }
  2407. /**
  2408. * Determine if a configuration group exists.
  2409. *
  2410. * @param string $key
  2411. * @return bool
  2412. * @static
  2413. */
  2414. public static function hasGroup($key){
  2415. //Method inherited from \Illuminate\Config\Repository
  2416. return \Illuminate\Config\Repository::hasGroup($key);
  2417. }
  2418. /**
  2419. * Get the specified configuration value.
  2420. *
  2421. * @param string $key
  2422. * @param mixed $default
  2423. * @return mixed
  2424. * @static
  2425. */
  2426. public static function get($key, $default = null){
  2427. //Method inherited from \Illuminate\Config\Repository
  2428. return \Illuminate\Config\Repository::get($key, $default);
  2429. }
  2430. /**
  2431. * Set a given configuration value.
  2432. *
  2433. * @param string $key
  2434. * @param mixed $value
  2435. * @return void
  2436. * @static
  2437. */
  2438. public static function set($key, $value){
  2439. //Method inherited from \Illuminate\Config\Repository
  2440. \Illuminate\Config\Repository::set($key, $value);
  2441. }
  2442. /**
  2443. * Register a package for cascading configuration.
  2444. *
  2445. * @param string $package
  2446. * @param string $hint
  2447. * @param string $namespace
  2448. * @return void
  2449. * @static
  2450. */
  2451. public static function package($package, $hint, $namespace = null){
  2452. //Method inherited from \Illuminate\Config\Repository
  2453. \Illuminate\Config\Repository::package($package, $hint, $namespace);
  2454. }
  2455. /**
  2456. * Register an after load callback for a given namespace.
  2457. *
  2458. * @param string $namespace
  2459. * @param \Closure $callback
  2460. * @return void
  2461. * @static
  2462. */
  2463. public static function afterLoading($namespace, $callback){
  2464. //Method inherited from \Illuminate\Config\Repository
  2465. \Illuminate\Config\Repository::afterLoading($namespace, $callback);
  2466. }
  2467. /**
  2468. * Add a new namespace to the loader.
  2469. *
  2470. * @param string $namespace
  2471. * @param string $hint
  2472. * @return void
  2473. * @static
  2474. */
  2475. public static function addNamespace($namespace, $hint){
  2476. //Method inherited from \Illuminate\Config\Repository
  2477. \Illuminate\Config\Repository::addNamespace($namespace, $hint);
  2478. }
  2479. /**
  2480. * Returns all registered namespaces with the config
  2481. * loader.
  2482. *
  2483. * @return array
  2484. * @static
  2485. */
  2486. public static function getNamespaces(){
  2487. //Method inherited from \Illuminate\Config\Repository
  2488. return \Illuminate\Config\Repository::getNamespaces();
  2489. }
  2490. /**
  2491. * Get the loader implementation.
  2492. *
  2493. * @return \Illuminate\Config\LoaderInterface
  2494. * @static
  2495. */
  2496. public static function getLoader(){
  2497. //Method inherited from \Illuminate\Config\Repository
  2498. return \Illuminate\Config\Repository::getLoader();
  2499. }
  2500. /**
  2501. * Set the loader implementation.
  2502. *
  2503. * @param \Illuminate\Config\LoaderInterface $loader
  2504. * @return void
  2505. * @static
  2506. */
  2507. public static function setLoader($loader){
  2508. //Method inherited from \Illuminate\Config\Repository
  2509. \Illuminate\Config\Repository::setLoader($loader);
  2510. }
  2511. /**
  2512. * Get the current configuration environment.
  2513. *
  2514. * @return string
  2515. * @static
  2516. */
  2517. public static function getEnvironment(){
  2518. //Method inherited from \Illuminate\Config\Repository
  2519. return \Illuminate\Config\Repository::getEnvironment();
  2520. }
  2521. /**
  2522. * Get the after load callback array.
  2523. *
  2524. * @return array
  2525. * @static
  2526. */
  2527. public static function getAfterLoadCallbacks(){
  2528. //Method inherited from \Illuminate\Config\Repository
  2529. return \Illuminate\Config\Repository::getAfterLoadCallbacks();
  2530. }
  2531. /**
  2532. * Get all of the configuration items.
  2533. *
  2534. * @return array
  2535. * @static
  2536. */
  2537. public static function getItems(){
  2538. //Method inherited from \Illuminate\Config\Repository
  2539. return \Illuminate\Config\Repository::getItems();
  2540. }
  2541. /**
  2542. * Determine if the given configuration option exists.
  2543. *
  2544. * @param string $key
  2545. * @return bool
  2546. * @static
  2547. */
  2548. public static function offsetExists($key){
  2549. //Method inherited from \Illuminate\Config\Repository
  2550. return \Illuminate\Config\Repository::offsetExists($key);
  2551. }
  2552. /**
  2553. * Get a configuration option.
  2554. *
  2555. * @param string $key
  2556. * @return mixed
  2557. * @static
  2558. */
  2559. public static function offsetGet($key){
  2560. //Method inherited from \Illuminate\Config\Repository
  2561. return \Illuminate\Config\Repository::offsetGet($key);
  2562. }
  2563. /**
  2564. * Set a configuration option.
  2565. *
  2566. * @param string $key
  2567. * @param mixed $value
  2568. * @return void
  2569. * @static
  2570. */
  2571. public static function offsetSet($key, $value){
  2572. //Method inherited from \Illuminate\Config\Repository
  2573. \Illuminate\Config\Repository::offsetSet($key, $value);
  2574. }
  2575. /**
  2576. * Unset a configuration option.
  2577. *
  2578. * @param string $key
  2579. * @return void
  2580. * @static
  2581. */
  2582. public static function offsetUnset($key){
  2583. //Method inherited from \Illuminate\Config\Repository
  2584. \Illuminate\Config\Repository::offsetUnset($key);
  2585. }
  2586. /**
  2587. * Parse a key into namespace, group, and item.
  2588. *
  2589. * @param string $key
  2590. * @return array
  2591. * @static
  2592. */
  2593. public static function parseKey($key){
  2594. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  2595. return \Illuminate\Config\Repository::parseKey($key);
  2596. }
  2597. /**
  2598. * Set the parsed value of a key.
  2599. *
  2600. * @param string $key
  2601. * @param array $parsed
  2602. * @return void
  2603. * @static
  2604. */
  2605. public static function setParsedKey($key, $parsed){
  2606. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  2607. \Illuminate\Config\Repository::setParsedKey($key, $parsed);
  2608. }
  2609. }
  2610. class Controller extends \Illuminate\Routing\Controller{
  2611. }
  2612. class Cookie extends \Illuminate\Support\Facades\Cookie{
  2613. /**
  2614. * Create a new cookie instance.
  2615. *
  2616. * @param string $name
  2617. * @param string $value
  2618. * @param int $minutes
  2619. * @param string $path
  2620. * @param string $domain
  2621. * @param bool $secure
  2622. * @param bool $httpOnly
  2623. * @return \Symfony\Component\HttpFoundation\Cookie
  2624. * @static
  2625. */
  2626. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2627. //Method inherited from \Illuminate\Cookie\CookieJar
  2628. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  2629. }
  2630. /**
  2631. * Create a cookie that lasts "forever" (five years).
  2632. *
  2633. * @param string $name
  2634. * @param string $value
  2635. * @param string $path
  2636. * @param string $domain
  2637. * @param bool $secure
  2638. * @param bool $httpOnly
  2639. * @return \Symfony\Component\HttpFoundation\Cookie
  2640. * @static
  2641. */
  2642. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2643. //Method inherited from \Illuminate\Cookie\CookieJar
  2644. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  2645. }
  2646. /**
  2647. * Expire the given cookie.
  2648. *
  2649. * @param string $name
  2650. * @param string $path
  2651. * @param string $domain
  2652. * @return \Symfony\Component\HttpFoundation\Cookie
  2653. * @static
  2654. */
  2655. public static function forget($name, $path = null, $domain = null){
  2656. //Method inherited from \Illuminate\Cookie\CookieJar
  2657. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  2658. }
  2659. /**
  2660. * Determine if a cookie has been queued.
  2661. *
  2662. * @param string $key
  2663. * @return bool
  2664. * @static
  2665. */
  2666. public static function hasQueued($key){
  2667. //Method inherited from \Illuminate\Cookie\CookieJar
  2668. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  2669. }
  2670. /**
  2671. * Get a queued cookie instance.
  2672. *
  2673. * @param string $key
  2674. * @param mixed $default
  2675. * @return \Symfony\Component\HttpFoundation\Cookie
  2676. * @static
  2677. */
  2678. public static function queued($key, $default = null){
  2679. //Method inherited from \Illuminate\Cookie\CookieJar
  2680. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  2681. }
  2682. /**
  2683. * Queue a cookie to send with the next response.
  2684. *
  2685. * @param dynamic
  2686. * @return void
  2687. * @static
  2688. */
  2689. public static function queue(){
  2690. //Method inherited from \Illuminate\Cookie\CookieJar
  2691. \Illuminate\Cookie\CookieJar::queue();
  2692. }
  2693. /**
  2694. * Remove a cookie from the queue.
  2695. *
  2696. * @param string $name
  2697. * @static
  2698. */
  2699. public static function unqueue($name){
  2700. //Method inherited from \Illuminate\Cookie\CookieJar
  2701. \Illuminate\Cookie\CookieJar::unqueue($name);
  2702. }
  2703. /**
  2704. * Set the default path and domain for the jar.
  2705. *
  2706. * @param string $path
  2707. * @param string $domain
  2708. * @return self
  2709. * @static
  2710. */
  2711. public static function setDefaultPathAndDomain($path, $domain){
  2712. //Method inherited from \Illuminate\Cookie\CookieJar
  2713. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
  2714. }
  2715. /**
  2716. * Get the cookies which have been queued for the next request
  2717. *
  2718. * @return array
  2719. * @static
  2720. */
  2721. public static function getQueuedCookies(){
  2722. //Method inherited from \Illuminate\Cookie\CookieJar
  2723. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  2724. }
  2725. }
  2726. class Crypt extends \Illuminate\Support\Facades\Crypt{
  2727. /**
  2728. * Create a new encrypter instance.
  2729. *
  2730. * @param string $key
  2731. * @return void
  2732. * @static
  2733. */
  2734. public static function __construct($key){
  2735. //Method inherited from \Illuminate\Encryption\Encrypter
  2736. \Illuminate\Encryption\Encrypter::__construct($key);
  2737. }
  2738. /**
  2739. * Encrypt the given value.
  2740. *
  2741. * @param string $value
  2742. * @return string
  2743. * @static
  2744. */
  2745. public static function encrypt($value){
  2746. //Method inherited from \Illuminate\Encryption\Encrypter
  2747. return \Illuminate\Encryption\Encrypter::encrypt($value);
  2748. }
  2749. /**
  2750. * Decrypt the given value.
  2751. *
  2752. * @param string $payload
  2753. * @return string
  2754. * @static
  2755. */
  2756. public static function decrypt($payload){
  2757. //Method inherited from \Illuminate\Encryption\Encrypter
  2758. return \Illuminate\Encryption\Encrypter::decrypt($payload);
  2759. }
  2760. /**
  2761. * Set the encryption key.
  2762. *
  2763. * @param string $key
  2764. * @return void
  2765. * @static
  2766. */
  2767. public static function setKey($key){
  2768. //Method inherited from \Illuminate\Encryption\Encrypter
  2769. \Illuminate\Encryption\Encrypter::setKey($key);
  2770. }
  2771. /**
  2772. * Set the encryption cipher.
  2773. *
  2774. * @param string $cipher
  2775. * @return void
  2776. * @static
  2777. */
  2778. public static function setCipher($cipher){
  2779. //Method inherited from \Illuminate\Encryption\Encrypter
  2780. \Illuminate\Encryption\Encrypter::setCipher($cipher);
  2781. }
  2782. /**
  2783. * Set the encryption mode.
  2784. *
  2785. * @param string $mode
  2786. * @return void
  2787. * @static
  2788. */
  2789. public static function setMode($mode){
  2790. //Method inherited from \Illuminate\Encryption\Encrypter
  2791. \Illuminate\Encryption\Encrypter::setMode($mode);
  2792. }
  2793. }
  2794. class DB extends \Illuminate\Support\Facades\DB{
  2795. /**
  2796. * Create a new database manager instance.
  2797. *
  2798. * @param \Illuminate\Foundation\Application $app
  2799. * @param \Illuminate\Database\Connectors\ConnectionFactory $factory
  2800. * @return void
  2801. * @static
  2802. */
  2803. public static function __construct($app, $factory){
  2804. //Method inherited from \Illuminate\Database\DatabaseManager
  2805. \Illuminate\Database\DatabaseManager::__construct($app, $factory);
  2806. }
  2807. /**
  2808. * Get a database connection instance.
  2809. *
  2810. * @param string $name
  2811. * @return \Illuminate\Database\Connection
  2812. * @static
  2813. */
  2814. public static function connection($name = null){
  2815. //Method inherited from \Illuminate\Database\DatabaseManager
  2816. return \Illuminate\Database\DatabaseManager::connection($name);
  2817. }
  2818. /**
  2819. * Reconnect to the given database.
  2820. *
  2821. * @param string $name
  2822. * @return \Illuminate\Database\Connection
  2823. * @static
  2824. */
  2825. public static function reconnect($name = null){
  2826. //Method inherited from \Illuminate\Database\DatabaseManager
  2827. return \Illuminate\Database\DatabaseManager::reconnect($name);
  2828. }
  2829. /**
  2830. * Disconnect from the given database.
  2831. *
  2832. * @param string $name
  2833. * @return void
  2834. * @static
  2835. */
  2836. public static function disconnect($name = null){
  2837. //Method inherited from \Illuminate\Database\DatabaseManager
  2838. \Illuminate\Database\DatabaseManager::disconnect($name);
  2839. }
  2840. /**
  2841. * Get the default connection name.
  2842. *
  2843. * @return string
  2844. * @static
  2845. */
  2846. public static function getDefaultConnection(){
  2847. //Method inherited from \Illuminate\Database\DatabaseManager
  2848. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  2849. }
  2850. /**
  2851. * Set the default connection name.
  2852. *
  2853. * @param string $name
  2854. * @return void
  2855. * @static
  2856. */
  2857. public static function setDefaultConnection($name){
  2858. //Method inherited from \Illuminate\Database\DatabaseManager
  2859. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2860. }
  2861. /**
  2862. * Register an extension connection resolver.
  2863. *
  2864. * @param string $name
  2865. * @param callable $resolver
  2866. * @return void
  2867. * @static
  2868. */
  2869. public static function extend($name, $resolver){
  2870. //Method inherited from \Illuminate\Database\DatabaseManager
  2871. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2872. }
  2873. /**
  2874. * Return all of the created connections.
  2875. *
  2876. * @return array
  2877. * @static
  2878. */
  2879. public static function getConnections(){
  2880. //Method inherited from \Illuminate\Database\DatabaseManager
  2881. return \Illuminate\Database\DatabaseManager::getConnections();
  2882. }
  2883. /**
  2884. * Dynamically pass methods to the default connection.
  2885. *
  2886. * @param string $method
  2887. * @param array $parameters
  2888. * @return mixed
  2889. * @static
  2890. */
  2891. public static function __call($method, $parameters){
  2892. //Method inherited from \Illuminate\Database\DatabaseManager
  2893. return \Illuminate\Database\DatabaseManager::__call($method, $parameters);
  2894. }
  2895. /**
  2896. * Get a schema builder instance for the connection.
  2897. *
  2898. * @return \Illuminate\Database\Schema\MySqlBuilder
  2899. * @static
  2900. */
  2901. public static function getSchemaBuilder(){
  2902. //Method inherited from \Illuminate\Database\MySqlConnection
  2903. return \Illuminate\Database\MySqlConnection::getSchemaBuilder();
  2904. }
  2905. /**
  2906. * Set the query grammar to the default implementation.
  2907. *
  2908. * @return void
  2909. * @static
  2910. */
  2911. public static function useDefaultQueryGrammar(){
  2912. //Method inherited from \Illuminate\Database\Connection
  2913. \Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
  2914. }
  2915. /**
  2916. * Set the schema grammar to the default implementation.
  2917. *
  2918. * @return void
  2919. * @static
  2920. */
  2921. public static function useDefaultSchemaGrammar(){
  2922. //Method inherited from \Illuminate\Database\Connection
  2923. \Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
  2924. }
  2925. /**
  2926. * Set the query post processor to the default implementation.
  2927. *
  2928. * @return void
  2929. * @static
  2930. */
  2931. public static function useDefaultPostProcessor(){
  2932. //Method inherited from \Illuminate\Database\Connection
  2933. \Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
  2934. }
  2935. /**
  2936. * Begin a fluent query against a database table.
  2937. *
  2938. * @param string $table
  2939. * @return \Illuminate\Database\Query\Builder
  2940. * @static
  2941. */
  2942. public static function table($table){
  2943. //Method inherited from \Illuminate\Database\Connection
  2944. return \Illuminate\Database\MySqlConnection::table($table);
  2945. }
  2946. /**
  2947. * Get a new raw query expression.
  2948. *
  2949. * @param mixed $value
  2950. * @return \Illuminate\Database\Query\Expression
  2951. * @static
  2952. */
  2953. public static function raw($value){
  2954. //Method inherited from \Illuminate\Database\Connection
  2955. return \Illuminate\Database\MySqlConnection::raw($value);
  2956. }
  2957. /**
  2958. * Run a select statement and return a single result.
  2959. *
  2960. * @param string $query
  2961. * @param array $bindings
  2962. * @return mixed
  2963. * @static
  2964. */
  2965. public static function selectOne($query, $bindings = array()){
  2966. //Method inherited from \Illuminate\Database\Connection
  2967. return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings);
  2968. }
  2969. /**
  2970. * Run a select statement against the database.
  2971. *
  2972. * @param string $query
  2973. * @param array $bindings
  2974. * @return array
  2975. * @static
  2976. */
  2977. public static function select($query, $bindings = array()){
  2978. //Method inherited from \Illuminate\Database\Connection
  2979. return \Illuminate\Database\MySqlConnection::select($query, $bindings);
  2980. }
  2981. /**
  2982. * Run an insert statement against the database.
  2983. *
  2984. * @param string $query
  2985. * @param array $bindings
  2986. * @return bool
  2987. * @static
  2988. */
  2989. public static function insert($query, $bindings = array()){
  2990. //Method inherited from \Illuminate\Database\Connection
  2991. return \Illuminate\Database\MySqlConnection::insert($query, $bindings);
  2992. }
  2993. /**
  2994. * Run an update statement against the database.
  2995. *
  2996. * @param string $query
  2997. * @param array $bindings
  2998. * @return int
  2999. * @static
  3000. */
  3001. public static function update($query, $bindings = array()){
  3002. //Method inherited from \Illuminate\Database\Connection
  3003. return \Illuminate\Database\MySqlConnection::update($query, $bindings);
  3004. }
  3005. /**
  3006. * Run a delete statement against the database.
  3007. *
  3008. * @param string $query
  3009. * @param array $bindings
  3010. * @return int
  3011. * @static
  3012. */
  3013. public static function delete($query, $bindings = array()){
  3014. //Method inherited from \Illuminate\Database\Connection
  3015. return \Illuminate\Database\MySqlConnection::delete($query, $bindings);
  3016. }
  3017. /**
  3018. * Execute an SQL statement and return the boolean result.
  3019. *
  3020. * @param string $query
  3021. * @param array $bindings
  3022. * @return bool
  3023. * @static
  3024. */
  3025. public static function statement($query, $bindings = array()){
  3026. //Method inherited from \Illuminate\Database\Connection
  3027. return \Illuminate\Database\MySqlConnection::statement($query, $bindings);
  3028. }
  3029. /**
  3030. * Run an SQL statement and get the number of rows affected.
  3031. *
  3032. * @param string $query
  3033. * @param array $bindings
  3034. * @return int
  3035. * @static
  3036. */
  3037. public static function affectingStatement($query, $bindings = array()){
  3038. //Method inherited from \Illuminate\Database\Connection
  3039. return \Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
  3040. }
  3041. /**
  3042. * Run a raw, unprepared query against the PDO connection.
  3043. *
  3044. * @param string $query
  3045. * @return bool
  3046. * @static
  3047. */
  3048. public static function unprepared($query){
  3049. //Method inherited from \Illuminate\Database\Connection
  3050. return \Illuminate\Database\MySqlConnection::unprepared($query);
  3051. }
  3052. /**
  3053. * Prepare the query bindings for execution.
  3054. *
  3055. * @param array $bindings
  3056. * @return array
  3057. * @static
  3058. */
  3059. public static function prepareBindings($bindings){
  3060. //Method inherited from \Illuminate\Database\Connection
  3061. return \Illuminate\Database\MySqlConnection::prepareBindings($bindings);
  3062. }
  3063. /**
  3064. * Execute a Closure within a transaction.
  3065. *
  3066. * @param Closure $callback
  3067. * @return mixed
  3068. * @throws \Exception
  3069. * @static
  3070. */
  3071. public static function transaction($callback){
  3072. //Method inherited from \Illuminate\Database\Connection
  3073. return \Illuminate\Database\MySqlConnection::transaction($callback);
  3074. }
  3075. /**
  3076. * Start a new database transaction.
  3077. *
  3078. * @return void
  3079. * @static
  3080. */
  3081. public static function beginTransaction(){
  3082. //Method inherited from \Illuminate\Database\Connection
  3083. \Illuminate\Database\MySqlConnection::beginTransaction();
  3084. }
  3085. /**
  3086. * Commit the active database transaction.
  3087. *
  3088. * @return void
  3089. * @static
  3090. */
  3091. public static function commit(){
  3092. //Method inherited from \Illuminate\Database\Connection
  3093. \Illuminate\Database\MySqlConnection::commit();
  3094. }
  3095. /**
  3096. * Rollback the active database transaction.
  3097. *
  3098. * @return void
  3099. * @static
  3100. */
  3101. public static function rollBack(){
  3102. //Method inherited from \Illuminate\Database\Connection
  3103. \Illuminate\Database\MySqlConnection::rollBack();
  3104. }
  3105. /**
  3106. * Get the number of active transactions.
  3107. *
  3108. * @return int
  3109. * @static
  3110. */
  3111. public static function transactionLevel(){
  3112. //Method inherited from \Illuminate\Database\Connection
  3113. return \Illuminate\Database\MySqlConnection::transactionLevel();
  3114. }
  3115. /**
  3116. * Execute the given callback in "dry run" mode.
  3117. *
  3118. * @param Closure $callback
  3119. * @return array
  3120. * @static
  3121. */
  3122. public static function pretend($callback){
  3123. //Method inherited from \Illuminate\Database\Connection
  3124. return \Illuminate\Database\MySqlConnection::pretend($callback);
  3125. }
  3126. /**
  3127. * Log a query in the connection's query log.
  3128. *
  3129. * @param string $query
  3130. * @param array $bindings
  3131. * @param $time
  3132. * @return void
  3133. * @static
  3134. */
  3135. public static function logQuery($query, $bindings, $time = null){
  3136. //Method inherited from \Illuminate\Database\Connection
  3137. \Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
  3138. }
  3139. /**
  3140. * Register a database query listener with the connection.
  3141. *
  3142. * @param Closure $callback
  3143. * @return void
  3144. * @static
  3145. */
  3146. public static function listen($callback){
  3147. //Method inherited from \Illuminate\Database\Connection
  3148. \Illuminate\Database\MySqlConnection::listen($callback);
  3149. }
  3150. /**
  3151. * Get a Doctrine Schema Column instance.
  3152. *
  3153. * @param string $table
  3154. * @param string $column
  3155. * @return \Doctrine\DBAL\Schema\Column
  3156. * @static
  3157. */
  3158. public static function getDoctrineColumn($table, $column){
  3159. //Method inherited from \Illuminate\Database\Connection
  3160. return \Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
  3161. }
  3162. /**
  3163. * Get the Doctrine DBAL schema manager for the connection.
  3164. *
  3165. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3166. * @static
  3167. */
  3168. public static function getDoctrineSchemaManager(){
  3169. //Method inherited from \Illuminate\Database\Connection
  3170. return \Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
  3171. }
  3172. /**
  3173. * Get the Doctrine DBAL database connection instance.
  3174. *
  3175. * @return \Doctrine\DBAL\Connection
  3176. * @static
  3177. */
  3178. public static function getDoctrineConnection(){
  3179. //Method inherited from \Illuminate\Database\Connection
  3180. return \Illuminate\Database\MySqlConnection::getDoctrineConnection();
  3181. }
  3182. /**
  3183. * Get the current PDO connection.
  3184. *
  3185. * @return PDO
  3186. * @static
  3187. */
  3188. public static function getPdo(){
  3189. //Method inherited from \Illuminate\Database\Connection
  3190. return \Illuminate\Database\MySqlConnection::getPdo();
  3191. }
  3192. /**
  3193. * Get the current PDO connection used for reading.
  3194. *
  3195. * @return PDO
  3196. * @static
  3197. */
  3198. public static function getReadPdo(){
  3199. //Method inherited from \Illuminate\Database\Connection
  3200. return \Illuminate\Database\MySqlConnection::getReadPdo();
  3201. }
  3202. /**
  3203. * Set the PDO connection.
  3204. *
  3205. * @param PDO $pdo
  3206. * @return \Illuminate\Database\Connection
  3207. * @static
  3208. */
  3209. public static function setPdo($pdo){
  3210. //Method inherited from \Illuminate\Database\Connection
  3211. return \Illuminate\Database\MySqlConnection::setPdo($pdo);
  3212. }
  3213. /**
  3214. * Set the PDO connection used for reading.
  3215. *
  3216. * @param PDO $pdo
  3217. * @return \Illuminate\Database\Connection
  3218. * @static
  3219. */
  3220. public static function setReadPdo($pdo){
  3221. //Method inherited from \Illuminate\Database\Connection
  3222. return \Illuminate\Database\MySqlConnection::setReadPdo($pdo);
  3223. }
  3224. /**
  3225. * Get the database connection name.
  3226. *
  3227. * @return string|null
  3228. * @static
  3229. */
  3230. public static function getName(){
  3231. //Method inherited from \Illuminate\Database\Connection
  3232. return \Illuminate\Database\MySqlConnection::getName();
  3233. }
  3234. /**
  3235. * Get an option from the configuration options.
  3236. *
  3237. * @param string $option
  3238. * @return mixed
  3239. * @static
  3240. */
  3241. public static function getConfig($option){
  3242. //Method inherited from \Illuminate\Database\Connection
  3243. return \Illuminate\Database\MySqlConnection::getConfig($option);
  3244. }
  3245. /**
  3246. * Get the PDO driver name.
  3247. *
  3248. * @return string
  3249. * @static
  3250. */
  3251. public static function getDriverName(){
  3252. //Method inherited from \Illuminate\Database\Connection
  3253. return \Illuminate\Database\MySqlConnection::getDriverName();
  3254. }
  3255. /**
  3256. * Get the query grammar used by the connection.
  3257. *
  3258. * @return \Illuminate\Database\Query\Grammars\Grammar
  3259. * @static
  3260. */
  3261. public static function getQueryGrammar(){
  3262. //Method inherited from \Illuminate\Database\Connection
  3263. return \Illuminate\Database\MySqlConnection::getQueryGrammar();
  3264. }
  3265. /**
  3266. * Set the query grammar used by the connection.
  3267. *
  3268. * @param \Illuminate\Database\Query\Grammars\Grammar
  3269. * @return void
  3270. * @static
  3271. */
  3272. public static function setQueryGrammar($grammar){
  3273. //Method inherited from \Illuminate\Database\Connection
  3274. \Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
  3275. }
  3276. /**
  3277. * Get the schema grammar used by the connection.
  3278. *
  3279. * @return \Illuminate\Database\Query\Grammars\Grammar
  3280. * @static
  3281. */
  3282. public static function getSchemaGrammar(){
  3283. //Method inherited from \Illuminate\Database\Connection
  3284. return \Illuminate\Database\MySqlConnection::getSchemaGrammar();
  3285. }
  3286. /**
  3287. * Set the schema grammar used by the connection.
  3288. *
  3289. * @param \Illuminate\Database\Schema\Grammars\Grammar
  3290. * @return void
  3291. * @static
  3292. */
  3293. public static function setSchemaGrammar($grammar){
  3294. //Method inherited from \Illuminate\Database\Connection
  3295. \Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
  3296. }
  3297. /**
  3298. * Get the query post processor used by the connection.
  3299. *
  3300. * @return \Illuminate\Database\Query\Processors\Processor
  3301. * @static
  3302. */
  3303. public static function getPostProcessor(){
  3304. //Method inherited from \Illuminate\Database\Connection
  3305. return \Illuminate\Database\MySqlConnection::getPostProcessor();
  3306. }
  3307. /**
  3308. * Set the query post processor used by the connection.
  3309. *
  3310. * @param \Illuminate\Database\Query\Processors\Processor
  3311. * @return void
  3312. * @static
  3313. */
  3314. public static function setPostProcessor($processor){
  3315. //Method inherited from \Illuminate\Database\Connection
  3316. \Illuminate\Database\MySqlConnection::setPostProcessor($processor);
  3317. }
  3318. /**
  3319. * Get the event dispatcher used by the connection.
  3320. *
  3321. * @return \Illuminate\Events\Dispatcher
  3322. * @static
  3323. */
  3324. public static function getEventDispatcher(){
  3325. //Method inherited from \Illuminate\Database\Connection
  3326. return \Illuminate\Database\MySqlConnection::getEventDispatcher();
  3327. }
  3328. /**
  3329. * Set the event dispatcher instance on the connection.
  3330. *
  3331. * @param \Illuminate\Events\Dispatcher
  3332. * @return void
  3333. * @static
  3334. */
  3335. public static function setEventDispatcher($events){
  3336. //Method inherited from \Illuminate\Database\Connection
  3337. \Illuminate\Database\MySqlConnection::setEventDispatcher($events);
  3338. }
  3339. /**
  3340. * Get the paginator environment instance.
  3341. *
  3342. * @return \Illuminate\Pagination\Factory
  3343. * @static
  3344. */
  3345. public static function getPaginator(){
  3346. //Method inherited from \Illuminate\Database\Connection
  3347. return \Illuminate\Database\MySqlConnection::getPaginator();
  3348. }
  3349. /**
  3350. * Set the pagination environment instance.
  3351. *
  3352. * @param \Illuminate\Pagination\Factory|\Closure $paginator
  3353. * @return void
  3354. * @static
  3355. */
  3356. public static function setPaginator($paginator){
  3357. //Method inherited from \Illuminate\Database\Connection
  3358. \Illuminate\Database\MySqlConnection::setPaginator($paginator);
  3359. }
  3360. /**
  3361. * Get the cache manager instance.
  3362. *
  3363. * @return \Illuminate\Cache\CacheManager
  3364. * @static
  3365. */
  3366. public static function getCacheManager(){
  3367. //Method inherited from \Illuminate\Database\Connection
  3368. return \Illuminate\Database\MySqlConnection::getCacheManager();
  3369. }
  3370. /**
  3371. * Set the cache manager instance on the connection.
  3372. *
  3373. * @param \Illuminate\Cache\CacheManager|\Closure $cache
  3374. * @return void
  3375. * @static
  3376. */
  3377. public static function setCacheManager($cache){
  3378. //Method inherited from \Illuminate\Database\Connection
  3379. \Illuminate\Database\MySqlConnection::setCacheManager($cache);
  3380. }
  3381. /**
  3382. * Determine if the connection in a "dry run".
  3383. *
  3384. * @return bool
  3385. * @static
  3386. */
  3387. public static function pretending(){
  3388. //Method inherited from \Illuminate\Database\Connection
  3389. return \Illuminate\Database\MySqlConnection::pretending();
  3390. }
  3391. /**
  3392. * Get the default fetch mode for the connection.
  3393. *
  3394. * @return int
  3395. * @static
  3396. */
  3397. public static function getFetchMode(){
  3398. //Method inherited from \Illuminate\Database\Connection
  3399. return \Illuminate\Database\MySqlConnection::getFetchMode();
  3400. }
  3401. /**
  3402. * Set the default fetch mode for the connection.
  3403. *
  3404. * @param int $fetchMode
  3405. * @return int
  3406. * @static
  3407. */
  3408. public static function setFetchMode($fetchMode){
  3409. //Method inherited from \Illuminate\Database\Connection
  3410. return \Illuminate\Database\MySqlConnection::setFetchMode($fetchMode);
  3411. }
  3412. /**
  3413. * Get the connection query log.
  3414. *
  3415. * @return array
  3416. * @static
  3417. */
  3418. public static function getQueryLog(){
  3419. //Method inherited from \Illuminate\Database\Connection
  3420. return \Illuminate\Database\MySqlConnection::getQueryLog();
  3421. }
  3422. /**
  3423. * Clear the query log.
  3424. *
  3425. * @return void
  3426. * @static
  3427. */
  3428. public static function flushQueryLog(){
  3429. //Method inherited from \Illuminate\Database\Connection
  3430. \Illuminate\Database\MySqlConnection::flushQueryLog();
  3431. }
  3432. /**
  3433. * Enable the query log on the connection.
  3434. *
  3435. * @return void
  3436. * @static
  3437. */
  3438. public static function enableQueryLog(){
  3439. //Method inherited from \Illuminate\Database\Connection
  3440. \Illuminate\Database\MySqlConnection::enableQueryLog();
  3441. }
  3442. /**
  3443. * Disable the query log on the connection.
  3444. *
  3445. * @return void
  3446. * @static
  3447. */
  3448. public static function disableQueryLog(){
  3449. //Method inherited from \Illuminate\Database\Connection
  3450. \Illuminate\Database\MySqlConnection::disableQueryLog();
  3451. }
  3452. /**
  3453. * Determine whether we're logging queries.
  3454. *
  3455. * @return bool
  3456. * @static
  3457. */
  3458. public static function logging(){
  3459. //Method inherited from \Illuminate\Database\Connection
  3460. return \Illuminate\Database\MySqlConnection::logging();
  3461. }
  3462. /**
  3463. * Get the name of the connected database.
  3464. *
  3465. * @return string
  3466. * @static
  3467. */
  3468. public static function getDatabaseName(){
  3469. //Method inherited from \Illuminate\Database\Connection
  3470. return \Illuminate\Database\MySqlConnection::getDatabaseName();
  3471. }
  3472. /**
  3473. * Set the name of the connected database.
  3474. *
  3475. * @param string $database
  3476. * @return string
  3477. * @static
  3478. */
  3479. public static function setDatabaseName($database){
  3480. //Method inherited from \Illuminate\Database\Connection
  3481. return \Illuminate\Database\MySqlConnection::setDatabaseName($database);
  3482. }
  3483. /**
  3484. * Get the table prefix for the connection.
  3485. *
  3486. * @return string
  3487. * @static
  3488. */
  3489. public static function getTablePrefix(){
  3490. //Method inherited from \Illuminate\Database\Connection
  3491. return \Illuminate\Database\MySqlConnection::getTablePrefix();
  3492. }
  3493. /**
  3494. * Set the table prefix in use by the connection.
  3495. *
  3496. * @param string $prefix
  3497. * @return void
  3498. * @static
  3499. */
  3500. public static function setTablePrefix($prefix){
  3501. //Method inherited from \Illuminate\Database\Connection
  3502. \Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
  3503. }
  3504. /**
  3505. * Set the table prefix and return the grammar.
  3506. *
  3507. * @param \Illuminate\Database\Grammar $grammar
  3508. * @return \Illuminate\Database\Grammar
  3509. * @static
  3510. */
  3511. public static function withTablePrefix($grammar){
  3512. //Method inherited from \Illuminate\Database\Connection
  3513. return \Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
  3514. }
  3515. }
  3516. class Eloquent extends \Illuminate\Database\Eloquent\Model{
  3517. /**
  3518. * Find a model by its primary key.
  3519. *
  3520. * @param array $id
  3521. * @param array $columns
  3522. * @return \Illuminate\Database\Eloquent\Model|Collection|static
  3523. * @static
  3524. */
  3525. public static function findMany($id, $columns = array()){
  3526. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3527. return \Illuminate\Database\Eloquent\Builder::findMany($id, $columns);
  3528. }
  3529. /**
  3530. * Execute the query and get the first result.
  3531. *
  3532. * @param array $columns
  3533. * @return \Illuminate\Database\Eloquent\Model|static|null
  3534. * @static
  3535. */
  3536. public static function first($columns = array()){
  3537. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3538. return \Illuminate\Database\Eloquent\Builder::first($columns);
  3539. }
  3540. /**
  3541. * Execute the query and get the first result or throw an exception.
  3542. *
  3543. * @param array $columns
  3544. * @return \Illuminate\Database\Eloquent\Model|static
  3545. * @throws ModelNotFoundException
  3546. * @static
  3547. */
  3548. public static function firstOrFail($columns = array()){
  3549. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3550. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  3551. }
  3552. /**
  3553. * Execute the query as a "select" statement.
  3554. *
  3555. * @param array $columns
  3556. * @return \Illuminate\Database\Eloquent\Collection|static[]
  3557. * @static
  3558. */
  3559. public static function get($columns = array()){
  3560. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3561. return \Illuminate\Database\Eloquent\Builder::get($columns);
  3562. }
  3563. /**
  3564. * Pluck a single column from the database.
  3565. *
  3566. * @param string $column
  3567. * @return mixed
  3568. * @static
  3569. */
  3570. public static function pluck($column){
  3571. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3572. return \Illuminate\Database\Eloquent\Builder::pluck($column);
  3573. }
  3574. /**
  3575. * Chunk the results of the query.
  3576. *
  3577. * @param int $count
  3578. * @param callable $callback
  3579. * @return void
  3580. * @static
  3581. */
  3582. public static function chunk($count, $callback){
  3583. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3584. \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  3585. }
  3586. /**
  3587. * Get an array with the values of a given column.
  3588. *
  3589. * @param string $column
  3590. * @param string $key
  3591. * @return array
  3592. * @static
  3593. */
  3594. public static function lists($column, $key = null){
  3595. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3596. return \Illuminate\Database\Eloquent\Builder::lists($column, $key);
  3597. }
  3598. /**
  3599. * Get a paginator for the "select" statement.
  3600. *
  3601. * @param int $perPage
  3602. * @param array $columns
  3603. * @return \Illuminate\Pagination\Paginator
  3604. * @static
  3605. */
  3606. public static function paginate($perPage = null, $columns = array()){
  3607. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3608. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns);
  3609. }
  3610. /**
  3611. * Get a paginator only supporting simple next and previous links.
  3612. *
  3613. * This is more efficient on larger data-sets, etc.
  3614. *
  3615. * @param \Illuminate\Pagination\Factory $paginator
  3616. * @param int $perPage
  3617. * @param array $columns
  3618. * @return \Illuminate\Pagination\Paginator
  3619. * @static
  3620. */
  3621. public static function simplePaginate($perPage = null, $columns = array()){
  3622. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3623. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns);
  3624. }
  3625. /**
  3626. * Increment a column's value by a given amount.
  3627. *
  3628. * @param string $column
  3629. * @param int $amount
  3630. * @param array $extra
  3631. * @return int
  3632. * @static
  3633. */
  3634. public static function increment($column, $amount = 1, $extra = array()){
  3635. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3636. return \Illuminate\Database\Eloquent\Builder::increment($column, $amount, $extra);
  3637. }
  3638. /**
  3639. * Decrement a column's value by a given amount.
  3640. *
  3641. * @param string $column
  3642. * @param int $amount
  3643. * @param array $extra
  3644. * @return int
  3645. * @static
  3646. */
  3647. public static function decrement($column, $amount = 1, $extra = array()){
  3648. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3649. return \Illuminate\Database\Eloquent\Builder::decrement($column, $amount, $extra);
  3650. }
  3651. /**
  3652. * Run the default delete function on the builder.
  3653. *
  3654. * @return mixed
  3655. * @static
  3656. */
  3657. public static function forceDelete(){
  3658. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3659. return \Illuminate\Database\Eloquent\Builder::forceDelete();
  3660. }
  3661. /**
  3662. * Register a replacement for the default delete function.
  3663. *
  3664. * @param \Closure $callback
  3665. * @return void
  3666. * @static
  3667. */
  3668. public static function onDelete($callback){
  3669. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3670. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  3671. }
  3672. /**
  3673. * Get the hydrated models without eager loading.
  3674. *
  3675. * @param array $columns
  3676. * @return array|static[]
  3677. * @static
  3678. */
  3679. public static function getModels($columns = array()){
  3680. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3681. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  3682. }
  3683. /**
  3684. * Eager load the relationships for the models.
  3685. *
  3686. * @param array $models
  3687. * @return array
  3688. * @static
  3689. */
  3690. public static function eagerLoadRelations($models){
  3691. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3692. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  3693. }
  3694. /**
  3695. * Add a basic where clause to the query.
  3696. *
  3697. * @param string $column
  3698. * @param string $operator
  3699. * @param mixed $value
  3700. * @param string $boolean
  3701. * @return \Illuminate\Database\Eloquent\Builder|static
  3702. * @static
  3703. */
  3704. public static function where($column, $operator = null, $value = null, $boolean = 'and'){
  3705. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3706. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  3707. }
  3708. /**
  3709. * Add an "or where" clause to the query.
  3710. *
  3711. * @param string $column
  3712. * @param string $operator
  3713. * @param mixed $value
  3714. * @return \Illuminate\Database\Eloquent\Builder|static
  3715. * @static
  3716. */
  3717. public static function orWhere($column, $operator = null, $value = null){
  3718. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3719. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  3720. }
  3721. /**
  3722. * Add a relationship count condition to the query.
  3723. *
  3724. * @param string $relation
  3725. * @param string $operator
  3726. * @param int $count
  3727. * @param string $boolean
  3728. * @param \Closure $callback
  3729. * @return \Illuminate\Database\Eloquent\Builder|static
  3730. * @static
  3731. */
  3732. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null){
  3733. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3734. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  3735. }
  3736. /**
  3737. * Add a relationship count condition to the query with where clauses.
  3738. *
  3739. * @param string $relation
  3740. * @param \Closure $callback
  3741. * @param string $operator
  3742. * @param int $count
  3743. * @return \Illuminate\Database\Eloquent\Builder|static
  3744. * @static
  3745. */
  3746. public static function whereHas($relation, $callback, $operator = '>=', $count = 1){
  3747. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3748. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  3749. }
  3750. /**
  3751. * Add a relationship count condition to the query with an "or".
  3752. *
  3753. * @param string $relation
  3754. * @param string $operator
  3755. * @param int $count
  3756. * @return \Illuminate\Database\Eloquent\Builder|static
  3757. * @static
  3758. */
  3759. public static function orHas($relation, $operator = '>=', $count = 1){
  3760. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3761. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  3762. }
  3763. /**
  3764. * Add a relationship count condition to the query with where clauses and an "or".
  3765. *
  3766. * @param string $relation
  3767. * @param \Closure $callback
  3768. * @param string $operator
  3769. * @param int $count
  3770. * @return \Illuminate\Database\Eloquent\Builder|static
  3771. * @static
  3772. */
  3773. public static function orWhereHas($relation, $callback, $operator = '>=', $count = 1){
  3774. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3775. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  3776. }
  3777. /**
  3778. * Get the underlying query builder instance.
  3779. *
  3780. * @return \Illuminate\Database\Query\Builder|static
  3781. * @static
  3782. */
  3783. public static function getQuery(){
  3784. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3785. return \Illuminate\Database\Eloquent\Builder::getQuery();
  3786. }
  3787. /**
  3788. * Set the underlying query builder instance.
  3789. *
  3790. * @param \Illuminate\Database\Query\Builder $query
  3791. * @return void
  3792. * @static
  3793. */
  3794. public static function setQuery($query){
  3795. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3796. \Illuminate\Database\Eloquent\Builder::setQuery($query);
  3797. }
  3798. /**
  3799. * Get the relationships being eagerly loaded.
  3800. *
  3801. * @return array
  3802. * @static
  3803. */
  3804. public static function getEagerLoads(){
  3805. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3806. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  3807. }
  3808. /**
  3809. * Set the relationships being eagerly loaded.
  3810. *
  3811. * @param array $eagerLoad
  3812. * @return void
  3813. * @static
  3814. */
  3815. public static function setEagerLoads($eagerLoad){
  3816. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3817. \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  3818. }
  3819. /**
  3820. * Get the model instance being queried.
  3821. *
  3822. * @return \Illuminate\Database\Eloquent\Model
  3823. * @static
  3824. */
  3825. public static function getModel(){
  3826. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3827. return \Illuminate\Database\Eloquent\Builder::getModel();
  3828. }
  3829. /**
  3830. * Set a model instance for the model being queried.
  3831. *
  3832. * @param \Illuminate\Database\Eloquent\Model $model
  3833. * @return \Illuminate\Database\Eloquent\Builder
  3834. * @static
  3835. */
  3836. public static function setModel($model){
  3837. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3838. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  3839. }
  3840. /**
  3841. * Extend the builder with a given callback.
  3842. *
  3843. * @param string $name
  3844. * @param \Closure $callback
  3845. * @return void
  3846. * @static
  3847. */
  3848. public static function macro($name, $callback){
  3849. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3850. \Illuminate\Database\Eloquent\Builder::macro($name, $callback);
  3851. }
  3852. /**
  3853. * Get the given macro by name.
  3854. *
  3855. * @param string $name
  3856. * @return \Closure
  3857. * @static
  3858. */
  3859. public static function getMacro($name){
  3860. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3861. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  3862. }
  3863. /**
  3864. * Set the columns to be selected.
  3865. *
  3866. * @param array $columns
  3867. * @return \Illuminate\Database\Query\Builder|static
  3868. * @static
  3869. */
  3870. public static function select($columns = array()){
  3871. //Method inherited from \Illuminate\Database\Query\Builder
  3872. return \Illuminate\Database\Query\Builder::select($columns);
  3873. }
  3874. /**
  3875. * Add a new "raw" select expression to the query.
  3876. *
  3877. * @param string $expression
  3878. * @return \Illuminate\Database\Query\Builder|static
  3879. * @static
  3880. */
  3881. public static function selectRaw($expression){
  3882. //Method inherited from \Illuminate\Database\Query\Builder
  3883. return \Illuminate\Database\Query\Builder::selectRaw($expression);
  3884. }
  3885. /**
  3886. * Add a new select column to the query.
  3887. *
  3888. * @param mixed $column
  3889. * @return \Illuminate\Database\Query\Builder|static
  3890. * @static
  3891. */
  3892. public static function addSelect($column){
  3893. //Method inherited from \Illuminate\Database\Query\Builder
  3894. return \Illuminate\Database\Query\Builder::addSelect($column);
  3895. }
  3896. /**
  3897. * Force the query to only return distinct results.
  3898. *
  3899. * @return \Illuminate\Database\Query\Builder|static
  3900. * @static
  3901. */
  3902. public static function distinct(){
  3903. //Method inherited from \Illuminate\Database\Query\Builder
  3904. return \Illuminate\Database\Query\Builder::distinct();
  3905. }
  3906. /**
  3907. * Set the table which the query is targeting.
  3908. *
  3909. * @param string $table
  3910. * @return \Illuminate\Database\Query\Builder|static
  3911. * @static
  3912. */
  3913. public static function from($table){
  3914. //Method inherited from \Illuminate\Database\Query\Builder
  3915. return \Illuminate\Database\Query\Builder::from($table);
  3916. }
  3917. /**
  3918. * Add a join clause to the query.
  3919. *
  3920. * @param string $table
  3921. * @param string $first
  3922. * @param string $operator
  3923. * @param string $two
  3924. * @param string $type
  3925. * @param bool $where
  3926. * @return \Illuminate\Database\Query\Builder|static
  3927. * @static
  3928. */
  3929. public static function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false){
  3930. //Method inherited from \Illuminate\Database\Query\Builder
  3931. return \Illuminate\Database\Query\Builder::join($table, $one, $operator, $two, $type, $where);
  3932. }
  3933. /**
  3934. * Add a "join where" clause to the query.
  3935. *
  3936. * @param string $table
  3937. * @param string $first
  3938. * @param string $operator
  3939. * @param string $two
  3940. * @param string $type
  3941. * @return \Illuminate\Database\Query\Builder|static
  3942. * @static
  3943. */
  3944. public static function joinWhere($table, $one, $operator, $two, $type = 'inner'){
  3945. //Method inherited from \Illuminate\Database\Query\Builder
  3946. return \Illuminate\Database\Query\Builder::joinWhere($table, $one, $operator, $two, $type);
  3947. }
  3948. /**
  3949. * Add a left join to the query.
  3950. *
  3951. * @param string $table
  3952. * @param string $first
  3953. * @param string $operator
  3954. * @param string $second
  3955. * @return \Illuminate\Database\Query\Builder|static
  3956. * @static
  3957. */
  3958. public static function leftJoin($table, $first, $operator = null, $second = null){
  3959. //Method inherited from \Illuminate\Database\Query\Builder
  3960. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  3961. }
  3962. /**
  3963. * Add a "join where" clause to the query.
  3964. *
  3965. * @param string $table
  3966. * @param string $first
  3967. * @param string $operator
  3968. * @param string $two
  3969. * @return \Illuminate\Database\Query\Builder|static
  3970. * @static
  3971. */
  3972. public static function leftJoinWhere($table, $one, $operator, $two){
  3973. //Method inherited from \Illuminate\Database\Query\Builder
  3974. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $one, $operator, $two);
  3975. }
  3976. /**
  3977. * Add a raw where clause to the query.
  3978. *
  3979. * @param string $sql
  3980. * @param array $bindings
  3981. * @param string $boolean
  3982. * @return \Illuminate\Database\Query\Builder|static
  3983. * @static
  3984. */
  3985. public static function whereRaw($sql, $bindings = array(), $boolean = 'and'){
  3986. //Method inherited from \Illuminate\Database\Query\Builder
  3987. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  3988. }
  3989. /**
  3990. * Add a raw or where clause to the query.
  3991. *
  3992. * @param string $sql
  3993. * @param array $bindings
  3994. * @return \Illuminate\Database\Query\Builder|static
  3995. * @static
  3996. */
  3997. public static function orWhereRaw($sql, $bindings = array()){
  3998. //Method inherited from \Illuminate\Database\Query\Builder
  3999. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  4000. }
  4001. /**
  4002. * Add a where between statement to the query.
  4003. *
  4004. * @param string $column
  4005. * @param array $values
  4006. * @param string $boolean
  4007. * @param bool $not
  4008. * @return \Illuminate\Database\Query\Builder|static
  4009. * @static
  4010. */
  4011. public static function whereBetween($column, $values, $boolean = 'and', $not = false){
  4012. //Method inherited from \Illuminate\Database\Query\Builder
  4013. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  4014. }
  4015. /**
  4016. * Add an or where between statement to the query.
  4017. *
  4018. * @param string $column
  4019. * @param array $values
  4020. * @return \Illuminate\Database\Query\Builder|static
  4021. * @static
  4022. */
  4023. public static function orWhereBetween($column, $values){
  4024. //Method inherited from \Illuminate\Database\Query\Builder
  4025. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  4026. }
  4027. /**
  4028. * Add a where not between statement to the query.
  4029. *
  4030. * @param string $column
  4031. * @param array $values
  4032. * @param string $boolean
  4033. * @return \Illuminate\Database\Query\Builder|static
  4034. * @static
  4035. */
  4036. public static function whereNotBetween($column, $values, $boolean = 'and'){
  4037. //Method inherited from \Illuminate\Database\Query\Builder
  4038. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  4039. }
  4040. /**
  4041. * Add an or where not between statement to the query.
  4042. *
  4043. * @param string $column
  4044. * @param array $values
  4045. * @return \Illuminate\Database\Query\Builder|static
  4046. * @static
  4047. */
  4048. public static function orWhereNotBetween($column, $values){
  4049. //Method inherited from \Illuminate\Database\Query\Builder
  4050. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  4051. }
  4052. /**
  4053. * Add a nested where statement to the query.
  4054. *
  4055. * @param \Closure $callback
  4056. * @param string $boolean
  4057. * @return \Illuminate\Database\Query\Builder|static
  4058. * @static
  4059. */
  4060. public static function whereNested($callback, $boolean = 'and'){
  4061. //Method inherited from \Illuminate\Database\Query\Builder
  4062. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  4063. }
  4064. /**
  4065. * Add another query builder as a nested where to the query builder.
  4066. *
  4067. * @param \Illuminate\Database\Query\Builder|static $query
  4068. * @param string $boolean
  4069. * @return \Illuminate\Database\Query\Builder|static
  4070. * @static
  4071. */
  4072. public static function addNestedWhereQuery($query, $boolean = 'and'){
  4073. //Method inherited from \Illuminate\Database\Query\Builder
  4074. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  4075. }
  4076. /**
  4077. * Add an exists clause to the query.
  4078. *
  4079. * @param \Closure $callback
  4080. * @param string $boolean
  4081. * @param bool $not
  4082. * @return \Illuminate\Database\Query\Builder|static
  4083. * @static
  4084. */
  4085. public static function whereExists($callback, $boolean = 'and', $not = false){
  4086. //Method inherited from \Illuminate\Database\Query\Builder
  4087. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  4088. }
  4089. /**
  4090. * Add an or exists clause to the query.
  4091. *
  4092. * @param \Closure $callback
  4093. * @param bool $not
  4094. * @return \Illuminate\Database\Query\Builder|static
  4095. * @static
  4096. */
  4097. public static function orWhereExists($callback, $not = false){
  4098. //Method inherited from \Illuminate\Database\Query\Builder
  4099. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  4100. }
  4101. /**
  4102. * Add a where not exists clause to the query.
  4103. *
  4104. * @param \Closure $callback
  4105. * @param string $boolean
  4106. * @return \Illuminate\Database\Query\Builder|static
  4107. * @static
  4108. */
  4109. public static function whereNotExists($callback, $boolean = 'and'){
  4110. //Method inherited from \Illuminate\Database\Query\Builder
  4111. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  4112. }
  4113. /**
  4114. * Add a where not exists clause to the query.
  4115. *
  4116. * @param \Closure $callback
  4117. * @return \Illuminate\Database\Query\Builder|static
  4118. * @static
  4119. */
  4120. public static function orWhereNotExists($callback){
  4121. //Method inherited from \Illuminate\Database\Query\Builder
  4122. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  4123. }
  4124. /**
  4125. * Add a "where in" clause to the query.
  4126. *
  4127. * @param string $column
  4128. * @param mixed $values
  4129. * @param string $boolean
  4130. * @param bool $not
  4131. * @return \Illuminate\Database\Query\Builder|static
  4132. * @static
  4133. */
  4134. public static function whereIn($column, $values, $boolean = 'and', $not = false){
  4135. //Method inherited from \Illuminate\Database\Query\Builder
  4136. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  4137. }
  4138. /**
  4139. * Add an "or where in" clause to the query.
  4140. *
  4141. * @param string $column
  4142. * @param mixed $values
  4143. * @return \Illuminate\Database\Query\Builder|static
  4144. * @static
  4145. */
  4146. public static function orWhereIn($column, $values){
  4147. //Method inherited from \Illuminate\Database\Query\Builder
  4148. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  4149. }
  4150. /**
  4151. * Add a "where not in" clause to the query.
  4152. *
  4153. * @param string $column
  4154. * @param mixed $values
  4155. * @param string $boolean
  4156. * @return \Illuminate\Database\Query\Builder|static
  4157. * @static
  4158. */
  4159. public static function whereNotIn($column, $values, $boolean = 'and'){
  4160. //Method inherited from \Illuminate\Database\Query\Builder
  4161. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  4162. }
  4163. /**
  4164. * Add an "or where not in" clause to the query.
  4165. *
  4166. * @param string $column
  4167. * @param mixed $values
  4168. * @return \Illuminate\Database\Query\Builder|static
  4169. * @static
  4170. */
  4171. public static function orWhereNotIn($column, $values){
  4172. //Method inherited from \Illuminate\Database\Query\Builder
  4173. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  4174. }
  4175. /**
  4176. * Add a "where null" clause to the query.
  4177. *
  4178. * @param string $column
  4179. * @param string $boolean
  4180. * @param bool $not
  4181. * @return \Illuminate\Database\Query\Builder|static
  4182. * @static
  4183. */
  4184. public static function whereNull($column, $boolean = 'and', $not = false){
  4185. //Method inherited from \Illuminate\Database\Query\Builder
  4186. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  4187. }
  4188. /**
  4189. * Add an "or where null" clause to the query.
  4190. *
  4191. * @param string $column
  4192. * @return \Illuminate\Database\Query\Builder|static
  4193. * @static
  4194. */
  4195. public static function orWhereNull($column){
  4196. //Method inherited from \Illuminate\Database\Query\Builder
  4197. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  4198. }
  4199. /**
  4200. * Add a "where not null" clause to the query.
  4201. *
  4202. * @param string $column
  4203. * @param string $boolean
  4204. * @return \Illuminate\Database\Query\Builder|static
  4205. * @static
  4206. */
  4207. public static function whereNotNull($column, $boolean = 'and'){
  4208. //Method inherited from \Illuminate\Database\Query\Builder
  4209. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  4210. }
  4211. /**
  4212. * Add an "or where not null" clause to the query.
  4213. *
  4214. * @param string $column
  4215. * @return \Illuminate\Database\Query\Builder|static
  4216. * @static
  4217. */
  4218. public static function orWhereNotNull($column){
  4219. //Method inherited from \Illuminate\Database\Query\Builder
  4220. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  4221. }
  4222. /**
  4223. * Add a "where day" statement to the query.
  4224. *
  4225. * @param string $column
  4226. * @param string $operator
  4227. * @param int $value
  4228. * @param string $boolean
  4229. * @return \Illuminate\Database\Query\Builder|static
  4230. * @static
  4231. */
  4232. public static function whereDay($column, $operator, $value, $boolean = 'and'){
  4233. //Method inherited from \Illuminate\Database\Query\Builder
  4234. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  4235. }
  4236. /**
  4237. * Add a "where month" statement to the query.
  4238. *
  4239. * @param string $column
  4240. * @param string $operator
  4241. * @param int $value
  4242. * @param string $boolean
  4243. * @return \Illuminate\Database\Query\Builder|static
  4244. * @static
  4245. */
  4246. public static function whereMonth($column, $operator, $value, $boolean = 'and'){
  4247. //Method inherited from \Illuminate\Database\Query\Builder
  4248. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  4249. }
  4250. /**
  4251. * Add a "where year" statement to the query.
  4252. *
  4253. * @param string $column
  4254. * @param string $operator
  4255. * @param int $value
  4256. * @param string $boolean
  4257. * @return \Illuminate\Database\Query\Builder|static
  4258. * @static
  4259. */
  4260. public static function whereYear($column, $operator, $value, $boolean = 'and'){
  4261. //Method inherited from \Illuminate\Database\Query\Builder
  4262. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  4263. }
  4264. /**
  4265. * Handles dynamic "where" clauses to the query.
  4266. *
  4267. * @param string $method
  4268. * @param string $parameters
  4269. * @return \Illuminate\Database\Query\Builder|static
  4270. * @static
  4271. */
  4272. public static function dynamicWhere($method, $parameters){
  4273. //Method inherited from \Illuminate\Database\Query\Builder
  4274. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  4275. }
  4276. /**
  4277. * Add a "group by" clause to the query.
  4278. *
  4279. * @param dynamic $columns
  4280. * @return \Illuminate\Database\Query\Builder|static
  4281. * @static
  4282. */
  4283. public static function groupBy(){
  4284. //Method inherited from \Illuminate\Database\Query\Builder
  4285. return \Illuminate\Database\Query\Builder::groupBy();
  4286. }
  4287. /**
  4288. * Add a "having" clause to the query.
  4289. *
  4290. * @param string $column
  4291. * @param string $operator
  4292. * @param string $value
  4293. * @param string $boolean
  4294. * @return \Illuminate\Database\Query\Builder|static
  4295. * @static
  4296. */
  4297. public static function having($column, $operator = null, $value = null, $boolean = 'and'){
  4298. //Method inherited from \Illuminate\Database\Query\Builder
  4299. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  4300. }
  4301. /**
  4302. * Add a "or having" clause to the query.
  4303. *
  4304. * @param string $column
  4305. * @param string $operator
  4306. * @param string $value
  4307. * @return \Illuminate\Database\Query\Builder|static
  4308. * @static
  4309. */
  4310. public static function orHaving($column, $operator = null, $value = null){
  4311. //Method inherited from \Illuminate\Database\Query\Builder
  4312. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  4313. }
  4314. /**
  4315. * Add a raw having clause to the query.
  4316. *
  4317. * @param string $sql
  4318. * @param array $bindings
  4319. * @param string $boolean
  4320. * @return \Illuminate\Database\Query\Builder|static
  4321. * @static
  4322. */
  4323. public static function havingRaw($sql, $bindings = array(), $boolean = 'and'){
  4324. //Method inherited from \Illuminate\Database\Query\Builder
  4325. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  4326. }
  4327. /**
  4328. * Add a raw or having clause to the query.
  4329. *
  4330. * @param string $sql
  4331. * @param array $bindings
  4332. * @return \Illuminate\Database\Query\Builder|static
  4333. * @static
  4334. */
  4335. public static function orHavingRaw($sql, $bindings = array()){
  4336. //Method inherited from \Illuminate\Database\Query\Builder
  4337. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  4338. }
  4339. /**
  4340. * Add an "order by" clause to the query.
  4341. *
  4342. * @param string $column
  4343. * @param string $direction
  4344. * @return \Illuminate\Database\Query\Builder|static
  4345. * @static
  4346. */
  4347. public static function orderBy($column, $direction = 'asc'){
  4348. //Method inherited from \Illuminate\Database\Query\Builder
  4349. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  4350. }
  4351. /**
  4352. * Add an "order by" clause for a timestamp to the query.
  4353. *
  4354. * @param string $column
  4355. * @return \Illuminate\Database\Query\Builder|static
  4356. * @static
  4357. */
  4358. public static function latest($column = 'created_at'){
  4359. //Method inherited from \Illuminate\Database\Query\Builder
  4360. return \Illuminate\Database\Query\Builder::latest($column);
  4361. }
  4362. /**
  4363. * Add an "order by" clause for a timestamp to the query.
  4364. *
  4365. * @param string $column
  4366. * @return \Illuminate\Database\Query\Builder|static
  4367. * @static
  4368. */
  4369. public static function oldest($column = 'created_at'){
  4370. //Method inherited from \Illuminate\Database\Query\Builder
  4371. return \Illuminate\Database\Query\Builder::oldest($column);
  4372. }
  4373. /**
  4374. * Add a raw "order by" clause to the query.
  4375. *
  4376. * @param string $sql
  4377. * @param array $bindings
  4378. * @return \Illuminate\Database\Query\Builder|static
  4379. * @static
  4380. */
  4381. public static function orderByRaw($sql, $bindings = array()){
  4382. //Method inherited from \Illuminate\Database\Query\Builder
  4383. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  4384. }
  4385. /**
  4386. * Set the "offset" value of the query.
  4387. *
  4388. * @param int $value
  4389. * @return \Illuminate\Database\Query\Builder|static
  4390. * @static
  4391. */
  4392. public static function offset($value){
  4393. //Method inherited from \Illuminate\Database\Query\Builder
  4394. return \Illuminate\Database\Query\Builder::offset($value);
  4395. }
  4396. /**
  4397. * Alias to set the "offset" value of the query.
  4398. *
  4399. * @param int $value
  4400. * @return \Illuminate\Database\Query\Builder|static
  4401. * @static
  4402. */
  4403. public static function skip($value){
  4404. //Method inherited from \Illuminate\Database\Query\Builder
  4405. return \Illuminate\Database\Query\Builder::skip($value);
  4406. }
  4407. /**
  4408. * Set the "limit" value of the query.
  4409. *
  4410. * @param int $value
  4411. * @return \Illuminate\Database\Query\Builder|static
  4412. * @static
  4413. */
  4414. public static function limit($value){
  4415. //Method inherited from \Illuminate\Database\Query\Builder
  4416. return \Illuminate\Database\Query\Builder::limit($value);
  4417. }
  4418. /**
  4419. * Alias to set the "limit" value of the query.
  4420. *
  4421. * @param int $value
  4422. * @return \Illuminate\Database\Query\Builder|static
  4423. * @static
  4424. */
  4425. public static function take($value){
  4426. //Method inherited from \Illuminate\Database\Query\Builder
  4427. return \Illuminate\Database\Query\Builder::take($value);
  4428. }
  4429. /**
  4430. * Set the limit and offset for a given page.
  4431. *
  4432. * @param int $page
  4433. * @param int $perPage
  4434. * @return \Illuminate\Database\Query\Builder|static
  4435. * @static
  4436. */
  4437. public static function forPage($page, $perPage = 15){
  4438. //Method inherited from \Illuminate\Database\Query\Builder
  4439. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  4440. }
  4441. /**
  4442. * Add a union statement to the query.
  4443. *
  4444. * @param \Illuminate\Database\Query\Builder|\Closure $query
  4445. * @param bool $all
  4446. * @return \Illuminate\Database\Query\Builder|static
  4447. * @static
  4448. */
  4449. public static function union($query, $all = false){
  4450. //Method inherited from \Illuminate\Database\Query\Builder
  4451. return \Illuminate\Database\Query\Builder::union($query, $all);
  4452. }
  4453. /**
  4454. * Add a union all statement to the query.
  4455. *
  4456. * @param \Illuminate\Database\Query\Builder|\Closure $query
  4457. * @return \Illuminate\Database\Query\Builder|static
  4458. * @static
  4459. */
  4460. public static function unionAll($query){
  4461. //Method inherited from \Illuminate\Database\Query\Builder
  4462. return \Illuminate\Database\Query\Builder::unionAll($query);
  4463. }
  4464. /**
  4465. * Lock the selected rows in the table.
  4466. *
  4467. * @param bool $update
  4468. * @return \Illuminate\Database\Query\Builder
  4469. * @static
  4470. */
  4471. public static function lock($value = true){
  4472. //Method inherited from \Illuminate\Database\Query\Builder
  4473. return \Illuminate\Database\Query\Builder::lock($value);
  4474. }
  4475. /**
  4476. * Lock the selected rows in the table for updating.
  4477. *
  4478. * @return \Illuminate\Database\Query\Builder
  4479. * @static
  4480. */
  4481. public static function lockForUpdate(){
  4482. //Method inherited from \Illuminate\Database\Query\Builder
  4483. return \Illuminate\Database\Query\Builder::lockForUpdate();
  4484. }
  4485. /**
  4486. * Share lock the selected rows in the table.
  4487. *
  4488. * @return \Illuminate\Database\Query\Builder
  4489. * @static
  4490. */
  4491. public static function sharedLock(){
  4492. //Method inherited from \Illuminate\Database\Query\Builder
  4493. return \Illuminate\Database\Query\Builder::sharedLock();
  4494. }
  4495. /**
  4496. * Get the SQL representation of the query.
  4497. *
  4498. * @return string
  4499. * @static
  4500. */
  4501. public static function toSql(){
  4502. //Method inherited from \Illuminate\Database\Query\Builder
  4503. return \Illuminate\Database\Query\Builder::toSql();
  4504. }
  4505. /**
  4506. * Indicate that the query results should be cached.
  4507. *
  4508. * @param \DateTime|int $minutes
  4509. * @param string $key
  4510. * @return \Illuminate\Database\Query\Builder|static
  4511. * @static
  4512. */
  4513. public static function remember($minutes, $key = null){
  4514. //Method inherited from \Illuminate\Database\Query\Builder
  4515. return \Illuminate\Database\Query\Builder::remember($minutes, $key);
  4516. }
  4517. /**
  4518. * Indicate that the query results should be cached forever.
  4519. *
  4520. * @param string $key
  4521. * @return \Illuminate\Database\Query\Builder|static
  4522. * @static
  4523. */
  4524. public static function rememberForever($key = null){
  4525. //Method inherited from \Illuminate\Database\Query\Builder
  4526. return \Illuminate\Database\Query\Builder::rememberForever($key);
  4527. }
  4528. /**
  4529. * Indicate that the results, if cached, should use the given cache tags.
  4530. *
  4531. * @param array|dynamic $cacheTags
  4532. * @return \Illuminate\Database\Query\Builder|static
  4533. * @static
  4534. */
  4535. public static function cacheTags($cacheTags){
  4536. //Method inherited from \Illuminate\Database\Query\Builder
  4537. return \Illuminate\Database\Query\Builder::cacheTags($cacheTags);
  4538. }
  4539. /**
  4540. * Indicate that the results, if cached, should use the given cache driver.
  4541. *
  4542. * @param string $cacheDriver
  4543. * @return \Illuminate\Database\Query\Builder|static
  4544. * @static
  4545. */
  4546. public static function cacheDriver($cacheDriver){
  4547. //Method inherited from \Illuminate\Database\Query\Builder
  4548. return \Illuminate\Database\Query\Builder::cacheDriver($cacheDriver);
  4549. }
  4550. /**
  4551. * Execute the query as a fresh "select" statement.
  4552. *
  4553. * @param array $columns
  4554. * @return array|static[]
  4555. * @static
  4556. */
  4557. public static function getFresh($columns = array()){
  4558. //Method inherited from \Illuminate\Database\Query\Builder
  4559. return \Illuminate\Database\Query\Builder::getFresh($columns);
  4560. }
  4561. /**
  4562. * Execute the query as a cached "select" statement.
  4563. *
  4564. * @param array $columns
  4565. * @return array
  4566. * @static
  4567. */
  4568. public static function getCached($columns = array()){
  4569. //Method inherited from \Illuminate\Database\Query\Builder
  4570. return \Illuminate\Database\Query\Builder::getCached($columns);
  4571. }
  4572. /**
  4573. * Get a unique cache key for the complete query.
  4574. *
  4575. * @return string
  4576. * @static
  4577. */
  4578. public static function getCacheKey(){
  4579. //Method inherited from \Illuminate\Database\Query\Builder
  4580. return \Illuminate\Database\Query\Builder::getCacheKey();
  4581. }
  4582. /**
  4583. * Generate the unique cache key for the query.
  4584. *
  4585. * @return string
  4586. * @static
  4587. */
  4588. public static function generateCacheKey(){
  4589. //Method inherited from \Illuminate\Database\Query\Builder
  4590. return \Illuminate\Database\Query\Builder::generateCacheKey();
  4591. }
  4592. /**
  4593. * Concatenate values of a given column as a string.
  4594. *
  4595. * @param string $column
  4596. * @param string $glue
  4597. * @return string
  4598. * @static
  4599. */
  4600. public static function implode($column, $glue = null){
  4601. //Method inherited from \Illuminate\Database\Query\Builder
  4602. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  4603. }
  4604. /**
  4605. * Build a paginator instance from a raw result array.
  4606. *
  4607. * @param \Illuminate\Pagination\Factory $paginator
  4608. * @param array $results
  4609. * @param int $perPage
  4610. * @return \Illuminate\Pagination\Paginator
  4611. * @static
  4612. */
  4613. public static function buildRawPaginator($paginator, $results, $perPage){
  4614. //Method inherited from \Illuminate\Database\Query\Builder
  4615. return \Illuminate\Database\Query\Builder::buildRawPaginator($paginator, $results, $perPage);
  4616. }
  4617. /**
  4618. * Get the count of the total records for pagination.
  4619. *
  4620. * @return int
  4621. * @static
  4622. */
  4623. public static function getPaginationCount(){
  4624. //Method inherited from \Illuminate\Database\Query\Builder
  4625. return \Illuminate\Database\Query\Builder::getPaginationCount();
  4626. }
  4627. /**
  4628. * Determine if any rows exist for the current query.
  4629. *
  4630. * @return bool
  4631. * @static
  4632. */
  4633. public static function exists(){
  4634. //Method inherited from \Illuminate\Database\Query\Builder
  4635. return \Illuminate\Database\Query\Builder::exists();
  4636. }
  4637. /**
  4638. * Retrieve the "count" result of the query.
  4639. *
  4640. * @param string $columns
  4641. * @return int
  4642. * @static
  4643. */
  4644. public static function count($columns = '*'){
  4645. //Method inherited from \Illuminate\Database\Query\Builder
  4646. return \Illuminate\Database\Query\Builder::count($columns);
  4647. }
  4648. /**
  4649. * Retrieve the minimum value of a given column.
  4650. *
  4651. * @param string $column
  4652. * @return mixed
  4653. * @static
  4654. */
  4655. public static function min($column){
  4656. //Method inherited from \Illuminate\Database\Query\Builder
  4657. return \Illuminate\Database\Query\Builder::min($column);
  4658. }
  4659. /**
  4660. * Retrieve the maximum value of a given column.
  4661. *
  4662. * @param string $column
  4663. * @return mixed
  4664. * @static
  4665. */
  4666. public static function max($column){
  4667. //Method inherited from \Illuminate\Database\Query\Builder
  4668. return \Illuminate\Database\Query\Builder::max($column);
  4669. }
  4670. /**
  4671. * Retrieve the sum of the values of a given column.
  4672. *
  4673. * @param string $column
  4674. * @return mixed
  4675. * @static
  4676. */
  4677. public static function sum($column){
  4678. //Method inherited from \Illuminate\Database\Query\Builder
  4679. return \Illuminate\Database\Query\Builder::sum($column);
  4680. }
  4681. /**
  4682. * Retrieve the average of the values of a given column.
  4683. *
  4684. * @param string $column
  4685. * @return mixed
  4686. * @static
  4687. */
  4688. public static function avg($column){
  4689. //Method inherited from \Illuminate\Database\Query\Builder
  4690. return \Illuminate\Database\Query\Builder::avg($column);
  4691. }
  4692. /**
  4693. * Execute an aggregate function on the database.
  4694. *
  4695. * @param string $function
  4696. * @param array $columns
  4697. * @return mixed
  4698. * @static
  4699. */
  4700. public static function aggregate($function, $columns = array()){
  4701. //Method inherited from \Illuminate\Database\Query\Builder
  4702. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  4703. }
  4704. /**
  4705. * Insert a new record into the database.
  4706. *
  4707. * @param array $values
  4708. * @return bool
  4709. * @static
  4710. */
  4711. public static function insert($values){
  4712. //Method inherited from \Illuminate\Database\Query\Builder
  4713. return \Illuminate\Database\Query\Builder::insert($values);
  4714. }
  4715. /**
  4716. * Insert a new record and get the value of the primary key.
  4717. *
  4718. * @param array $values
  4719. * @param string $sequence
  4720. * @return int
  4721. * @static
  4722. */
  4723. public static function insertGetId($values, $sequence = null){
  4724. //Method inherited from \Illuminate\Database\Query\Builder
  4725. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  4726. }
  4727. /**
  4728. * Run a truncate statement on the table.
  4729. *
  4730. * @return void
  4731. * @static
  4732. */
  4733. public static function truncate(){
  4734. //Method inherited from \Illuminate\Database\Query\Builder
  4735. \Illuminate\Database\Query\Builder::truncate();
  4736. }
  4737. /**
  4738. * Merge an array of where clauses and bindings.
  4739. *
  4740. * @param array $wheres
  4741. * @param array $bindings
  4742. * @return void
  4743. * @static
  4744. */
  4745. public static function mergeWheres($wheres, $bindings){
  4746. //Method inherited from \Illuminate\Database\Query\Builder
  4747. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  4748. }
  4749. /**
  4750. * Create a raw database expression.
  4751. *
  4752. * @param mixed $value
  4753. * @return \Illuminate\Database\Query\Expression
  4754. * @static
  4755. */
  4756. public static function raw($value){
  4757. //Method inherited from \Illuminate\Database\Query\Builder
  4758. return \Illuminate\Database\Query\Builder::raw($value);
  4759. }
  4760. /**
  4761. * Get the current query value bindings in a flattened array.
  4762. *
  4763. * @return array
  4764. * @static
  4765. */
  4766. public static function getBindings(){
  4767. //Method inherited from \Illuminate\Database\Query\Builder
  4768. return \Illuminate\Database\Query\Builder::getBindings();
  4769. }
  4770. /**
  4771. * Get the raw array of bindings.
  4772. *
  4773. * @return array
  4774. * @static
  4775. */
  4776. public static function getRawBindings(){
  4777. //Method inherited from \Illuminate\Database\Query\Builder
  4778. return \Illuminate\Database\Query\Builder::getRawBindings();
  4779. }
  4780. /**
  4781. * Set the bindings on the query builder.
  4782. *
  4783. * @param array $bindings
  4784. * @param string $type
  4785. * @return \Illuminate\Database\Query\Builder
  4786. * @static
  4787. */
  4788. public static function setBindings($bindings, $type = 'where'){
  4789. //Method inherited from \Illuminate\Database\Query\Builder
  4790. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  4791. }
  4792. /**
  4793. * Add a binding to the query.
  4794. *
  4795. * @param mixed $value
  4796. * @param string $type
  4797. * @return \Illuminate\Database\Query\Builder
  4798. * @static
  4799. */
  4800. public static function addBinding($value, $type = 'where'){
  4801. //Method inherited from \Illuminate\Database\Query\Builder
  4802. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  4803. }
  4804. /**
  4805. * Merge an array of bindings into our bindings.
  4806. *
  4807. * @param \Illuminate\Database\Query\Builder $query
  4808. * @return \Illuminate\Database\Query\Builder
  4809. * @static
  4810. */
  4811. public static function mergeBindings($query){
  4812. //Method inherited from \Illuminate\Database\Query\Builder
  4813. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  4814. }
  4815. /**
  4816. * Get the database query processor instance.
  4817. *
  4818. * @return \Illuminate\Database\Query\Processors\Processor
  4819. * @static
  4820. */
  4821. public static function getProcessor(){
  4822. //Method inherited from \Illuminate\Database\Query\Builder
  4823. return \Illuminate\Database\Query\Builder::getProcessor();
  4824. }
  4825. /**
  4826. * Get the query grammar instance.
  4827. *
  4828. * @return \Illuminate\Database\Grammar
  4829. * @static
  4830. */
  4831. public static function getGrammar(){
  4832. //Method inherited from \Illuminate\Database\Query\Builder
  4833. return \Illuminate\Database\Query\Builder::getGrammar();
  4834. }
  4835. }
  4836. class Event extends \Illuminate\Support\Facades\Event{
  4837. /**
  4838. * Create a new event dispatcher instance.
  4839. *
  4840. * @param \Illuminate\Container\Container $container
  4841. * @return void
  4842. * @static
  4843. */
  4844. public static function __construct($container = null){
  4845. //Method inherited from \Illuminate\Events\Dispatcher
  4846. \Illuminate\Events\Dispatcher::__construct($container);
  4847. }
  4848. /**
  4849. * Register an event listener with the dispatcher.
  4850. *
  4851. * @param string|array $event
  4852. * @param mixed $listener
  4853. * @param int $priority
  4854. * @return void
  4855. * @static
  4856. */
  4857. public static function listen($events, $listener, $priority = 0){
  4858. //Method inherited from \Illuminate\Events\Dispatcher
  4859. \Illuminate\Events\Dispatcher::listen($events, $listener, $priority);
  4860. }
  4861. /**
  4862. * Determine if a given event has listeners.
  4863. *
  4864. * @param string $eventName
  4865. * @return bool
  4866. * @static
  4867. */
  4868. public static function hasListeners($eventName){
  4869. //Method inherited from \Illuminate\Events\Dispatcher
  4870. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  4871. }
  4872. /**
  4873. * Register a queued event and payload.
  4874. *
  4875. * @param string $event
  4876. * @param array $payload
  4877. * @return void
  4878. * @static
  4879. */
  4880. public static function queue($event, $payload = array()){
  4881. //Method inherited from \Illuminate\Events\Dispatcher
  4882. \Illuminate\Events\Dispatcher::queue($event, $payload);
  4883. }
  4884. /**
  4885. * Register an event subscriber with the dispatcher.
  4886. *
  4887. * @param string $subscriber
  4888. * @return void
  4889. * @static
  4890. */
  4891. public static function subscribe($subscriber){
  4892. //Method inherited from \Illuminate\Events\Dispatcher
  4893. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  4894. }
  4895. /**
  4896. * Fire an event until the first non-null response is returned.
  4897. *
  4898. * @param string $event
  4899. * @param array $payload
  4900. * @return mixed
  4901. * @static
  4902. */
  4903. public static function until($event, $payload = array()){
  4904. //Method inherited from \Illuminate\Events\Dispatcher
  4905. return \Illuminate\Events\Dispatcher::until($event, $payload);
  4906. }
  4907. /**
  4908. * Flush a set of queued events.
  4909. *
  4910. * @param string $event
  4911. * @return void
  4912. * @static
  4913. */
  4914. public static function flush($event){
  4915. //Method inherited from \Illuminate\Events\Dispatcher
  4916. \Illuminate\Events\Dispatcher::flush($event);
  4917. }
  4918. /**
  4919. * Get the event that is currently firing.
  4920. *
  4921. * @return string
  4922. * @static
  4923. */
  4924. public static function firing(){
  4925. //Method inherited from \Illuminate\Events\Dispatcher
  4926. return \Illuminate\Events\Dispatcher::firing();
  4927. }
  4928. /**
  4929. * Fire an event and call the listeners.
  4930. *
  4931. * @param string $event
  4932. * @param mixed $payload
  4933. * @param bool $halt
  4934. * @return array|null
  4935. * @static
  4936. */
  4937. public static function fire($event, $payload = array(), $halt = false){
  4938. //Method inherited from \Illuminate\Events\Dispatcher
  4939. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  4940. }
  4941. /**
  4942. * Get all of the listeners for a given event name.
  4943. *
  4944. * @param string $eventName
  4945. * @return array
  4946. * @static
  4947. */
  4948. public static function getListeners($eventName){
  4949. //Method inherited from \Illuminate\Events\Dispatcher
  4950. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  4951. }
  4952. /**
  4953. * Register an event listener with the dispatcher.
  4954. *
  4955. * @param mixed $listener
  4956. * @return mixed
  4957. * @static
  4958. */
  4959. public static function makeListener($listener){
  4960. //Method inherited from \Illuminate\Events\Dispatcher
  4961. return \Illuminate\Events\Dispatcher::makeListener($listener);
  4962. }
  4963. /**
  4964. * Create a class based listener using the IoC container.
  4965. *
  4966. * @param mixed $listener
  4967. * @return \Closure
  4968. * @static
  4969. */
  4970. public static function createClassListener($listener){
  4971. //Method inherited from \Illuminate\Events\Dispatcher
  4972. return \Illuminate\Events\Dispatcher::createClassListener($listener);
  4973. }
  4974. /**
  4975. * Remove a set of listeners from the dispatcher.
  4976. *
  4977. * @param string $event
  4978. * @return void
  4979. * @static
  4980. */
  4981. public static function forget($event){
  4982. //Method inherited from \Illuminate\Events\Dispatcher
  4983. \Illuminate\Events\Dispatcher::forget($event);
  4984. }
  4985. }
  4986. class File extends \Illuminate\Support\Facades\File{
  4987. /**
  4988. * Determine if a file exists.
  4989. *
  4990. * @param string $path
  4991. * @return bool
  4992. * @static
  4993. */
  4994. public static function exists($path){
  4995. //Method inherited from \Illuminate\Filesystem\Filesystem
  4996. return \Illuminate\Filesystem\Filesystem::exists($path);
  4997. }
  4998. /**
  4999. * Get the contents of a file.
  5000. *
  5001. * @param string $path
  5002. * @return string
  5003. * @throws FileNotFoundException
  5004. * @static
  5005. */
  5006. public static function get($path){
  5007. //Method inherited from \Illuminate\Filesystem\Filesystem
  5008. return \Illuminate\Filesystem\Filesystem::get($path);
  5009. }
  5010. /**
  5011. * Get the returned value of a file.
  5012. *
  5013. * @param string $path
  5014. * @return mixed
  5015. * @throws FileNotFoundException
  5016. * @static
  5017. */
  5018. public static function getRequire($path){
  5019. //Method inherited from \Illuminate\Filesystem\Filesystem
  5020. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  5021. }
  5022. /**
  5023. * Require the given file once.
  5024. *
  5025. * @param string $file
  5026. * @return mixed
  5027. * @static
  5028. */
  5029. public static function requireOnce($file){
  5030. //Method inherited from \Illuminate\Filesystem\Filesystem
  5031. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  5032. }
  5033. /**
  5034. * Write the contents of a file.
  5035. *
  5036. * @param string $path
  5037. * @param string $contents
  5038. * @return int
  5039. * @static
  5040. */
  5041. public static function put($path, $contents){
  5042. //Method inherited from \Illuminate\Filesystem\Filesystem
  5043. return \Illuminate\Filesystem\Filesystem::put($path, $contents);
  5044. }
  5045. /**
  5046. * Prepend to a file.
  5047. *
  5048. * @param string $path
  5049. * @param string $data
  5050. * @return int
  5051. * @static
  5052. */
  5053. public static function prepend($path, $data){
  5054. //Method inherited from \Illuminate\Filesystem\Filesystem
  5055. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  5056. }
  5057. /**
  5058. * Append to a file.
  5059. *
  5060. * @param string $path
  5061. * @param string $data
  5062. * @return int
  5063. * @static
  5064. */
  5065. public static function append($path, $data){
  5066. //Method inherited from \Illuminate\Filesystem\Filesystem
  5067. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  5068. }
  5069. /**
  5070. * Delete the file at a given path.
  5071. *
  5072. * @param string|array $paths
  5073. * @return bool
  5074. * @static
  5075. */
  5076. public static function delete($paths){
  5077. //Method inherited from \Illuminate\Filesystem\Filesystem
  5078. return \Illuminate\Filesystem\Filesystem::delete($paths);
  5079. }
  5080. /**
  5081. * Move a file to a new location.
  5082. *
  5083. * @param string $path
  5084. * @param string $target
  5085. * @return bool
  5086. * @static
  5087. */
  5088. public static function move($path, $target){
  5089. //Method inherited from \Illuminate\Filesystem\Filesystem
  5090. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  5091. }
  5092. /**
  5093. * Copy a file to a new location.
  5094. *
  5095. * @param string $path
  5096. * @param string $target
  5097. * @return bool
  5098. * @static
  5099. */
  5100. public static function copy($path, $target){
  5101. //Method inherited from \Illuminate\Filesystem\Filesystem
  5102. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  5103. }
  5104. /**
  5105. * Extract the file extension from a file path.
  5106. *
  5107. * @param string $path
  5108. * @return string
  5109. * @static
  5110. */
  5111. public static function extension($path){
  5112. //Method inherited from \Illuminate\Filesystem\Filesystem
  5113. return \Illuminate\Filesystem\Filesystem::extension($path);
  5114. }
  5115. /**
  5116. * Get the file type of a given file.
  5117. *
  5118. * @param string $path
  5119. * @return string
  5120. * @static
  5121. */
  5122. public static function type($path){
  5123. //Method inherited from \Illuminate\Filesystem\Filesystem
  5124. return \Illuminate\Filesystem\Filesystem::type($path);
  5125. }
  5126. /**
  5127. * Get the file size of a given file.
  5128. *
  5129. * @param string $path
  5130. * @return int
  5131. * @static
  5132. */
  5133. public static function size($path){
  5134. //Method inherited from \Illuminate\Filesystem\Filesystem
  5135. return \Illuminate\Filesystem\Filesystem::size($path);
  5136. }
  5137. /**
  5138. * Get the file's last modification time.
  5139. *
  5140. * @param string $path
  5141. * @return int
  5142. * @static
  5143. */
  5144. public static function lastModified($path){
  5145. //Method inherited from \Illuminate\Filesystem\Filesystem
  5146. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  5147. }
  5148. /**
  5149. * Determine if the given path is a directory.
  5150. *
  5151. * @param string $directory
  5152. * @return bool
  5153. * @static
  5154. */
  5155. public static function isDirectory($directory){
  5156. //Method inherited from \Illuminate\Filesystem\Filesystem
  5157. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  5158. }
  5159. /**
  5160. * Determine if the given path is writable.
  5161. *
  5162. * @param string $path
  5163. * @return bool
  5164. * @static
  5165. */
  5166. public static function isWritable($path){
  5167. //Method inherited from \Illuminate\Filesystem\Filesystem
  5168. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  5169. }
  5170. /**
  5171. * Determine if the given path is a file.
  5172. *
  5173. * @param string $file
  5174. * @return bool
  5175. * @static
  5176. */
  5177. public static function isFile($file){
  5178. //Method inherited from \Illuminate\Filesystem\Filesystem
  5179. return \Illuminate\Filesystem\Filesystem::isFile($file);
  5180. }
  5181. /**
  5182. * Find path names matching a given pattern.
  5183. *
  5184. * @param string $pattern
  5185. * @param int $flags
  5186. * @return array
  5187. * @static
  5188. */
  5189. public static function glob($pattern, $flags = 0){
  5190. //Method inherited from \Illuminate\Filesystem\Filesystem
  5191. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  5192. }
  5193. /**
  5194. * Get an array of all files in a directory.
  5195. *
  5196. * @param string $directory
  5197. * @return array
  5198. * @static
  5199. */
  5200. public static function files($directory){
  5201. //Method inherited from \Illuminate\Filesystem\Filesystem
  5202. return \Illuminate\Filesystem\Filesystem::files($directory);
  5203. }
  5204. /**
  5205. * Get all of the files from the given directory (recursive).
  5206. *
  5207. * @param string $directory
  5208. * @return array
  5209. * @static
  5210. */
  5211. public static function allFiles($directory){
  5212. //Method inherited from \Illuminate\Filesystem\Filesystem
  5213. return \Illuminate\Filesystem\Filesystem::allFiles($directory);
  5214. }
  5215. /**
  5216. * Get all of the directories within a given directory.
  5217. *
  5218. * @param string $directory
  5219. * @return array
  5220. * @static
  5221. */
  5222. public static function directories($directory){
  5223. //Method inherited from \Illuminate\Filesystem\Filesystem
  5224. return \Illuminate\Filesystem\Filesystem::directories($directory);
  5225. }
  5226. /**
  5227. * Create a directory.
  5228. *
  5229. * @param string $path
  5230. * @param int $mode
  5231. * @param bool $recursive
  5232. * @param bool $force
  5233. * @return bool
  5234. * @static
  5235. */
  5236. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false){
  5237. //Method inherited from \Illuminate\Filesystem\Filesystem
  5238. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  5239. }
  5240. /**
  5241. * Copy a directory from one location to another.
  5242. *
  5243. * @param string $directory
  5244. * @param string $destination
  5245. * @param int $options
  5246. * @return bool
  5247. * @static
  5248. */
  5249. public static function copyDirectory($directory, $destination, $options = null){
  5250. //Method inherited from \Illuminate\Filesystem\Filesystem
  5251. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  5252. }
  5253. /**
  5254. * Recursively delete a directory.
  5255. *
  5256. * The directory itself may be optionally preserved.
  5257. *
  5258. * @param string $directory
  5259. * @param bool $preserve
  5260. * @return bool
  5261. * @static
  5262. */
  5263. public static function deleteDirectory($directory, $preserve = false){
  5264. //Method inherited from \Illuminate\Filesystem\Filesystem
  5265. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  5266. }
  5267. /**
  5268. * Empty the specified directory of all files and folders.
  5269. *
  5270. * @param string $directory
  5271. * @return bool
  5272. * @static
  5273. */
  5274. public static function cleanDirectory($directory){
  5275. //Method inherited from \Illuminate\Filesystem\Filesystem
  5276. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  5277. }
  5278. }
  5279. class Form extends \Illuminate\Support\Facades\Form{
  5280. /**
  5281. * Create a new form builder instance.
  5282. *
  5283. * @param \Illuminate\Routing\UrlGenerator $url
  5284. * @param \Illuminate\Html\HtmlBuilder $html
  5285. * @param string $csrfToken
  5286. * @return void
  5287. * @static
  5288. */
  5289. public static function __construct($html, $url, $csrfToken){
  5290. //Method inherited from \Illuminate\Html\FormBuilder
  5291. \Illuminate\Html\FormBuilder::__construct($html, $url, $csrfToken);
  5292. }
  5293. /**
  5294. * Open up a new HTML form.
  5295. *
  5296. * @param array $options
  5297. * @return string
  5298. * @static
  5299. */
  5300. public static function open($options = array()){
  5301. //Method inherited from \Illuminate\Html\FormBuilder
  5302. return \Illuminate\Html\FormBuilder::open($options);
  5303. }
  5304. /**
  5305. * Create a new model based form builder.
  5306. *
  5307. * @param mixed $model
  5308. * @param array $options
  5309. * @return string
  5310. * @static
  5311. */
  5312. public static function model($model, $options = array()){
  5313. //Method inherited from \Illuminate\Html\FormBuilder
  5314. return \Illuminate\Html\FormBuilder::model($model, $options);
  5315. }
  5316. /**
  5317. * Set the model instance on the form builder.
  5318. *
  5319. * @param mixed $model
  5320. * @return void
  5321. * @static
  5322. */
  5323. public static function setModel($model){
  5324. //Method inherited from \Illuminate\Html\FormBuilder
  5325. \Illuminate\Html\FormBuilder::setModel($model);
  5326. }
  5327. /**
  5328. * Close the current form.
  5329. *
  5330. * @return string
  5331. * @static
  5332. */
  5333. public static function close(){
  5334. //Method inherited from \Illuminate\Html\FormBuilder
  5335. return \Illuminate\Html\FormBuilder::close();
  5336. }
  5337. /**
  5338. * Generate a hidden field with the current CSRF token.
  5339. *
  5340. * @return string
  5341. * @static
  5342. */
  5343. public static function token(){
  5344. //Method inherited from \Illuminate\Html\FormBuilder
  5345. return \Illuminate\Html\FormBuilder::token();
  5346. }
  5347. /**
  5348. * Create a form label element.
  5349. *
  5350. * @param string $name
  5351. * @param string $value
  5352. * @param array $options
  5353. * @return string
  5354. * @static
  5355. */
  5356. public static function label($name, $value = null, $options = array()){
  5357. //Method inherited from \Illuminate\Html\FormBuilder
  5358. return \Illuminate\Html\FormBuilder::label($name, $value, $options);
  5359. }
  5360. /**
  5361. * Create a form input field.
  5362. *
  5363. * @param string $type
  5364. * @param string $name
  5365. * @param string $value
  5366. * @param array $options
  5367. * @return string
  5368. * @static
  5369. */
  5370. public static function input($type, $name, $value = null, $options = array()){
  5371. //Method inherited from \Illuminate\Html\FormBuilder
  5372. return \Illuminate\Html\FormBuilder::input($type, $name, $value, $options);
  5373. }
  5374. /**
  5375. * Create a text input field.
  5376. *
  5377. * @param string $name
  5378. * @param string $value
  5379. * @param array $options
  5380. * @return string
  5381. * @static
  5382. */
  5383. public static function text($name, $value = null, $options = array()){
  5384. //Method inherited from \Illuminate\Html\FormBuilder
  5385. return \Illuminate\Html\FormBuilder::text($name, $value, $options);
  5386. }
  5387. /**
  5388. * Create a password input field.
  5389. *
  5390. * @param string $name
  5391. * @param array $options
  5392. * @return string
  5393. * @static
  5394. */
  5395. public static function password($name, $options = array()){
  5396. //Method inherited from \Illuminate\Html\FormBuilder
  5397. return \Illuminate\Html\FormBuilder::password($name, $options);
  5398. }
  5399. /**
  5400. * Create a hidden input field.
  5401. *
  5402. * @param string $name
  5403. * @param string $value
  5404. * @param array $options
  5405. * @return string
  5406. * @static
  5407. */
  5408. public static function hidden($name, $value = null, $options = array()){
  5409. //Method inherited from \Illuminate\Html\FormBuilder
  5410. return \Illuminate\Html\FormBuilder::hidden($name, $value, $options);
  5411. }
  5412. /**
  5413. * Create an e-mail input field.
  5414. *
  5415. * @param string $name
  5416. * @param string $value
  5417. * @param array $options
  5418. * @return string
  5419. * @static
  5420. */
  5421. public static function email($name, $value = null, $options = array()){
  5422. //Method inherited from \Illuminate\Html\FormBuilder
  5423. return \Illuminate\Html\FormBuilder::email($name, $value, $options);
  5424. }
  5425. /**
  5426. * Create a url input field.
  5427. *
  5428. * @param string $name
  5429. * @param string $value
  5430. * @param array $options
  5431. * @return string
  5432. * @static
  5433. */
  5434. public static function url($name, $value = null, $options = array()){
  5435. //Method inherited from \Illuminate\Html\FormBuilder
  5436. return \Illuminate\Html\FormBuilder::url($name, $value, $options);
  5437. }
  5438. /**
  5439. * Create a file input field.
  5440. *
  5441. * @param string $name
  5442. * @param array $options
  5443. * @return string
  5444. * @static
  5445. */
  5446. public static function file($name, $options = array()){
  5447. //Method inherited from \Illuminate\Html\FormBuilder
  5448. return \Illuminate\Html\FormBuilder::file($name, $options);
  5449. }
  5450. /**
  5451. * Create a textarea input field.
  5452. *
  5453. * @param string $name
  5454. * @param string $value
  5455. * @param array $options
  5456. * @return string
  5457. * @static
  5458. */
  5459. public static function textarea($name, $value = null, $options = array()){
  5460. //Method inherited from \Illuminate\Html\FormBuilder
  5461. return \Illuminate\Html\FormBuilder::textarea($name, $value, $options);
  5462. }
  5463. /**
  5464. * Create a select box field.
  5465. *
  5466. * @param string $name
  5467. * @param array $list
  5468. * @param string $selected
  5469. * @param array $options
  5470. * @return string
  5471. * @static
  5472. */
  5473. public static function select($name, $list = array(), $selected = null, $options = array()){
  5474. //Method inherited from \Illuminate\Html\FormBuilder
  5475. return \Illuminate\Html\FormBuilder::select($name, $list, $selected, $options);
  5476. }
  5477. /**
  5478. * Create a select range field.
  5479. *
  5480. * @param string $name
  5481. * @param string $begin
  5482. * @param string $end
  5483. * @param string $selected
  5484. * @param array $options
  5485. * @return string
  5486. * @static
  5487. */
  5488. public static function selectRange($name, $begin, $end, $selected = null, $options = array()){
  5489. //Method inherited from \Illuminate\Html\FormBuilder
  5490. return \Illuminate\Html\FormBuilder::selectRange($name, $begin, $end, $selected, $options);
  5491. }
  5492. /**
  5493. * Create a select year field.
  5494. *
  5495. * @param string $name
  5496. * @param string $begin
  5497. * @param string $end
  5498. * @param string $selected
  5499. * @param array $options
  5500. * @return string
  5501. * @static
  5502. */
  5503. public static function selectYear(){
  5504. //Method inherited from \Illuminate\Html\FormBuilder
  5505. return \Illuminate\Html\FormBuilder::selectYear();
  5506. }
  5507. /**
  5508. * Create a select month field.
  5509. *
  5510. * @param string $name
  5511. * @param string $selected
  5512. * @param array $options
  5513. * @param string $format
  5514. * @return string
  5515. * @static
  5516. */
  5517. public static function selectMonth($name, $selected = null, $options = array(), $format = '%B'){
  5518. //Method inherited from \Illuminate\Html\FormBuilder
  5519. return \Illuminate\Html\FormBuilder::selectMonth($name, $selected, $options, $format);
  5520. }
  5521. /**
  5522. * Get the select option for the given value.
  5523. *
  5524. * @param string $display
  5525. * @param string $value
  5526. * @param string $selected
  5527. * @return string
  5528. * @static
  5529. */
  5530. public static function getSelectOption($display, $value, $selected){
  5531. //Method inherited from \Illuminate\Html\FormBuilder
  5532. return \Illuminate\Html\FormBuilder::getSelectOption($display, $value, $selected);
  5533. }
  5534. /**
  5535. * Create a checkbox input field.
  5536. *
  5537. * @param string $name
  5538. * @param mixed $value
  5539. * @param bool $checked
  5540. * @param array $options
  5541. * @return string
  5542. * @static
  5543. */
  5544. public static function checkbox($name, $value = 1, $checked = null, $options = array()){
  5545. //Method inherited from \Illuminate\Html\FormBuilder
  5546. return \Illuminate\Html\FormBuilder::checkbox($name, $value, $checked, $options);
  5547. }
  5548. /**
  5549. * Create a radio button input field.
  5550. *
  5551. * @param string $name
  5552. * @param mixed $value
  5553. * @param bool $checked
  5554. * @param array $options
  5555. * @return string
  5556. * @static
  5557. */
  5558. public static function radio($name, $value = null, $checked = null, $options = array()){
  5559. //Method inherited from \Illuminate\Html\FormBuilder
  5560. return \Illuminate\Html\FormBuilder::radio($name, $value, $checked, $options);
  5561. }
  5562. /**
  5563. * Create a HTML reset input element.
  5564. *
  5565. * @param string $value
  5566. * @param array $attributes
  5567. * @return string
  5568. * @static
  5569. */
  5570. public static function reset($value, $attributes = array()){
  5571. //Method inherited from \Illuminate\Html\FormBuilder
  5572. return \Illuminate\Html\FormBuilder::reset($value, $attributes);
  5573. }
  5574. /**
  5575. * Create a HTML image input element.
  5576. *
  5577. * @param string $url
  5578. * @param string $name
  5579. * @param array $attributes
  5580. * @return string
  5581. * @static
  5582. */
  5583. public static function image($url, $name = null, $attributes = array()){
  5584. //Method inherited from \Illuminate\Html\FormBuilder
  5585. return \Illuminate\Html\FormBuilder::image($url, $name, $attributes);
  5586. }
  5587. /**
  5588. * Create a submit button element.
  5589. *
  5590. * @param string $value
  5591. * @param array $options
  5592. * @return string
  5593. * @static
  5594. */
  5595. public static function submit($value = null, $options = array()){
  5596. //Method inherited from \Illuminate\Html\FormBuilder
  5597. return \Illuminate\Html\FormBuilder::submit($value, $options);
  5598. }
  5599. /**
  5600. * Create a button element.
  5601. *
  5602. * @param string $value
  5603. * @param array $options
  5604. * @return string
  5605. * @static
  5606. */
  5607. public static function button($value = null, $options = array()){
  5608. //Method inherited from \Illuminate\Html\FormBuilder
  5609. return \Illuminate\Html\FormBuilder::button($value, $options);
  5610. }
  5611. /**
  5612. * Get the ID attribute for a field name.
  5613. *
  5614. * @param string $name
  5615. * @param array $attributes
  5616. * @return string
  5617. * @static
  5618. */
  5619. public static function getIdAttribute($name, $attributes){
  5620. //Method inherited from \Illuminate\Html\FormBuilder
  5621. return \Illuminate\Html\FormBuilder::getIdAttribute($name, $attributes);
  5622. }
  5623. /**
  5624. * Get the value that should be assigned to the field.
  5625. *
  5626. * @param string $name
  5627. * @param string $value
  5628. * @return string
  5629. * @static
  5630. */
  5631. public static function getValueAttribute($name, $value = null){
  5632. //Method inherited from \Illuminate\Html\FormBuilder
  5633. return \Illuminate\Html\FormBuilder::getValueAttribute($name, $value);
  5634. }
  5635. /**
  5636. * Get a value from the session's old input.
  5637. *
  5638. * @param string $name
  5639. * @return string
  5640. * @static
  5641. */
  5642. public static function old($name){
  5643. //Method inherited from \Illuminate\Html\FormBuilder
  5644. return \Illuminate\Html\FormBuilder::old($name);
  5645. }
  5646. /**
  5647. * Determine if the old input is empty.
  5648. *
  5649. * @return bool
  5650. * @static
  5651. */
  5652. public static function oldInputIsEmpty(){
  5653. //Method inherited from \Illuminate\Html\FormBuilder
  5654. return \Illuminate\Html\FormBuilder::oldInputIsEmpty();
  5655. }
  5656. /**
  5657. * Get the session store implementation.
  5658. *
  5659. * @return \Illuminate\Session\Store $session
  5660. * @static
  5661. */
  5662. public static function getSessionStore(){
  5663. //Method inherited from \Illuminate\Html\FormBuilder
  5664. return \Illuminate\Html\FormBuilder::getSessionStore();
  5665. }
  5666. /**
  5667. * Set the session store implementation.
  5668. *
  5669. * @param \Illuminate\Session\Store $session
  5670. * @return \Illuminate\Html\FormBuilder
  5671. * @static
  5672. */
  5673. public static function setSessionStore($session){
  5674. //Method inherited from \Illuminate\Html\FormBuilder
  5675. return \Illuminate\Html\FormBuilder::setSessionStore($session);
  5676. }
  5677. /**
  5678. * Register a custom macro.
  5679. *
  5680. * @param string $name
  5681. * @param callable $macro
  5682. * @return void
  5683. * @static
  5684. */
  5685. public static function macro($name, $macro){
  5686. //Method inherited from \Illuminate\Html\FormBuilder
  5687. \Illuminate\Html\FormBuilder::macro($name, $macro);
  5688. }
  5689. /**
  5690. * Checks if macro is registered
  5691. *
  5692. * @param string $name
  5693. * @return boolean
  5694. * @static
  5695. */
  5696. public static function hasMacro($name){
  5697. //Method inherited from \Illuminate\Html\FormBuilder
  5698. return \Illuminate\Html\FormBuilder::hasMacro($name);
  5699. }
  5700. /**
  5701. * Dynamically handle calls to the class.
  5702. *
  5703. * @param string $method
  5704. * @param array $parameters
  5705. * @return mixed
  5706. * @throws \BadMethodCallException
  5707. * @static
  5708. */
  5709. public static function __callStatic($method, $parameters){
  5710. //Method inherited from \Illuminate\Html\FormBuilder
  5711. return \Illuminate\Html\FormBuilder::__callStatic($method, $parameters);
  5712. }
  5713. /**
  5714. * Dynamically handle calls to the form builder.
  5715. *
  5716. * @param string $method
  5717. * @param array $parameters
  5718. * @return mixed
  5719. * @throws \BadMethodCallException
  5720. * @static
  5721. */
  5722. public static function __call($method, $parameters){
  5723. //Method inherited from \Illuminate\Html\FormBuilder
  5724. return \Illuminate\Html\FormBuilder::__call($method, $parameters);
  5725. }
  5726. }
  5727. class Hash extends \Illuminate\Support\Facades\Hash{
  5728. /**
  5729. * Hash the given value.
  5730. *
  5731. * @param string $value
  5732. * @param array $options
  5733. * @return string
  5734. * @throws \RuntimeException
  5735. * @static
  5736. */
  5737. public static function make($value, $options = array()){
  5738. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5739. return \Illuminate\Hashing\BcryptHasher::make($value, $options);
  5740. }
  5741. /**
  5742. * Check the given plain value against a hash.
  5743. *
  5744. * @param string $value
  5745. * @param string $hashedValue
  5746. * @param array $options
  5747. * @return bool
  5748. * @static
  5749. */
  5750. public static function check($value, $hashedValue, $options = array()){
  5751. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5752. return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  5753. }
  5754. /**
  5755. * Check if the given hash has been hashed using the given options.
  5756. *
  5757. * @param string $hashedValue
  5758. * @param array $options
  5759. * @return bool
  5760. * @static
  5761. */
  5762. public static function needsRehash($hashedValue, $options = array()){
  5763. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5764. return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  5765. }
  5766. }
  5767. class HTML extends \Illuminate\Support\Facades\HTML{
  5768. /**
  5769. * Create a new HTML builder instance.
  5770. *
  5771. * @param \Illuminate\Routing\UrlGenerator $url
  5772. * @return void
  5773. * @static
  5774. */
  5775. public static function __construct($url = null){
  5776. //Method inherited from \Illuminate\Html\HtmlBuilder
  5777. \Illuminate\Html\HtmlBuilder::__construct($url);
  5778. }
  5779. /**
  5780. * Convert an HTML string to entities.
  5781. *
  5782. * @param string $value
  5783. * @return string
  5784. * @static
  5785. */
  5786. public static function entities($value){
  5787. //Method inherited from \Illuminate\Html\HtmlBuilder
  5788. return \Illuminate\Html\HtmlBuilder::entities($value);
  5789. }
  5790. /**
  5791. * Convert entities to HTML characters.
  5792. *
  5793. * @param string $value
  5794. * @return string
  5795. * @static
  5796. */
  5797. public static function decode($value){
  5798. //Method inherited from \Illuminate\Html\HtmlBuilder
  5799. return \Illuminate\Html\HtmlBuilder::decode($value);
  5800. }
  5801. /**
  5802. * Generate a link to a JavaScript file.
  5803. *
  5804. * @param string $url
  5805. * @param array $attributes
  5806. * @param bool $secure
  5807. * @return string
  5808. * @static
  5809. */
  5810. public static function script($url, $attributes = array(), $secure = null){
  5811. //Method inherited from \Illuminate\Html\HtmlBuilder
  5812. return \Illuminate\Html\HtmlBuilder::script($url, $attributes, $secure);
  5813. }
  5814. /**
  5815. * Generate a link to a CSS file.
  5816. *
  5817. * @param string $url
  5818. * @param array $attributes
  5819. * @param bool $secure
  5820. * @return string
  5821. * @static
  5822. */
  5823. public static function style($url, $attributes = array(), $secure = null){
  5824. //Method inherited from \Illuminate\Html\HtmlBuilder
  5825. return \Illuminate\Html\HtmlBuilder::style($url, $attributes, $secure);
  5826. }
  5827. /**
  5828. * Generate an HTML image element.
  5829. *
  5830. * @param string $url
  5831. * @param string $alt
  5832. * @param array $attributes
  5833. * @param bool $secure
  5834. * @return string
  5835. * @static
  5836. */
  5837. public static function image($url, $alt = null, $attributes = array(), $secure = null){
  5838. //Method inherited from \Illuminate\Html\HtmlBuilder
  5839. return \Illuminate\Html\HtmlBuilder::image($url, $alt, $attributes, $secure);
  5840. }
  5841. /**
  5842. * Generate a HTML link.
  5843. *
  5844. * @param string $url
  5845. * @param string $title
  5846. * @param array $attributes
  5847. * @param bool $secure
  5848. * @return string
  5849. * @static
  5850. */
  5851. public static function link($url, $title = null, $attributes = array(), $secure = null){
  5852. //Method inherited from \Illuminate\Html\HtmlBuilder
  5853. return \Illuminate\Html\HtmlBuilder::link($url, $title, $attributes, $secure);
  5854. }
  5855. /**
  5856. * Generate a HTTPS HTML link.
  5857. *
  5858. * @param string $url
  5859. * @param string $title
  5860. * @param array $attributes
  5861. * @return string
  5862. * @static
  5863. */
  5864. public static function secureLink($url, $title = null, $attributes = array()){
  5865. //Method inherited from \Illuminate\Html\HtmlBuilder
  5866. return \Illuminate\Html\HtmlBuilder::secureLink($url, $title, $attributes);
  5867. }
  5868. /**
  5869. * Generate a HTML link to an asset.
  5870. *
  5871. * @param string $url
  5872. * @param string $title
  5873. * @param array $attributes
  5874. * @param bool $secure
  5875. * @return string
  5876. * @static
  5877. */
  5878. public static function linkAsset($url, $title = null, $attributes = array(), $secure = null){
  5879. //Method inherited from \Illuminate\Html\HtmlBuilder
  5880. return \Illuminate\Html\HtmlBuilder::linkAsset($url, $title, $attributes, $secure);
  5881. }
  5882. /**
  5883. * Generate a HTTPS HTML link to an asset.
  5884. *
  5885. * @param string $url
  5886. * @param string $title
  5887. * @param array $attributes
  5888. * @return string
  5889. * @static
  5890. */
  5891. public static function linkSecureAsset($url, $title = null, $attributes = array()){
  5892. //Method inherited from \Illuminate\Html\HtmlBuilder
  5893. return \Illuminate\Html\HtmlBuilder::linkSecureAsset($url, $title, $attributes);
  5894. }
  5895. /**
  5896. * Generate a HTML link to a named route.
  5897. *
  5898. * @param string $name
  5899. * @param string $title
  5900. * @param array $parameters
  5901. * @param array $attributes
  5902. * @return string
  5903. * @static
  5904. */
  5905. public static function linkRoute($name, $title = null, $parameters = array(), $attributes = array()){
  5906. //Method inherited from \Illuminate\Html\HtmlBuilder
  5907. return \Illuminate\Html\HtmlBuilder::linkRoute($name, $title, $parameters, $attributes);
  5908. }
  5909. /**
  5910. * Generate a HTML link to a controller action.
  5911. *
  5912. * @param string $action
  5913. * @param string $title
  5914. * @param array $parameters
  5915. * @param array $attributes
  5916. * @return string
  5917. * @static
  5918. */
  5919. public static function linkAction($action, $title = null, $parameters = array(), $attributes = array()){
  5920. //Method inherited from \Illuminate\Html\HtmlBuilder
  5921. return \Illuminate\Html\HtmlBuilder::linkAction($action, $title, $parameters, $attributes);
  5922. }
  5923. /**
  5924. * Generate a HTML link to an email address.
  5925. *
  5926. * @param string $email
  5927. * @param string $title
  5928. * @param array $attributes
  5929. * @return string
  5930. * @static
  5931. */
  5932. public static function mailto($email, $title = null, $attributes = array()){
  5933. //Method inherited from \Illuminate\Html\HtmlBuilder
  5934. return \Illuminate\Html\HtmlBuilder::mailto($email, $title, $attributes);
  5935. }
  5936. /**
  5937. * Obfuscate an e-mail address to prevent spam-bots from sniffing it.
  5938. *
  5939. * @param string $email
  5940. * @return string
  5941. * @static
  5942. */
  5943. public static function email($email){
  5944. //Method inherited from \Illuminate\Html\HtmlBuilder
  5945. return \Illuminate\Html\HtmlBuilder::email($email);
  5946. }
  5947. /**
  5948. * Generate an ordered list of items.
  5949. *
  5950. * @param array $list
  5951. * @param array $attributes
  5952. * @return string
  5953. * @static
  5954. */
  5955. public static function ol($list, $attributes = array()){
  5956. //Method inherited from \Illuminate\Html\HtmlBuilder
  5957. return \Illuminate\Html\HtmlBuilder::ol($list, $attributes);
  5958. }
  5959. /**
  5960. * Generate an un-ordered list of items.
  5961. *
  5962. * @param array $list
  5963. * @param array $attributes
  5964. * @return string
  5965. * @static
  5966. */
  5967. public static function ul($list, $attributes = array()){
  5968. //Method inherited from \Illuminate\Html\HtmlBuilder
  5969. return \Illuminate\Html\HtmlBuilder::ul($list, $attributes);
  5970. }
  5971. /**
  5972. * Build an HTML attribute string from an array.
  5973. *
  5974. * @param array $attributes
  5975. * @return string
  5976. * @static
  5977. */
  5978. public static function attributes($attributes){
  5979. //Method inherited from \Illuminate\Html\HtmlBuilder
  5980. return \Illuminate\Html\HtmlBuilder::attributes($attributes);
  5981. }
  5982. /**
  5983. * Obfuscate a string to prevent spam-bots from sniffing it.
  5984. *
  5985. * @param string $value
  5986. * @return string
  5987. * @static
  5988. */
  5989. public static function obfuscate($value){
  5990. //Method inherited from \Illuminate\Html\HtmlBuilder
  5991. return \Illuminate\Html\HtmlBuilder::obfuscate($value);
  5992. }
  5993. /**
  5994. * Register a custom macro.
  5995. *
  5996. * @param string $name
  5997. * @param callable $macro
  5998. * @return void
  5999. * @static
  6000. */
  6001. public static function macro($name, $macro){
  6002. //Method inherited from \Illuminate\Html\HtmlBuilder
  6003. \Illuminate\Html\HtmlBuilder::macro($name, $macro);
  6004. }
  6005. /**
  6006. * Checks if macro is registered
  6007. *
  6008. * @param string $name
  6009. * @return boolean
  6010. * @static
  6011. */
  6012. public static function hasMacro($name){
  6013. //Method inherited from \Illuminate\Html\HtmlBuilder
  6014. return \Illuminate\Html\HtmlBuilder::hasMacro($name);
  6015. }
  6016. /**
  6017. * Dynamically handle calls to the class.
  6018. *
  6019. * @param string $method
  6020. * @param array $parameters
  6021. * @return mixed
  6022. * @throws \BadMethodCallException
  6023. * @static
  6024. */
  6025. public static function __callStatic($method, $parameters){
  6026. //Method inherited from \Illuminate\Html\HtmlBuilder
  6027. return \Illuminate\Html\HtmlBuilder::__callStatic($method, $parameters);
  6028. }
  6029. /**
  6030. * Dynamically handle calls to the form builder.
  6031. *
  6032. * @param string $method
  6033. * @param array $parameters
  6034. * @return mixed
  6035. * @throws \BadMethodCallException
  6036. * @static
  6037. */
  6038. public static function __call($method, $parameters){
  6039. //Method inherited from \Illuminate\Html\HtmlBuilder
  6040. return \Illuminate\Html\HtmlBuilder::__call($method, $parameters);
  6041. }
  6042. }
  6043. class Input extends \Illuminate\Support\Facades\Input{
  6044. /**
  6045. * Return the Request instance.
  6046. *
  6047. * @return \Illuminate\Http\Request
  6048. * @static
  6049. */
  6050. public static function instance(){
  6051. //Method inherited from \Illuminate\Http\Request
  6052. return \Illuminate\Http\Request::instance();
  6053. }
  6054. /**
  6055. * Get the request method.
  6056. *
  6057. * @return string
  6058. * @static
  6059. */
  6060. public static function method(){
  6061. //Method inherited from \Illuminate\Http\Request
  6062. return \Illuminate\Http\Request::method();
  6063. }
  6064. /**
  6065. * Get the root URL for the application.
  6066. *
  6067. * @return string
  6068. * @static
  6069. */
  6070. public static function root(){
  6071. //Method inherited from \Illuminate\Http\Request
  6072. return \Illuminate\Http\Request::root();
  6073. }
  6074. /**
  6075. * Get the URL (no query string) for the request.
  6076. *
  6077. * @return string
  6078. * @static
  6079. */
  6080. public static function url(){
  6081. //Method inherited from \Illuminate\Http\Request
  6082. return \Illuminate\Http\Request::url();
  6083. }
  6084. /**
  6085. * Get the full URL for the request.
  6086. *
  6087. * @return string
  6088. * @static
  6089. */
  6090. public static function fullUrl(){
  6091. //Method inherited from \Illuminate\Http\Request
  6092. return \Illuminate\Http\Request::fullUrl();
  6093. }
  6094. /**
  6095. * Get the current path info for the request.
  6096. *
  6097. * @return string
  6098. * @static
  6099. */
  6100. public static function path(){
  6101. //Method inherited from \Illuminate\Http\Request
  6102. return \Illuminate\Http\Request::path();
  6103. }
  6104. /**
  6105. * Get the current encoded path info for the request.
  6106. *
  6107. * @return string
  6108. * @static
  6109. */
  6110. public static function decodedPath(){
  6111. //Method inherited from \Illuminate\Http\Request
  6112. return \Illuminate\Http\Request::decodedPath();
  6113. }
  6114. /**
  6115. * Get a segment from the URI (1 based index).
  6116. *
  6117. * @param string $index
  6118. * @param mixed $default
  6119. * @return string
  6120. * @static
  6121. */
  6122. public static function segment($index, $default = null){
  6123. //Method inherited from \Illuminate\Http\Request
  6124. return \Illuminate\Http\Request::segment($index, $default);
  6125. }
  6126. /**
  6127. * Get all of the segments for the request path.
  6128. *
  6129. * @return array
  6130. * @static
  6131. */
  6132. public static function segments(){
  6133. //Method inherited from \Illuminate\Http\Request
  6134. return \Illuminate\Http\Request::segments();
  6135. }
  6136. /**
  6137. * Determine if the current request URI matches a pattern.
  6138. *
  6139. * @param dynamic string
  6140. * @return bool
  6141. * @static
  6142. */
  6143. public static function is(){
  6144. //Method inherited from \Illuminate\Http\Request
  6145. return \Illuminate\Http\Request::is();
  6146. }
  6147. /**
  6148. * Determine if the request is the result of an AJAX call.
  6149. *
  6150. * @return bool
  6151. * @static
  6152. */
  6153. public static function ajax(){
  6154. //Method inherited from \Illuminate\Http\Request
  6155. return \Illuminate\Http\Request::ajax();
  6156. }
  6157. /**
  6158. * Determine if the request is over HTTPS.
  6159. *
  6160. * @return bool
  6161. * @static
  6162. */
  6163. public static function secure(){
  6164. //Method inherited from \Illuminate\Http\Request
  6165. return \Illuminate\Http\Request::secure();
  6166. }
  6167. /**
  6168. * Determine if the request contains a given input item key.
  6169. *
  6170. * @param string|array $key
  6171. * @return bool
  6172. * @static
  6173. */
  6174. public static function exists($key){
  6175. //Method inherited from \Illuminate\Http\Request
  6176. return \Illuminate\Http\Request::exists($key);
  6177. }
  6178. /**
  6179. * Determine if the request contains a non-emtpy value for an input item.
  6180. *
  6181. * @param string|array $key
  6182. * @return bool
  6183. * @static
  6184. */
  6185. public static function has($key){
  6186. //Method inherited from \Illuminate\Http\Request
  6187. return \Illuminate\Http\Request::has($key);
  6188. }
  6189. /**
  6190. * Get all of the input and files for the request.
  6191. *
  6192. * @return array
  6193. * @static
  6194. */
  6195. public static function all(){
  6196. //Method inherited from \Illuminate\Http\Request
  6197. return \Illuminate\Http\Request::all();
  6198. }
  6199. /**
  6200. * Retrieve an input item from the request.
  6201. *
  6202. * @param string $key
  6203. * @param mixed $default
  6204. * @return string
  6205. * @static
  6206. */
  6207. public static function input($key = null, $default = null){
  6208. //Method inherited from \Illuminate\Http\Request
  6209. return \Illuminate\Http\Request::input($key, $default);
  6210. }
  6211. /**
  6212. * Get a subset of the items from the input data.
  6213. *
  6214. * @param array $keys
  6215. * @return array
  6216. * @static
  6217. */
  6218. public static function only($keys){
  6219. //Method inherited from \Illuminate\Http\Request
  6220. return \Illuminate\Http\Request::only($keys);
  6221. }
  6222. /**
  6223. * Get all of the input except for a specified array of items.
  6224. *
  6225. * @param array $keys
  6226. * @return array
  6227. * @static
  6228. */
  6229. public static function except($keys){
  6230. //Method inherited from \Illuminate\Http\Request
  6231. return \Illuminate\Http\Request::except($keys);
  6232. }
  6233. /**
  6234. * Retrieve a query string item from the request.
  6235. *
  6236. * @param string $key
  6237. * @param mixed $default
  6238. * @return string
  6239. * @static
  6240. */
  6241. public static function query($key = null, $default = null){
  6242. //Method inherited from \Illuminate\Http\Request
  6243. return \Illuminate\Http\Request::query($key, $default);
  6244. }
  6245. /**
  6246. * Determine if a cookie is set on the request.
  6247. *
  6248. * @param string $key
  6249. * @return bool
  6250. * @static
  6251. */
  6252. public static function hasCookie($key){
  6253. //Method inherited from \Illuminate\Http\Request
  6254. return \Illuminate\Http\Request::hasCookie($key);
  6255. }
  6256. /**
  6257. * Retrieve a cookie from the request.
  6258. *
  6259. * @param string $key
  6260. * @param mixed $default
  6261. * @return string
  6262. * @static
  6263. */
  6264. public static function cookie($key = null, $default = null){
  6265. //Method inherited from \Illuminate\Http\Request
  6266. return \Illuminate\Http\Request::cookie($key, $default);
  6267. }
  6268. /**
  6269. * Retrieve a file from the request.
  6270. *
  6271. * @param string $key
  6272. * @param mixed $default
  6273. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  6274. * @static
  6275. */
  6276. public static function file($key = null, $default = null){
  6277. //Method inherited from \Illuminate\Http\Request
  6278. return \Illuminate\Http\Request::file($key, $default);
  6279. }
  6280. /**
  6281. * Determine if the uploaded data contains a file.
  6282. *
  6283. * @param string $key
  6284. * @return bool
  6285. * @static
  6286. */
  6287. public static function hasFile($key){
  6288. //Method inherited from \Illuminate\Http\Request
  6289. return \Illuminate\Http\Request::hasFile($key);
  6290. }
  6291. /**
  6292. * Retrieve a header from the request.
  6293. *
  6294. * @param string $key
  6295. * @param mixed $default
  6296. * @return string
  6297. * @static
  6298. */
  6299. public static function header($key = null, $default = null){
  6300. //Method inherited from \Illuminate\Http\Request
  6301. return \Illuminate\Http\Request::header($key, $default);
  6302. }
  6303. /**
  6304. * Retrieve a server variable from the request.
  6305. *
  6306. * @param string $key
  6307. * @param mixed $default
  6308. * @return string
  6309. * @static
  6310. */
  6311. public static function server($key = null, $default = null){
  6312. //Method inherited from \Illuminate\Http\Request
  6313. return \Illuminate\Http\Request::server($key, $default);
  6314. }
  6315. /**
  6316. * Retrieve an old input item.
  6317. *
  6318. * @param string $key
  6319. * @param mixed $default
  6320. * @return mixed
  6321. * @static
  6322. */
  6323. public static function old($key = null, $default = null){
  6324. //Method inherited from \Illuminate\Http\Request
  6325. return \Illuminate\Http\Request::old($key, $default);
  6326. }
  6327. /**
  6328. * Flash the input for the current request to the session.
  6329. *
  6330. * @param string $filter
  6331. * @param array $keys
  6332. * @return void
  6333. * @static
  6334. */
  6335. public static function flash($filter = null, $keys = array()){
  6336. //Method inherited from \Illuminate\Http\Request
  6337. \Illuminate\Http\Request::flash($filter, $keys);
  6338. }
  6339. /**
  6340. * Flash only some of the input to the session.
  6341. *
  6342. * @param dynamic string
  6343. * @return void
  6344. * @static
  6345. */
  6346. public static function flashOnly($keys){
  6347. //Method inherited from \Illuminate\Http\Request
  6348. \Illuminate\Http\Request::flashOnly($keys);
  6349. }
  6350. /**
  6351. * Flash only some of the input to the session.
  6352. *
  6353. * @param dynamic string
  6354. * @return void
  6355. * @static
  6356. */
  6357. public static function flashExcept($keys){
  6358. //Method inherited from \Illuminate\Http\Request
  6359. \Illuminate\Http\Request::flashExcept($keys);
  6360. }
  6361. /**
  6362. * Flush all of the old input from the session.
  6363. *
  6364. * @return void
  6365. * @static
  6366. */
  6367. public static function flush(){
  6368. //Method inherited from \Illuminate\Http\Request
  6369. \Illuminate\Http\Request::flush();
  6370. }
  6371. /**
  6372. * Merge new input into the current request's input array.
  6373. *
  6374. * @param array $input
  6375. * @return void
  6376. * @static
  6377. */
  6378. public static function merge($input){
  6379. //Method inherited from \Illuminate\Http\Request
  6380. \Illuminate\Http\Request::merge($input);
  6381. }
  6382. /**
  6383. * Replace the input for the current request.
  6384. *
  6385. * @param array $input
  6386. * @return void
  6387. * @static
  6388. */
  6389. public static function replace($input){
  6390. //Method inherited from \Illuminate\Http\Request
  6391. \Illuminate\Http\Request::replace($input);
  6392. }
  6393. /**
  6394. * Get the JSON payload for the request.
  6395. *
  6396. * @param string $key
  6397. * @param mixed $default
  6398. * @return mixed
  6399. * @static
  6400. */
  6401. public static function json($key = null, $default = null){
  6402. //Method inherited from \Illuminate\Http\Request
  6403. return \Illuminate\Http\Request::json($key, $default);
  6404. }
  6405. /**
  6406. * Determine if the request is sending JSON.
  6407. *
  6408. * @return bool
  6409. * @static
  6410. */
  6411. public static function isJson(){
  6412. //Method inherited from \Illuminate\Http\Request
  6413. return \Illuminate\Http\Request::isJson();
  6414. }
  6415. /**
  6416. * Determine if the current request is asking for JSON in return.
  6417. *
  6418. * @return bool
  6419. * @static
  6420. */
  6421. public static function wantsJson(){
  6422. //Method inherited from \Illuminate\Http\Request
  6423. return \Illuminate\Http\Request::wantsJson();
  6424. }
  6425. /**
  6426. * Get the data format expected in the response.
  6427. *
  6428. * @return string
  6429. * @static
  6430. */
  6431. public static function format($default = 'html'){
  6432. //Method inherited from \Illuminate\Http\Request
  6433. return \Illuminate\Http\Request::format($default);
  6434. }
  6435. /**
  6436. * Create an Illuminate request from a Symfony instance.
  6437. *
  6438. * @param \Symfony\Component\HttpFoundation\Request $request
  6439. * @return \Illuminate\Http\Request
  6440. * @static
  6441. */
  6442. public static function createFromBase($request){
  6443. //Method inherited from \Illuminate\Http\Request
  6444. return \Illuminate\Http\Request::createFromBase($request);
  6445. }
  6446. /**
  6447. * Get the session associated with the request.
  6448. *
  6449. * @return \Illuminate\Session\Store
  6450. * @throws \RuntimeException
  6451. * @static
  6452. */
  6453. public static function session(){
  6454. //Method inherited from \Illuminate\Http\Request
  6455. return \Illuminate\Http\Request::session();
  6456. }
  6457. /**
  6458. * Constructor.
  6459. *
  6460. * @param array $query The GET parameters
  6461. * @param array $request The POST parameters
  6462. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6463. * @param array $cookies The COOKIE parameters
  6464. * @param array $files The FILES parameters
  6465. * @param array $server The SERVER parameters
  6466. * @param string $content The raw body data
  6467. * @api
  6468. * @static
  6469. */
  6470. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6471. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6472. \Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  6473. }
  6474. /**
  6475. * Sets the parameters for this request.
  6476. *
  6477. * This method also re-initializes all properties.
  6478. *
  6479. * @param array $query The GET parameters
  6480. * @param array $request The POST parameters
  6481. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6482. * @param array $cookies The COOKIE parameters
  6483. * @param array $files The FILES parameters
  6484. * @param array $server The SERVER parameters
  6485. * @param string $content The raw body data
  6486. * @api
  6487. * @static
  6488. */
  6489. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6490. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6491. \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  6492. }
  6493. /**
  6494. * Creates a new request with values from PHP's super globals.
  6495. *
  6496. * @return Request A new request
  6497. * @api
  6498. * @static
  6499. */
  6500. public static function createFromGlobals(){
  6501. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6502. return \Illuminate\Http\Request::createFromGlobals();
  6503. }
  6504. /**
  6505. * Creates a Request based on a given URI and configuration.
  6506. *
  6507. * The information contained in the URI always take precedence
  6508. * over the other information (server and parameters).
  6509. *
  6510. * @param string $uri The URI
  6511. * @param string $method The HTTP method
  6512. * @param array $parameters The query (GET) or request (POST) parameters
  6513. * @param array $cookies The request cookies ($_COOKIE)
  6514. * @param array $files The request files ($_FILES)
  6515. * @param array $server The server parameters ($_SERVER)
  6516. * @param string $content The raw body data
  6517. * @return Request A Request instance
  6518. * @api
  6519. * @static
  6520. */
  6521. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6522. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6523. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  6524. }
  6525. /**
  6526. * Sets a callable able to create a Request instance.
  6527. *
  6528. * This is mainly useful when you need to override the Request class
  6529. * to keep BC with an existing system. It should not be used for any
  6530. * other purpose.
  6531. *
  6532. * @param callable|null $callable A PHP callable
  6533. * @static
  6534. */
  6535. public static function setFactory($callable){
  6536. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6537. \Illuminate\Http\Request::setFactory($callable);
  6538. }
  6539. /**
  6540. * Clones a request and overrides some of its parameters.
  6541. *
  6542. * @param array $query The GET parameters
  6543. * @param array $request The POST parameters
  6544. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6545. * @param array $cookies The COOKIE parameters
  6546. * @param array $files The FILES parameters
  6547. * @param array $server The SERVER parameters
  6548. * @return Request The duplicated request
  6549. * @api
  6550. * @static
  6551. */
  6552. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  6553. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6554. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  6555. }
  6556. /**
  6557. * Returns the request as a string.
  6558. *
  6559. * @return string The request
  6560. * @static
  6561. */
  6562. public static function __toString(){
  6563. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6564. return \Illuminate\Http\Request::__toString();
  6565. }
  6566. /**
  6567. * Overrides the PHP global variables according to this request instance.
  6568. *
  6569. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  6570. * $_FILES is never override, see rfc1867
  6571. *
  6572. * @api
  6573. * @static
  6574. */
  6575. public static function overrideGlobals(){
  6576. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6577. \Illuminate\Http\Request::overrideGlobals();
  6578. }
  6579. /**
  6580. * Sets a list of trusted proxies.
  6581. *
  6582. * You should only list the reverse proxies that you manage directly.
  6583. *
  6584. * @param array $proxies A list of trusted proxies
  6585. * @api
  6586. * @static
  6587. */
  6588. public static function setTrustedProxies($proxies){
  6589. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6590. \Illuminate\Http\Request::setTrustedProxies($proxies);
  6591. }
  6592. /**
  6593. * Gets the list of trusted proxies.
  6594. *
  6595. * @return array An array of trusted proxies.
  6596. * @static
  6597. */
  6598. public static function getTrustedProxies(){
  6599. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6600. return \Illuminate\Http\Request::getTrustedProxies();
  6601. }
  6602. /**
  6603. * Sets a list of trusted host patterns.
  6604. *
  6605. * You should only list the hosts you manage using regexs.
  6606. *
  6607. * @param array $hostPatterns A list of trusted host patterns
  6608. * @static
  6609. */
  6610. public static function setTrustedHosts($hostPatterns){
  6611. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6612. \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  6613. }
  6614. /**
  6615. * Gets the list of trusted host patterns.
  6616. *
  6617. * @return array An array of trusted host patterns.
  6618. * @static
  6619. */
  6620. public static function getTrustedHosts(){
  6621. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6622. return \Illuminate\Http\Request::getTrustedHosts();
  6623. }
  6624. /**
  6625. * Sets the name for trusted headers.
  6626. *
  6627. * The following header keys are supported:
  6628. *
  6629. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  6630. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  6631. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  6632. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  6633. *
  6634. * Setting an empty value allows to disable the trusted header for the given key.
  6635. *
  6636. * @param string $key The header key
  6637. * @param string $value The header name
  6638. * @throws \InvalidArgumentException
  6639. * @static
  6640. */
  6641. public static function setTrustedHeaderName($key, $value){
  6642. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6643. \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  6644. }
  6645. /**
  6646. * Gets the trusted proxy header name.
  6647. *
  6648. * @param string $key The header key
  6649. * @return string The header name
  6650. * @throws \InvalidArgumentException
  6651. * @static
  6652. */
  6653. public static function getTrustedHeaderName($key){
  6654. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6655. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  6656. }
  6657. /**
  6658. * Normalizes a query string.
  6659. *
  6660. * It builds a normalized query string, where keys/value pairs are alphabetized,
  6661. * have consistent escaping and unneeded delimiters are removed.
  6662. *
  6663. * @param string $qs Query string
  6664. * @return string A normalized query string for the Request
  6665. * @static
  6666. */
  6667. public static function normalizeQueryString($qs){
  6668. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6669. return \Illuminate\Http\Request::normalizeQueryString($qs);
  6670. }
  6671. /**
  6672. * Enables support for the _method request parameter to determine the intended HTTP method.
  6673. *
  6674. * Be warned that enabling this feature might lead to CSRF issues in your code.
  6675. * Check that you are using CSRF tokens when required.
  6676. *
  6677. * The HTTP method can only be overridden when the real HTTP method is POST.
  6678. *
  6679. * @static
  6680. */
  6681. public static function enableHttpMethodParameterOverride(){
  6682. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6683. \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  6684. }
  6685. /**
  6686. * Checks whether support for the _method request parameter is enabled.
  6687. *
  6688. * @return bool True when the _method request parameter is enabled, false otherwise
  6689. * @static
  6690. */
  6691. public static function getHttpMethodParameterOverride(){
  6692. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6693. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  6694. }
  6695. /**
  6696. * Gets a "parameter" value.
  6697. *
  6698. * This method is mainly useful for libraries that want to provide some flexibility.
  6699. *
  6700. * Order of precedence: GET, PATH, POST
  6701. *
  6702. * Avoid using this method in controllers:
  6703. *
  6704. * * slow
  6705. * * prefer to get from a "named" source
  6706. *
  6707. * It is better to explicitly get request parameters from the appropriate
  6708. * public property instead (query, attributes, request).
  6709. *
  6710. * @param string $key the key
  6711. * @param mixed $default the default value
  6712. * @param bool $deep is parameter deep in multidimensional array
  6713. * @return mixed
  6714. * @static
  6715. */
  6716. public static function get($key, $default = null, $deep = false){
  6717. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6718. return \Illuminate\Http\Request::get($key, $default, $deep);
  6719. }
  6720. /**
  6721. * Gets the Session.
  6722. *
  6723. * @return SessionInterface|null The session
  6724. * @api
  6725. * @static
  6726. */
  6727. public static function getSession(){
  6728. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6729. return \Illuminate\Http\Request::getSession();
  6730. }
  6731. /**
  6732. * Whether the request contains a Session which was started in one of the
  6733. * previous requests.
  6734. *
  6735. * @return bool
  6736. * @api
  6737. * @static
  6738. */
  6739. public static function hasPreviousSession(){
  6740. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6741. return \Illuminate\Http\Request::hasPreviousSession();
  6742. }
  6743. /**
  6744. * Whether the request contains a Session object.
  6745. *
  6746. * This method does not give any information about the state of the session object,
  6747. * like whether the session is started or not. It is just a way to check if this Request
  6748. * is associated with a Session instance.
  6749. *
  6750. * @return bool true when the Request contains a Session object, false otherwise
  6751. * @api
  6752. * @static
  6753. */
  6754. public static function hasSession(){
  6755. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6756. return \Illuminate\Http\Request::hasSession();
  6757. }
  6758. /**
  6759. * Sets the Session.
  6760. *
  6761. * @param SessionInterface $session The Session
  6762. * @api
  6763. * @static
  6764. */
  6765. public static function setSession($session){
  6766. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6767. \Illuminate\Http\Request::setSession($session);
  6768. }
  6769. /**
  6770. * Returns the client IP addresses.
  6771. *
  6772. * In the returned array the most trusted IP address is first, and the
  6773. * least trusted one last. The "real" client IP address is the last one,
  6774. * but this is also the least trusted one. Trusted proxies are stripped.
  6775. *
  6776. * Use this method carefully; you should use getClientIp() instead.
  6777. *
  6778. * @return array The client IP addresses
  6779. * @see getClientIp()
  6780. * @static
  6781. */
  6782. public static function getClientIps(){
  6783. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6784. return \Illuminate\Http\Request::getClientIps();
  6785. }
  6786. /**
  6787. * Returns the client IP address.
  6788. *
  6789. * This method can read the client IP address from the "X-Forwarded-For" header
  6790. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  6791. * header value is a comma+space separated list of IP addresses, the left-most
  6792. * being the original client, and each successive proxy that passed the request
  6793. * adding the IP address where it received the request from.
  6794. *
  6795. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  6796. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  6797. * the "client-ip" key.
  6798. *
  6799. * @return string The client IP address
  6800. * @see getClientIps()
  6801. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  6802. * @api
  6803. * @static
  6804. */
  6805. public static function getClientIp(){
  6806. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6807. return \Illuminate\Http\Request::getClientIp();
  6808. }
  6809. /**
  6810. * Returns current script name.
  6811. *
  6812. * @return string
  6813. * @api
  6814. * @static
  6815. */
  6816. public static function getScriptName(){
  6817. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6818. return \Illuminate\Http\Request::getScriptName();
  6819. }
  6820. /**
  6821. * Returns the path being requested relative to the executed script.
  6822. *
  6823. * The path info always starts with a /.
  6824. *
  6825. * Suppose this request is instantiated from /mysite on localhost:
  6826. *
  6827. * * http://localhost/mysite returns an empty string
  6828. * * http://localhost/mysite/about returns '/about'
  6829. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  6830. * * http://localhost/mysite/about?var=1 returns '/about'
  6831. *
  6832. * @return string The raw path (i.e. not urldecoded)
  6833. * @api
  6834. * @static
  6835. */
  6836. public static function getPathInfo(){
  6837. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6838. return \Illuminate\Http\Request::getPathInfo();
  6839. }
  6840. /**
  6841. * Returns the root path from which this request is executed.
  6842. *
  6843. * Suppose that an index.php file instantiates this request object:
  6844. *
  6845. * * http://localhost/index.php returns an empty string
  6846. * * http://localhost/index.php/page returns an empty string
  6847. * * http://localhost/web/index.php returns '/web'
  6848. * * http://localhost/we%20b/index.php returns '/we%20b'
  6849. *
  6850. * @return string The raw path (i.e. not urldecoded)
  6851. * @api
  6852. * @static
  6853. */
  6854. public static function getBasePath(){
  6855. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6856. return \Illuminate\Http\Request::getBasePath();
  6857. }
  6858. /**
  6859. * Returns the root URL from which this request is executed.
  6860. *
  6861. * The base URL never ends with a /.
  6862. *
  6863. * This is similar to getBasePath(), except that it also includes the
  6864. * script filename (e.g. index.php) if one exists.
  6865. *
  6866. * @return string The raw URL (i.e. not urldecoded)
  6867. * @api
  6868. * @static
  6869. */
  6870. public static function getBaseUrl(){
  6871. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6872. return \Illuminate\Http\Request::getBaseUrl();
  6873. }
  6874. /**
  6875. * Gets the request's scheme.
  6876. *
  6877. * @return string
  6878. * @api
  6879. * @static
  6880. */
  6881. public static function getScheme(){
  6882. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6883. return \Illuminate\Http\Request::getScheme();
  6884. }
  6885. /**
  6886. * Returns the port on which the request is made.
  6887. *
  6888. * This method can read the client port from the "X-Forwarded-Port" header
  6889. * when trusted proxies were set via "setTrustedProxies()".
  6890. *
  6891. * The "X-Forwarded-Port" header must contain the client port.
  6892. *
  6893. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  6894. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  6895. *
  6896. * @return string
  6897. * @api
  6898. * @static
  6899. */
  6900. public static function getPort(){
  6901. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6902. return \Illuminate\Http\Request::getPort();
  6903. }
  6904. /**
  6905. * Returns the user.
  6906. *
  6907. * @return string|null
  6908. * @static
  6909. */
  6910. public static function getUser(){
  6911. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6912. return \Illuminate\Http\Request::getUser();
  6913. }
  6914. /**
  6915. * Returns the password.
  6916. *
  6917. * @return string|null
  6918. * @static
  6919. */
  6920. public static function getPassword(){
  6921. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6922. return \Illuminate\Http\Request::getPassword();
  6923. }
  6924. /**
  6925. * Gets the user info.
  6926. *
  6927. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  6928. * @static
  6929. */
  6930. public static function getUserInfo(){
  6931. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6932. return \Illuminate\Http\Request::getUserInfo();
  6933. }
  6934. /**
  6935. * Returns the HTTP host being requested.
  6936. *
  6937. * The port name will be appended to the host if it's non-standard.
  6938. *
  6939. * @return string
  6940. * @api
  6941. * @static
  6942. */
  6943. public static function getHttpHost(){
  6944. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6945. return \Illuminate\Http\Request::getHttpHost();
  6946. }
  6947. /**
  6948. * Returns the requested URI.
  6949. *
  6950. * @return string The raw URI (i.e. not urldecoded)
  6951. * @api
  6952. * @static
  6953. */
  6954. public static function getRequestUri(){
  6955. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6956. return \Illuminate\Http\Request::getRequestUri();
  6957. }
  6958. /**
  6959. * Gets the scheme and HTTP host.
  6960. *
  6961. * If the URL was called with basic authentication, the user
  6962. * and the password are not added to the generated string.
  6963. *
  6964. * @return string The scheme and HTTP host
  6965. * @static
  6966. */
  6967. public static function getSchemeAndHttpHost(){
  6968. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6969. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  6970. }
  6971. /**
  6972. * Generates a normalized URI for the Request.
  6973. *
  6974. * @return string A normalized URI for the Request
  6975. * @see getQueryString()
  6976. * @api
  6977. * @static
  6978. */
  6979. public static function getUri(){
  6980. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6981. return \Illuminate\Http\Request::getUri();
  6982. }
  6983. /**
  6984. * Generates a normalized URI for the given path.
  6985. *
  6986. * @param string $path A path to use instead of the current one
  6987. * @return string The normalized URI for the path
  6988. * @api
  6989. * @static
  6990. */
  6991. public static function getUriForPath($path){
  6992. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6993. return \Illuminate\Http\Request::getUriForPath($path);
  6994. }
  6995. /**
  6996. * Generates the normalized query string for the Request.
  6997. *
  6998. * It builds a normalized query string, where keys/value pairs are alphabetized
  6999. * and have consistent escaping.
  7000. *
  7001. * @return string|null A normalized query string for the Request
  7002. * @api
  7003. * @static
  7004. */
  7005. public static function getQueryString(){
  7006. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7007. return \Illuminate\Http\Request::getQueryString();
  7008. }
  7009. /**
  7010. * Checks whether the request is secure or not.
  7011. *
  7012. * This method can read the client port from the "X-Forwarded-Proto" header
  7013. * when trusted proxies were set via "setTrustedProxies()".
  7014. *
  7015. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  7016. *
  7017. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  7018. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  7019. * the "client-proto" key.
  7020. *
  7021. * @return bool
  7022. * @api
  7023. * @static
  7024. */
  7025. public static function isSecure(){
  7026. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7027. return \Illuminate\Http\Request::isSecure();
  7028. }
  7029. /**
  7030. * Returns the host name.
  7031. *
  7032. * This method can read the client port from the "X-Forwarded-Host" header
  7033. * when trusted proxies were set via "setTrustedProxies()".
  7034. *
  7035. * The "X-Forwarded-Host" header must contain the client host name.
  7036. *
  7037. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  7038. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  7039. *
  7040. * @return string
  7041. * @throws \UnexpectedValueException when the host name is invalid
  7042. * @api
  7043. * @static
  7044. */
  7045. public static function getHost(){
  7046. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7047. return \Illuminate\Http\Request::getHost();
  7048. }
  7049. /**
  7050. * Sets the request method.
  7051. *
  7052. * @param string $method
  7053. * @api
  7054. * @static
  7055. */
  7056. public static function setMethod($method){
  7057. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7058. \Illuminate\Http\Request::setMethod($method);
  7059. }
  7060. /**
  7061. * Gets the request "intended" method.
  7062. *
  7063. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  7064. * then it is used to determine the "real" intended HTTP method.
  7065. *
  7066. * The _method request parameter can also be used to determine the HTTP method,
  7067. * but only if enableHttpMethodParameterOverride() has been called.
  7068. *
  7069. * The method is always an uppercased string.
  7070. *
  7071. * @return string The request method
  7072. * @api
  7073. * @see getRealMethod
  7074. * @static
  7075. */
  7076. public static function getMethod(){
  7077. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7078. return \Illuminate\Http\Request::getMethod();
  7079. }
  7080. /**
  7081. * Gets the "real" request method.
  7082. *
  7083. * @return string The request method
  7084. * @see getMethod
  7085. * @static
  7086. */
  7087. public static function getRealMethod(){
  7088. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7089. return \Illuminate\Http\Request::getRealMethod();
  7090. }
  7091. /**
  7092. * Gets the mime type associated with the format.
  7093. *
  7094. * @param string $format The format
  7095. * @return string The associated mime type (null if not found)
  7096. * @api
  7097. * @static
  7098. */
  7099. public static function getMimeType($format){
  7100. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7101. return \Illuminate\Http\Request::getMimeType($format);
  7102. }
  7103. /**
  7104. * Gets the format associated with the mime type.
  7105. *
  7106. * @param string $mimeType The associated mime type
  7107. * @return string|null The format (null if not found)
  7108. * @api
  7109. * @static
  7110. */
  7111. public static function getFormat($mimeType){
  7112. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7113. return \Illuminate\Http\Request::getFormat($mimeType);
  7114. }
  7115. /**
  7116. * Associates a format with mime types.
  7117. *
  7118. * @param string $format The format
  7119. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  7120. * @api
  7121. * @static
  7122. */
  7123. public static function setFormat($format, $mimeTypes){
  7124. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7125. \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  7126. }
  7127. /**
  7128. * Gets the request format.
  7129. *
  7130. * Here is the process to determine the format:
  7131. *
  7132. * * format defined by the user (with setRequestFormat())
  7133. * * _format request parameter
  7134. * * $default
  7135. *
  7136. * @param string $default The default format
  7137. * @return string The request format
  7138. * @api
  7139. * @static
  7140. */
  7141. public static function getRequestFormat($default = 'html'){
  7142. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7143. return \Illuminate\Http\Request::getRequestFormat($default);
  7144. }
  7145. /**
  7146. * Sets the request format.
  7147. *
  7148. * @param string $format The request format.
  7149. * @api
  7150. * @static
  7151. */
  7152. public static function setRequestFormat($format){
  7153. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7154. \Illuminate\Http\Request::setRequestFormat($format);
  7155. }
  7156. /**
  7157. * Gets the format associated with the request.
  7158. *
  7159. * @return string|null The format (null if no content type is present)
  7160. * @api
  7161. * @static
  7162. */
  7163. public static function getContentType(){
  7164. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7165. return \Illuminate\Http\Request::getContentType();
  7166. }
  7167. /**
  7168. * Sets the default locale.
  7169. *
  7170. * @param string $locale
  7171. * @api
  7172. * @static
  7173. */
  7174. public static function setDefaultLocale($locale){
  7175. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7176. \Illuminate\Http\Request::setDefaultLocale($locale);
  7177. }
  7178. /**
  7179. * Sets the locale.
  7180. *
  7181. * @param string $locale
  7182. * @api
  7183. * @static
  7184. */
  7185. public static function setLocale($locale){
  7186. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7187. \Illuminate\Http\Request::setLocale($locale);
  7188. }
  7189. /**
  7190. * Get the locale.
  7191. *
  7192. * @return string
  7193. * @static
  7194. */
  7195. public static function getLocale(){
  7196. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7197. return \Illuminate\Http\Request::getLocale();
  7198. }
  7199. /**
  7200. * Checks if the request method is of specified type.
  7201. *
  7202. * @param string $method Uppercase request method (GET, POST etc).
  7203. * @return bool
  7204. * @static
  7205. */
  7206. public static function isMethod($method){
  7207. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7208. return \Illuminate\Http\Request::isMethod($method);
  7209. }
  7210. /**
  7211. * Checks whether the method is safe or not.
  7212. *
  7213. * @return bool
  7214. * @api
  7215. * @static
  7216. */
  7217. public static function isMethodSafe(){
  7218. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7219. return \Illuminate\Http\Request::isMethodSafe();
  7220. }
  7221. /**
  7222. * Returns the request body content.
  7223. *
  7224. * @param bool $asResource If true, a resource will be returned
  7225. * @return string|resource The request body content or a resource to read the body stream.
  7226. * @throws \LogicException
  7227. * @static
  7228. */
  7229. public static function getContent($asResource = false){
  7230. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7231. return \Illuminate\Http\Request::getContent($asResource);
  7232. }
  7233. /**
  7234. * Gets the Etags.
  7235. *
  7236. * @return array The entity tags
  7237. * @static
  7238. */
  7239. public static function getETags(){
  7240. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7241. return \Illuminate\Http\Request::getETags();
  7242. }
  7243. /**
  7244. *
  7245. *
  7246. * @return bool
  7247. * @static
  7248. */
  7249. public static function isNoCache(){
  7250. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7251. return \Illuminate\Http\Request::isNoCache();
  7252. }
  7253. /**
  7254. * Returns the preferred language.
  7255. *
  7256. * @param array $locales An array of ordered available locales
  7257. * @return string|null The preferred locale
  7258. * @api
  7259. * @static
  7260. */
  7261. public static function getPreferredLanguage($locales = null){
  7262. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7263. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  7264. }
  7265. /**
  7266. * Gets a list of languages acceptable by the client browser.
  7267. *
  7268. * @return array Languages ordered in the user browser preferences
  7269. * @api
  7270. * @static
  7271. */
  7272. public static function getLanguages(){
  7273. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7274. return \Illuminate\Http\Request::getLanguages();
  7275. }
  7276. /**
  7277. * Gets a list of charsets acceptable by the client browser.
  7278. *
  7279. * @return array List of charsets in preferable order
  7280. * @api
  7281. * @static
  7282. */
  7283. public static function getCharsets(){
  7284. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7285. return \Illuminate\Http\Request::getCharsets();
  7286. }
  7287. /**
  7288. * Gets a list of encodings acceptable by the client browser.
  7289. *
  7290. * @return array List of encodings in preferable order
  7291. * @static
  7292. */
  7293. public static function getEncodings(){
  7294. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7295. return \Illuminate\Http\Request::getEncodings();
  7296. }
  7297. /**
  7298. * Gets a list of content types acceptable by the client browser
  7299. *
  7300. * @return array List of content types in preferable order
  7301. * @api
  7302. * @static
  7303. */
  7304. public static function getAcceptableContentTypes(){
  7305. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7306. return \Illuminate\Http\Request::getAcceptableContentTypes();
  7307. }
  7308. /**
  7309. * Returns true if the request is a XMLHttpRequest.
  7310. *
  7311. * It works if your JavaScript library set an X-Requested-With HTTP header.
  7312. * It is known to work with common JavaScript frameworks:
  7313. *
  7314. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  7315. * @return bool true if the request is an XMLHttpRequest, false otherwise
  7316. * @api
  7317. * @static
  7318. */
  7319. public static function isXmlHttpRequest(){
  7320. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7321. return \Illuminate\Http\Request::isXmlHttpRequest();
  7322. }
  7323. }
  7324. class Lang extends \Illuminate\Support\Facades\Lang{
  7325. /**
  7326. * Create a new translator instance.
  7327. *
  7328. * @param \Illuminate\Translation\LoaderInterface $loader
  7329. * @param string $locale
  7330. * @return void
  7331. * @static
  7332. */
  7333. public static function __construct($loader, $locale){
  7334. //Method inherited from \Illuminate\Translation\Translator
  7335. \Illuminate\Translation\Translator::__construct($loader, $locale);
  7336. }
  7337. /**
  7338. * Determine if a translation exists.
  7339. *
  7340. * @param string $key
  7341. * @param string $locale
  7342. * @return bool
  7343. * @static
  7344. */
  7345. public static function has($key, $locale = null){
  7346. //Method inherited from \Illuminate\Translation\Translator
  7347. return \Illuminate\Translation\Translator::has($key, $locale);
  7348. }
  7349. /**
  7350. * Get the translation for the given key.
  7351. *
  7352. * @param string $key
  7353. * @param array $replace
  7354. * @param string $locale
  7355. * @return string
  7356. * @static
  7357. */
  7358. public static function get($key, $replace = array(), $locale = null){
  7359. //Method inherited from \Illuminate\Translation\Translator
  7360. return \Illuminate\Translation\Translator::get($key, $replace, $locale);
  7361. }
  7362. /**
  7363. * Get a translation according to an integer value.
  7364. *
  7365. * @param string $key
  7366. * @param int $number
  7367. * @param array $replace
  7368. * @param string $locale
  7369. * @return string
  7370. * @static
  7371. */
  7372. public static function choice($key, $number, $replace = array(), $locale = null){
  7373. //Method inherited from \Illuminate\Translation\Translator
  7374. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  7375. }
  7376. /**
  7377. * Get the translation for a given key.
  7378. *
  7379. * @param string $id
  7380. * @param array $parameters
  7381. * @param string $domain
  7382. * @param string $locale
  7383. * @return string
  7384. * @static
  7385. */
  7386. public static function trans($id, $parameters = array(), $domain = 'messages', $locale = null){
  7387. //Method inherited from \Illuminate\Translation\Translator
  7388. return \Illuminate\Translation\Translator::trans($id, $parameters, $domain, $locale);
  7389. }
  7390. /**
  7391. * Get a translation according to an integer value.
  7392. *
  7393. * @param string $id
  7394. * @param int $number
  7395. * @param array $parameters
  7396. * @param string $domain
  7397. * @param string $locale
  7398. * @return string
  7399. * @static
  7400. */
  7401. public static function transChoice($id, $number, $parameters = array(), $domain = 'messages', $locale = null){
  7402. //Method inherited from \Illuminate\Translation\Translator
  7403. return \Illuminate\Translation\Translator::transChoice($id, $number, $parameters, $domain, $locale);
  7404. }
  7405. /**
  7406. * Load the specified language group.
  7407. *
  7408. * @param string $namespace
  7409. * @param string $group
  7410. * @param string $locale
  7411. * @return void
  7412. * @static
  7413. */
  7414. public static function load($namespace, $group, $locale){
  7415. //Method inherited from \Illuminate\Translation\Translator
  7416. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  7417. }
  7418. /**
  7419. * Add a new namespace to the loader.
  7420. *
  7421. * @param string $namespace
  7422. * @param string $hint
  7423. * @return void
  7424. * @static
  7425. */
  7426. public static function addNamespace($namespace, $hint){
  7427. //Method inherited from \Illuminate\Translation\Translator
  7428. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  7429. }
  7430. /**
  7431. * Parse a key into namespace, group, and item.
  7432. *
  7433. * @param string $key
  7434. * @return array
  7435. * @static
  7436. */
  7437. public static function parseKey($key){
  7438. //Method inherited from \Illuminate\Translation\Translator
  7439. return \Illuminate\Translation\Translator::parseKey($key);
  7440. }
  7441. /**
  7442. * Get the message selector instance.
  7443. *
  7444. * @return \Symfony\Component\Translation\MessageSelector
  7445. * @static
  7446. */
  7447. public static function getSelector(){
  7448. //Method inherited from \Illuminate\Translation\Translator
  7449. return \Illuminate\Translation\Translator::getSelector();
  7450. }
  7451. /**
  7452. * Set the message selector instance.
  7453. *
  7454. * @param \Symfony\Component\Translation\MessageSelector $selector
  7455. * @return void
  7456. * @static
  7457. */
  7458. public static function setSelector($selector){
  7459. //Method inherited from \Illuminate\Translation\Translator
  7460. \Illuminate\Translation\Translator::setSelector($selector);
  7461. }
  7462. /**
  7463. * Get the language line loader implementation.
  7464. *
  7465. * @return \Illuminate\Translation\LoaderInterface
  7466. * @static
  7467. */
  7468. public static function getLoader(){
  7469. //Method inherited from \Illuminate\Translation\Translator
  7470. return \Illuminate\Translation\Translator::getLoader();
  7471. }
  7472. /**
  7473. * Get the default locale being used.
  7474. *
  7475. * @return string
  7476. * @static
  7477. */
  7478. public static function locale(){
  7479. //Method inherited from \Illuminate\Translation\Translator
  7480. return \Illuminate\Translation\Translator::locale();
  7481. }
  7482. /**
  7483. * Get the default locale being used.
  7484. *
  7485. * @return string
  7486. * @static
  7487. */
  7488. public static function getLocale(){
  7489. //Method inherited from \Illuminate\Translation\Translator
  7490. return \Illuminate\Translation\Translator::getLocale();
  7491. }
  7492. /**
  7493. * Set the default locale.
  7494. *
  7495. * @param string $locale
  7496. * @return void
  7497. * @static
  7498. */
  7499. public static function setLocale($locale){
  7500. //Method inherited from \Illuminate\Translation\Translator
  7501. \Illuminate\Translation\Translator::setLocale($locale);
  7502. }
  7503. /**
  7504. * Get the fallback locale being used.
  7505. *
  7506. * @return string
  7507. * @static
  7508. */
  7509. public static function getFallback(){
  7510. //Method inherited from \Illuminate\Translation\Translator
  7511. return \Illuminate\Translation\Translator::getFallback();
  7512. }
  7513. /**
  7514. * Set the fallback locale being used.
  7515. *
  7516. * @param string $fallback
  7517. * @return void
  7518. * @static
  7519. */
  7520. public static function setFallback($fallback){
  7521. //Method inherited from \Illuminate\Translation\Translator
  7522. \Illuminate\Translation\Translator::setFallback($fallback);
  7523. }
  7524. /**
  7525. * Set the parsed value of a key.
  7526. *
  7527. * @param string $key
  7528. * @param array $parsed
  7529. * @return void
  7530. * @static
  7531. */
  7532. public static function setParsedKey($key, $parsed){
  7533. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7534. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  7535. }
  7536. }
  7537. class Log extends \Illuminate\Support\Facades\Log{
  7538. /**
  7539. * Create a new log writer instance.
  7540. *
  7541. * @param \Monolog\Logger $monolog
  7542. * @param \Illuminate\Events\Dispatcher $dispatcher
  7543. * @return void
  7544. * @static
  7545. */
  7546. public static function __construct($monolog, $dispatcher = null){
  7547. //Method inherited from \Illuminate\Log\Writer
  7548. \Illuminate\Log\Writer::__construct($monolog, $dispatcher);
  7549. }
  7550. /**
  7551. * Register a file log handler.
  7552. *
  7553. * @param string $path
  7554. * @param string $level
  7555. * @return void
  7556. * @static
  7557. */
  7558. public static function useFiles($path, $level = 'debug'){
  7559. //Method inherited from \Illuminate\Log\Writer
  7560. \Illuminate\Log\Writer::useFiles($path, $level);
  7561. }
  7562. /**
  7563. * Register a daily file log handler.
  7564. *
  7565. * @param string $path
  7566. * @param int $days
  7567. * @param string $level
  7568. * @return void
  7569. * @static
  7570. */
  7571. public static function useDailyFiles($path, $days = 0, $level = 'debug'){
  7572. //Method inherited from \Illuminate\Log\Writer
  7573. \Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  7574. }
  7575. /**
  7576. * Register an error_log handler.
  7577. *
  7578. * @param integer $messageType
  7579. * @param string $level
  7580. * @return void
  7581. * @static
  7582. */
  7583. public static function useErrorLog($level = 'debug', $messageType = 0){
  7584. //Method inherited from \Illuminate\Log\Writer
  7585. \Illuminate\Log\Writer::useErrorLog($level, $messageType);
  7586. }
  7587. /**
  7588. * Register a new callback handler for when
  7589. * a log event is triggered.
  7590. *
  7591. * @param Closure $callback
  7592. * @return void
  7593. * @throws \RuntimeException
  7594. * @static
  7595. */
  7596. public static function listen($callback){
  7597. //Method inherited from \Illuminate\Log\Writer
  7598. \Illuminate\Log\Writer::listen($callback);
  7599. }
  7600. /**
  7601. * Get the underlying Monolog instance.
  7602. *
  7603. * @return \Monolog\Logger
  7604. * @static
  7605. */
  7606. public static function getMonolog(){
  7607. //Method inherited from \Illuminate\Log\Writer
  7608. return \Illuminate\Log\Writer::getMonolog();
  7609. }
  7610. /**
  7611. * Get the event dispatcher instance.
  7612. *
  7613. * @return \Illuminate\Events\Dispatcher
  7614. * @static
  7615. */
  7616. public static function getEventDispatcher(){
  7617. //Method inherited from \Illuminate\Log\Writer
  7618. return \Illuminate\Log\Writer::getEventDispatcher();
  7619. }
  7620. /**
  7621. * Set the event dispatcher instance.
  7622. *
  7623. * @param \Illuminate\Events\Dispatcher
  7624. * @return void
  7625. * @static
  7626. */
  7627. public static function setEventDispatcher($dispatcher){
  7628. //Method inherited from \Illuminate\Log\Writer
  7629. \Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  7630. }
  7631. /**
  7632. * Dynamically pass log calls into the writer.
  7633. *
  7634. * @param dynamic (level, param, param)
  7635. * @return mixed
  7636. * @static
  7637. */
  7638. public static function write(){
  7639. //Method inherited from \Illuminate\Log\Writer
  7640. return \Illuminate\Log\Writer::write();
  7641. }
  7642. /**
  7643. * Dynamically handle error additions.
  7644. *
  7645. * @param string $method
  7646. * @param mixed $parameters
  7647. * @return mixed
  7648. * @throws \BadMethodCallException
  7649. * @static
  7650. */
  7651. public static function __call($method, $parameters){
  7652. //Method inherited from \Illuminate\Log\Writer
  7653. return \Illuminate\Log\Writer::__call($method, $parameters);
  7654. }
  7655. /**
  7656. * Adds a log record at the DEBUG level.
  7657. *
  7658. * @param string $message The log message
  7659. * @param array $context The log context
  7660. * @return Boolean Whether the record has been processed
  7661. * @static
  7662. */
  7663. public static function debug($message, $context = array()){
  7664. //Method inherited from \Monolog\Logger
  7665. return \Monolog\Logger::addDebug($message, $context);
  7666. }
  7667. /**
  7668. * Adds a log record at the INFO level.
  7669. *
  7670. * @param string $message The log message
  7671. * @param array $context The log context
  7672. * @return Boolean Whether the record has been processed
  7673. * @static
  7674. */
  7675. public static function info($message, $context = array()){
  7676. //Method inherited from \Monolog\Logger
  7677. return \Monolog\Logger::addInfo($message, $context);
  7678. }
  7679. /**
  7680. * Adds a log record at the NOTICE level.
  7681. *
  7682. * @param string $message The log message
  7683. * @param array $context The log context
  7684. * @return Boolean Whether the record has been processed
  7685. * @static
  7686. */
  7687. public static function notice($message, $context = array()){
  7688. //Method inherited from \Monolog\Logger
  7689. return \Monolog\Logger::addNotice($message, $context);
  7690. }
  7691. /**
  7692. * Adds a log record at the WARNING level.
  7693. *
  7694. * @param string $message The log message
  7695. * @param array $context The log context
  7696. * @return Boolean Whether the record has been processed
  7697. * @static
  7698. */
  7699. public static function warning($message, $context = array()){
  7700. //Method inherited from \Monolog\Logger
  7701. return \Monolog\Logger::addWarning($message, $context);
  7702. }
  7703. /**
  7704. * Adds a log record at the ERROR level.
  7705. *
  7706. * @param string $message The log message
  7707. * @param array $context The log context
  7708. * @return Boolean Whether the record has been processed
  7709. * @static
  7710. */
  7711. public static function error($message, $context = array()){
  7712. //Method inherited from \Monolog\Logger
  7713. return \Monolog\Logger::addError($message, $context);
  7714. }
  7715. /**
  7716. * Adds a log record at the CRITICAL level.
  7717. *
  7718. * @param string $message The log message
  7719. * @param array $context The log context
  7720. * @return Boolean Whether the record has been processed
  7721. * @static
  7722. */
  7723. public static function critical($message, $context = array()){
  7724. //Method inherited from \Monolog\Logger
  7725. return \Monolog\Logger::addCritical($message, $context);
  7726. }
  7727. /**
  7728. * Adds a log record at the ALERT level.
  7729. *
  7730. * @param string $message The log message
  7731. * @param array $context The log context
  7732. * @return Boolean Whether the record has been processed
  7733. * @static
  7734. */
  7735. public static function alert($message, $context = array()){
  7736. //Method inherited from \Monolog\Logger
  7737. return \Monolog\Logger::addAlert($message, $context);
  7738. }
  7739. /**
  7740. * Adds a log record at the EMERGENCY level.
  7741. *
  7742. * @param string $message The log message
  7743. * @param array $context The log context
  7744. * @return Boolean Whether the record has been processed
  7745. * @static
  7746. */
  7747. public static function emergency($message, $context = array()){
  7748. //Method inherited from \Monolog\Logger
  7749. return \Monolog\Logger::addEmergency($message, $context);
  7750. }
  7751. }
  7752. class Mail extends \Illuminate\Support\Facades\Mail{
  7753. /**
  7754. * Create a new Mailer instance.
  7755. *
  7756. * @param \Illuminate\View\Factory $views
  7757. * @param \Swift_Mailer $swift
  7758. * @return void
  7759. * @static
  7760. */
  7761. public static function __construct($views, $swift, $events = null){
  7762. //Method inherited from \Illuminate\Mail\Mailer
  7763. \Illuminate\Mail\Mailer::__construct($views, $swift, $events);
  7764. }
  7765. /**
  7766. * Set the global from address and name.
  7767. *
  7768. * @param string $address
  7769. * @param string $name
  7770. * @return void
  7771. * @static
  7772. */
  7773. public static function alwaysFrom($address, $name = null){
  7774. //Method inherited from \Illuminate\Mail\Mailer
  7775. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  7776. }
  7777. /**
  7778. * Send a new message when only a plain part.
  7779. *
  7780. * @param string $view
  7781. * @param array $data
  7782. * @param mixed $callback
  7783. * @return int
  7784. * @static
  7785. */
  7786. public static function plain($view, $data, $callback){
  7787. //Method inherited from \Illuminate\Mail\Mailer
  7788. return \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  7789. }
  7790. /**
  7791. * Send a new message using a view.
  7792. *
  7793. * @param string|array $view
  7794. * @param array $data
  7795. * @param Closure|string $callback
  7796. * @return int
  7797. * @static
  7798. */
  7799. public static function send($view, $data, $callback){
  7800. //Method inherited from \Illuminate\Mail\Mailer
  7801. return \Illuminate\Mail\Mailer::send($view, $data, $callback);
  7802. }
  7803. /**
  7804. * Queue a new e-mail message for sending.
  7805. *
  7806. * @param string|array $view
  7807. * @param array $data
  7808. * @param Closure|string $callback
  7809. * @param string $queue
  7810. * @return void
  7811. * @static
  7812. */
  7813. public static function queue($view, $data, $callback, $queue = null){
  7814. //Method inherited from \Illuminate\Mail\Mailer
  7815. \Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  7816. }
  7817. /**
  7818. * Queue a new e-mail message for sending on the given queue.
  7819. *
  7820. * @param string $queue
  7821. * @param string|array $view
  7822. * @param array $data
  7823. * @param Closure|string $callback
  7824. * @return void
  7825. * @static
  7826. */
  7827. public static function queueOn($queue, $view, $data, $callback){
  7828. //Method inherited from \Illuminate\Mail\Mailer
  7829. \Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  7830. }
  7831. /**
  7832. * Queue a new e-mail message for sending after (n) seconds.
  7833. *
  7834. * @param int $delay
  7835. * @param string|array $view
  7836. * @param array $data
  7837. * @param Closure|string $callback
  7838. * @param string $queue
  7839. * @return void
  7840. * @static
  7841. */
  7842. public static function later($delay, $view, $data, $callback, $queue = null){
  7843. //Method inherited from \Illuminate\Mail\Mailer
  7844. \Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  7845. }
  7846. /**
  7847. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  7848. *
  7849. * @param string $queue
  7850. * @param int $delay
  7851. * @param string|array $view
  7852. * @param array $data
  7853. * @param Closure|string $callback
  7854. * @return void
  7855. * @static
  7856. */
  7857. public static function laterOn($queue, $delay, $view, $data, $callback){
  7858. //Method inherited from \Illuminate\Mail\Mailer
  7859. \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  7860. }
  7861. /**
  7862. * Handle a queued e-mail message job.
  7863. *
  7864. * @param \Illuminate\Queue\Jobs\Job $job
  7865. * @param array $data
  7866. * @return void
  7867. * @static
  7868. */
  7869. public static function handleQueuedMessage($job, $data){
  7870. //Method inherited from \Illuminate\Mail\Mailer
  7871. \Illuminate\Mail\Mailer::handleQueuedMessage($job, $data);
  7872. }
  7873. /**
  7874. * Tell the mailer to not really send messages.
  7875. *
  7876. * @param bool $value
  7877. * @return void
  7878. * @static
  7879. */
  7880. public static function pretend($value = true){
  7881. //Method inherited from \Illuminate\Mail\Mailer
  7882. \Illuminate\Mail\Mailer::pretend($value);
  7883. }
  7884. /**
  7885. * Get the view factory instance.
  7886. *
  7887. * @return \Illuminate\View\Factory
  7888. * @static
  7889. */
  7890. public static function getViewFactory(){
  7891. //Method inherited from \Illuminate\Mail\Mailer
  7892. return \Illuminate\Mail\Mailer::getViewFactory();
  7893. }
  7894. /**
  7895. * Get the Swift Mailer instance.
  7896. *
  7897. * @return \Swift_Mailer
  7898. * @static
  7899. */
  7900. public static function getSwiftMailer(){
  7901. //Method inherited from \Illuminate\Mail\Mailer
  7902. return \Illuminate\Mail\Mailer::getSwiftMailer();
  7903. }
  7904. /**
  7905. * Get the array of failed recipients.
  7906. *
  7907. * @return array
  7908. * @static
  7909. */
  7910. public static function failures(){
  7911. //Method inherited from \Illuminate\Mail\Mailer
  7912. return \Illuminate\Mail\Mailer::failures();
  7913. }
  7914. /**
  7915. * Set the Swift Mailer instance.
  7916. *
  7917. * @param \Swift_Mailer $swift
  7918. * @return void
  7919. * @static
  7920. */
  7921. public static function setSwiftMailer($swift){
  7922. //Method inherited from \Illuminate\Mail\Mailer
  7923. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  7924. }
  7925. /**
  7926. * Set the log writer instance.
  7927. *
  7928. * @param \Illuminate\Log\Writer $logger
  7929. * @return \Illuminate\Mail\Mailer
  7930. * @static
  7931. */
  7932. public static function setLogger($logger){
  7933. //Method inherited from \Illuminate\Mail\Mailer
  7934. return \Illuminate\Mail\Mailer::setLogger($logger);
  7935. }
  7936. /**
  7937. * Set the queue manager instance.
  7938. *
  7939. * @param \Illuminate\Queue\QueueManager $queue
  7940. * @return \Illuminate\Mail\Mailer
  7941. * @static
  7942. */
  7943. public static function setQueue($queue){
  7944. //Method inherited from \Illuminate\Mail\Mailer
  7945. return \Illuminate\Mail\Mailer::setQueue($queue);
  7946. }
  7947. /**
  7948. * Set the IoC container instance.
  7949. *
  7950. * @param \Illuminate\Container\Container $container
  7951. * @return void
  7952. * @static
  7953. */
  7954. public static function setContainer($container){
  7955. //Method inherited from \Illuminate\Mail\Mailer
  7956. \Illuminate\Mail\Mailer::setContainer($container);
  7957. }
  7958. }
  7959. class Paginator extends \Illuminate\Support\Facades\Paginator{
  7960. /**
  7961. * Create a new pagination factory.
  7962. *
  7963. * @param \Symfony\Component\HttpFoundation\Request $request
  7964. * @param \Illuminate\View\Factory $view
  7965. * @param \Symfony\Component\Translation\TranslatorInterface $trans
  7966. * @param string $pageName
  7967. * @return void
  7968. * @static
  7969. */
  7970. public static function __construct($request, $view, $trans, $pageName = 'page'){
  7971. //Method inherited from \Illuminate\Pagination\Factory
  7972. \Illuminate\Pagination\Factory::__construct($request, $view, $trans, $pageName);
  7973. }
  7974. /**
  7975. * Get a new paginator instance.
  7976. *
  7977. * @param array $items
  7978. * @param int $total
  7979. * @param int|null $perPage
  7980. * @return \Illuminate\Pagination\Paginator
  7981. * @static
  7982. */
  7983. public static function make($items, $total, $perPage = null){
  7984. //Method inherited from \Illuminate\Pagination\Factory
  7985. return \Illuminate\Pagination\Factory::make($items, $total, $perPage);
  7986. }
  7987. /**
  7988. * Get the pagination view.
  7989. *
  7990. * @param \Illuminate\Pagination\Paginator $paginator
  7991. * @param string $view
  7992. * @return \Illuminate\View\View
  7993. * @static
  7994. */
  7995. public static function getPaginationView($paginator, $view = null){
  7996. //Method inherited from \Illuminate\Pagination\Factory
  7997. return \Illuminate\Pagination\Factory::getPaginationView($paginator, $view);
  7998. }
  7999. /**
  8000. * Get the number of the current page.
  8001. *
  8002. * @return int
  8003. * @static
  8004. */
  8005. public static function getCurrentPage(){
  8006. //Method inherited from \Illuminate\Pagination\Factory
  8007. return \Illuminate\Pagination\Factory::getCurrentPage();
  8008. }
  8009. /**
  8010. * Set the number of the current page.
  8011. *
  8012. * @param int $number
  8013. * @return void
  8014. * @static
  8015. */
  8016. public static function setCurrentPage($number){
  8017. //Method inherited from \Illuminate\Pagination\Factory
  8018. \Illuminate\Pagination\Factory::setCurrentPage($number);
  8019. }
  8020. /**
  8021. * Get the root URL for the request.
  8022. *
  8023. * @return string
  8024. * @static
  8025. */
  8026. public static function getCurrentUrl(){
  8027. //Method inherited from \Illuminate\Pagination\Factory
  8028. return \Illuminate\Pagination\Factory::getCurrentUrl();
  8029. }
  8030. /**
  8031. * Set the base URL in use by the paginator.
  8032. *
  8033. * @param string $baseUrl
  8034. * @return void
  8035. * @static
  8036. */
  8037. public static function setBaseUrl($baseUrl){
  8038. //Method inherited from \Illuminate\Pagination\Factory
  8039. \Illuminate\Pagination\Factory::setBaseUrl($baseUrl);
  8040. }
  8041. /**
  8042. * Set the input page parameter name used by the paginator.
  8043. *
  8044. * @param string $pageName
  8045. * @return void
  8046. * @static
  8047. */
  8048. public static function setPageName($pageName){
  8049. //Method inherited from \Illuminate\Pagination\Factory
  8050. \Illuminate\Pagination\Factory::setPageName($pageName);
  8051. }
  8052. /**
  8053. * Get the input page parameter name used by the paginator.
  8054. *
  8055. * @return string
  8056. * @static
  8057. */
  8058. public static function getPageName(){
  8059. //Method inherited from \Illuminate\Pagination\Factory
  8060. return \Illuminate\Pagination\Factory::getPageName();
  8061. }
  8062. /**
  8063. * Get the name of the pagination view.
  8064. *
  8065. * @param string $view
  8066. * @return string
  8067. * @static
  8068. */
  8069. public static function getViewName($view = null){
  8070. //Method inherited from \Illuminate\Pagination\Factory
  8071. return \Illuminate\Pagination\Factory::getViewName($view);
  8072. }
  8073. /**
  8074. * Set the name of the pagination view.
  8075. *
  8076. * @param string $viewName
  8077. * @return void
  8078. * @static
  8079. */
  8080. public static function setViewName($viewName){
  8081. //Method inherited from \Illuminate\Pagination\Factory
  8082. \Illuminate\Pagination\Factory::setViewName($viewName);
  8083. }
  8084. /**
  8085. * Get the locale of the paginator.
  8086. *
  8087. * @return string
  8088. * @static
  8089. */
  8090. public static function getLocale(){
  8091. //Method inherited from \Illuminate\Pagination\Factory
  8092. return \Illuminate\Pagination\Factory::getLocale();
  8093. }
  8094. /**
  8095. * Set the locale of the paginator.
  8096. *
  8097. * @param string $locale
  8098. * @return void
  8099. * @static
  8100. */
  8101. public static function setLocale($locale){
  8102. //Method inherited from \Illuminate\Pagination\Factory
  8103. \Illuminate\Pagination\Factory::setLocale($locale);
  8104. }
  8105. /**
  8106. * Get the active request instance.
  8107. *
  8108. * @return \Symfony\Component\HttpFoundation\Request
  8109. * @static
  8110. */
  8111. public static function getRequest(){
  8112. //Method inherited from \Illuminate\Pagination\Factory
  8113. return \Illuminate\Pagination\Factory::getRequest();
  8114. }
  8115. /**
  8116. * Set the active request instance.
  8117. *
  8118. * @param \Symfony\Component\HttpFoundation\Request $request
  8119. * @return void
  8120. * @static
  8121. */
  8122. public static function setRequest($request){
  8123. //Method inherited from \Illuminate\Pagination\Factory
  8124. \Illuminate\Pagination\Factory::setRequest($request);
  8125. }
  8126. /**
  8127. * Get the current view factory.
  8128. *
  8129. * @return \Illuminate\View\Factory
  8130. * @static
  8131. */
  8132. public static function getViewFactory(){
  8133. //Method inherited from \Illuminate\Pagination\Factory
  8134. return \Illuminate\Pagination\Factory::getViewFactory();
  8135. }
  8136. /**
  8137. * Set the current view factory.
  8138. *
  8139. * @param \Illuminate\View\Factory $view
  8140. * @return void
  8141. * @static
  8142. */
  8143. public static function setViewFactory($view){
  8144. //Method inherited from \Illuminate\Pagination\Factory
  8145. \Illuminate\Pagination\Factory::setViewFactory($view);
  8146. }
  8147. /**
  8148. * Get the translator instance.
  8149. *
  8150. * @return \Symfony\Component\Translation\TranslatorInterface
  8151. * @static
  8152. */
  8153. public static function getTranslator(){
  8154. //Method inherited from \Illuminate\Pagination\Factory
  8155. return \Illuminate\Pagination\Factory::getTranslator();
  8156. }
  8157. }
  8158. class Password extends \Illuminate\Support\Facades\Password{
  8159. /**
  8160. * Create a new password broker instance.
  8161. *
  8162. * @param \Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders
  8163. * @param \Illuminate\Auth\UserProviderInterface $users
  8164. * @param \Illuminate\Mail\Mailer $mailer
  8165. * @param string $reminderView
  8166. * @return void
  8167. * @static
  8168. */
  8169. public static function __construct($reminders, $users, $mailer, $reminderView){
  8170. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8171. \Illuminate\Auth\Reminders\PasswordBroker::__construct($reminders, $users, $mailer, $reminderView);
  8172. }
  8173. /**
  8174. * Send a password reminder to a user.
  8175. *
  8176. * @param array $credentials
  8177. * @param Closure $callback
  8178. * @return string
  8179. * @static
  8180. */
  8181. public static function remind($credentials, $callback = null){
  8182. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8183. return \Illuminate\Auth\Reminders\PasswordBroker::remind($credentials, $callback);
  8184. }
  8185. /**
  8186. * Send the password reminder e-mail.
  8187. *
  8188. * @param \Illuminate\Auth\Reminders\RemindableInterface $user
  8189. * @param string $token
  8190. * @param Closure $callback
  8191. * @return int
  8192. * @static
  8193. */
  8194. public static function sendReminder($user, $token, $callback = null){
  8195. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8196. return \Illuminate\Auth\Reminders\PasswordBroker::sendReminder($user, $token, $callback);
  8197. }
  8198. /**
  8199. * Reset the password for the given token.
  8200. *
  8201. * @param array $credentials
  8202. * @param Closure $callback
  8203. * @return mixed
  8204. * @static
  8205. */
  8206. public static function reset($credentials, $callback){
  8207. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8208. return \Illuminate\Auth\Reminders\PasswordBroker::reset($credentials, $callback);
  8209. }
  8210. /**
  8211. * Set a custom password validator.
  8212. *
  8213. * @param \Closure $callback
  8214. * @return void
  8215. * @static
  8216. */
  8217. public static function validator($callback){
  8218. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8219. \Illuminate\Auth\Reminders\PasswordBroker::validator($callback);
  8220. }
  8221. /**
  8222. * Get the user for the given credentials.
  8223. *
  8224. * @param array $credentials
  8225. * @return \Illuminate\Auth\Reminders\RemindableInterface
  8226. * @throws \UnexpectedValueException
  8227. * @static
  8228. */
  8229. public static function getUser($credentials){
  8230. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8231. return \Illuminate\Auth\Reminders\PasswordBroker::getUser($credentials);
  8232. }
  8233. }
  8234. class Queue extends \Illuminate\Support\Facades\Queue{
  8235. /**
  8236. * Create a new queue manager instance.
  8237. *
  8238. * @param \Illuminate\Foundation\Application $app
  8239. * @return void
  8240. * @static
  8241. */
  8242. public static function __construct($app){
  8243. //Method inherited from \Illuminate\Queue\QueueManager
  8244. \Illuminate\Queue\QueueManager::__construct($app);
  8245. }
  8246. /**
  8247. * Register an event listener for the daemon queue loop.
  8248. *
  8249. * @param mixed $callback
  8250. * @return void
  8251. * @static
  8252. */
  8253. public static function looping($callback){
  8254. //Method inherited from \Illuminate\Queue\QueueManager
  8255. \Illuminate\Queue\QueueManager::looping($callback);
  8256. }
  8257. /**
  8258. * Register an event listener for the failed job event.
  8259. *
  8260. * @param mixed $callback
  8261. * @return void
  8262. * @static
  8263. */
  8264. public static function failing($callback){
  8265. //Method inherited from \Illuminate\Queue\QueueManager
  8266. \Illuminate\Queue\QueueManager::failing($callback);
  8267. }
  8268. /**
  8269. * Register an event listener for the daemon queue stopping.
  8270. *
  8271. * @param mixed $callback
  8272. * @return void
  8273. * @static
  8274. */
  8275. public static function stopping($callback){
  8276. //Method inherited from \Illuminate\Queue\QueueManager
  8277. \Illuminate\Queue\QueueManager::stopping($callback);
  8278. }
  8279. /**
  8280. * Determine if the driver is connected.
  8281. *
  8282. * @param string $name
  8283. * @return bool
  8284. * @static
  8285. */
  8286. public static function connected($name = null){
  8287. //Method inherited from \Illuminate\Queue\QueueManager
  8288. return \Illuminate\Queue\QueueManager::connected($name);
  8289. }
  8290. /**
  8291. * Resolve a queue connection instance.
  8292. *
  8293. * @param string $name
  8294. * @return \Illuminate\Queue\QueueInterface
  8295. * @static
  8296. */
  8297. public static function connection($name = null){
  8298. //Method inherited from \Illuminate\Queue\QueueManager
  8299. return \Illuminate\Queue\QueueManager::connection($name);
  8300. }
  8301. /**
  8302. * Add a queue connection resolver.
  8303. *
  8304. * @param string $driver
  8305. * @param Closure $resolver
  8306. * @return void
  8307. * @static
  8308. */
  8309. public static function extend($driver, $resolver){
  8310. //Method inherited from \Illuminate\Queue\QueueManager
  8311. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  8312. }
  8313. /**
  8314. * Add a queue connection resolver.
  8315. *
  8316. * @param string $driver
  8317. * @param Closure $resolver
  8318. * @return void
  8319. * @static
  8320. */
  8321. public static function addConnector($driver, $resolver){
  8322. //Method inherited from \Illuminate\Queue\QueueManager
  8323. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  8324. }
  8325. /**
  8326. * Get the name of the default queue connection.
  8327. *
  8328. * @return string
  8329. * @static
  8330. */
  8331. public static function getDefaultDriver(){
  8332. //Method inherited from \Illuminate\Queue\QueueManager
  8333. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  8334. }
  8335. /**
  8336. * Set the name of the default queue connection.
  8337. *
  8338. * @param string $name
  8339. * @return void
  8340. * @static
  8341. */
  8342. public static function setDefaultDriver($name){
  8343. //Method inherited from \Illuminate\Queue\QueueManager
  8344. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  8345. }
  8346. /**
  8347. * Get the full name for the given connection.
  8348. *
  8349. * @param string $connection
  8350. * @return string
  8351. * @static
  8352. */
  8353. public static function getName($connection = null){
  8354. //Method inherited from \Illuminate\Queue\QueueManager
  8355. return \Illuminate\Queue\QueueManager::getName($connection);
  8356. }
  8357. /**
  8358. * Dynamically pass calls to the default connection.
  8359. *
  8360. * @param string $method
  8361. * @param array $parameters
  8362. * @return mixed
  8363. * @static
  8364. */
  8365. public static function __call($method, $parameters){
  8366. //Method inherited from \Illuminate\Queue\QueueManager
  8367. return \Illuminate\Queue\QueueManager::__call($method, $parameters);
  8368. }
  8369. /**
  8370. * Push a new job onto the queue.
  8371. *
  8372. * @param string $job
  8373. * @param mixed $data
  8374. * @param string $queue
  8375. * @return mixed
  8376. * @static
  8377. */
  8378. public static function push($job, $data = '', $queue = null){
  8379. //Method inherited from \Illuminate\Queue\SyncQueue
  8380. return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
  8381. }
  8382. /**
  8383. * Push a raw payload onto the queue.
  8384. *
  8385. * @param string $payload
  8386. * @param string $queue
  8387. * @param array $options
  8388. * @return mixed
  8389. * @static
  8390. */
  8391. public static function pushRaw($payload, $queue = null, $options = array()){
  8392. //Method inherited from \Illuminate\Queue\SyncQueue
  8393. return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
  8394. }
  8395. /**
  8396. * Push a new job onto the queue after a delay.
  8397. *
  8398. * @param \DateTime|int $delay
  8399. * @param string $job
  8400. * @param mixed $data
  8401. * @param string $queue
  8402. * @return mixed
  8403. * @static
  8404. */
  8405. public static function later($delay, $job, $data = '', $queue = null){
  8406. //Method inherited from \Illuminate\Queue\SyncQueue
  8407. return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
  8408. }
  8409. /**
  8410. * Pop the next job off of the queue.
  8411. *
  8412. * @param string $queue
  8413. * @return \Illuminate\Queue\Jobs\Job|null
  8414. * @static
  8415. */
  8416. public static function pop($queue = null){
  8417. //Method inherited from \Illuminate\Queue\SyncQueue
  8418. return \Illuminate\Queue\SyncQueue::pop($queue);
  8419. }
  8420. /**
  8421. * Marshal a push queue request and fire the job.
  8422. *
  8423. * @throws \RuntimeException
  8424. * @static
  8425. */
  8426. public static function marshal(){
  8427. //Method inherited from \Illuminate\Queue\Queue
  8428. \Illuminate\Queue\SyncQueue::marshal();
  8429. }
  8430. /**
  8431. * Push a new an array of jobs onto the queue.
  8432. *
  8433. * @param array $jobs
  8434. * @param mixed $data
  8435. * @param string $queue
  8436. * @return mixed
  8437. * @static
  8438. */
  8439. public static function bulk($jobs, $data = '', $queue = null){
  8440. //Method inherited from \Illuminate\Queue\Queue
  8441. return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
  8442. }
  8443. /**
  8444. * Get the current UNIX timestamp.
  8445. *
  8446. * @return int
  8447. * @static
  8448. */
  8449. public static function getTime(){
  8450. //Method inherited from \Illuminate\Queue\Queue
  8451. return \Illuminate\Queue\SyncQueue::getTime();
  8452. }
  8453. /**
  8454. * Set the IoC container instance.
  8455. *
  8456. * @param \Illuminate\Container\Container $container
  8457. * @return void
  8458. * @static
  8459. */
  8460. public static function setContainer($container){
  8461. //Method inherited from \Illuminate\Queue\Queue
  8462. \Illuminate\Queue\SyncQueue::setContainer($container);
  8463. }
  8464. /**
  8465. * Set the encrypter instance.
  8466. *
  8467. * @param \Illuminate\Encryption\Encrypter $crypt
  8468. * @return void
  8469. * @static
  8470. */
  8471. public static function setEncrypter($crypt){
  8472. //Method inherited from \Illuminate\Queue\Queue
  8473. \Illuminate\Queue\SyncQueue::setEncrypter($crypt);
  8474. }
  8475. }
  8476. class Redirect extends \Illuminate\Support\Facades\Redirect{
  8477. /**
  8478. * Create a new Redirector instance.
  8479. *
  8480. * @param \Illuminate\Routing\UrlGenerator $generator
  8481. * @return void
  8482. * @static
  8483. */
  8484. public static function __construct($generator){
  8485. //Method inherited from \Illuminate\Routing\Redirector
  8486. \Illuminate\Routing\Redirector::__construct($generator);
  8487. }
  8488. /**
  8489. * Create a new redirect response to the "home" route.
  8490. *
  8491. * @param int $status
  8492. * @return \Illuminate\Http\RedirectResponse
  8493. * @static
  8494. */
  8495. public static function home($status = 302){
  8496. //Method inherited from \Illuminate\Routing\Redirector
  8497. return \Illuminate\Routing\Redirector::home($status);
  8498. }
  8499. /**
  8500. * Create a new redirect response to the previous location.
  8501. *
  8502. * @param int $status
  8503. * @param array $headers
  8504. * @return \Illuminate\Http\RedirectResponse
  8505. * @static
  8506. */
  8507. public static function back($status = 302, $headers = array()){
  8508. //Method inherited from \Illuminate\Routing\Redirector
  8509. return \Illuminate\Routing\Redirector::back($status, $headers);
  8510. }
  8511. /**
  8512. * Create a new redirect response to the current URI.
  8513. *
  8514. * @param int $status
  8515. * @param array $headers
  8516. * @return \Illuminate\Http\RedirectResponse
  8517. * @static
  8518. */
  8519. public static function refresh($status = 302, $headers = array()){
  8520. //Method inherited from \Illuminate\Routing\Redirector
  8521. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  8522. }
  8523. /**
  8524. * Create a new redirect response, while putting the current URL in the session.
  8525. *
  8526. * @param string $path
  8527. * @param int $status
  8528. * @param array $headers
  8529. * @param bool $secure
  8530. * @return \Illuminate\Http\RedirectResponse
  8531. * @static
  8532. */
  8533. public static function guest($path, $status = 302, $headers = array(), $secure = null){
  8534. //Method inherited from \Illuminate\Routing\Redirector
  8535. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  8536. }
  8537. /**
  8538. * Create a new redirect response to the previously intended location.
  8539. *
  8540. * @param string $default
  8541. * @param int $status
  8542. * @param array $headers
  8543. * @param bool $secure
  8544. * @return \Illuminate\Http\RedirectResponse
  8545. * @static
  8546. */
  8547. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null){
  8548. //Method inherited from \Illuminate\Routing\Redirector
  8549. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  8550. }
  8551. /**
  8552. * Create a new redirect response to the given path.
  8553. *
  8554. * @param string $path
  8555. * @param int $status
  8556. * @param array $headers
  8557. * @param bool $secure
  8558. * @return \Illuminate\Http\RedirectResponse
  8559. * @static
  8560. */
  8561. public static function to($path, $status = 302, $headers = array(), $secure = null){
  8562. //Method inherited from \Illuminate\Routing\Redirector
  8563. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  8564. }
  8565. /**
  8566. * Create a new redirect response to an external URL (no validation).
  8567. *
  8568. * @param string $path
  8569. * @param int $status
  8570. * @param array $headers
  8571. * @return \Illuminate\Http\RedirectResponse
  8572. * @static
  8573. */
  8574. public static function away($path, $status = 302, $headers = array()){
  8575. //Method inherited from \Illuminate\Routing\Redirector
  8576. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  8577. }
  8578. /**
  8579. * Create a new redirect response to the given HTTPS path.
  8580. *
  8581. * @param string $path
  8582. * @param int $status
  8583. * @param array $headers
  8584. * @return \Illuminate\Http\RedirectResponse
  8585. * @static
  8586. */
  8587. public static function secure($path, $status = 302, $headers = array()){
  8588. //Method inherited from \Illuminate\Routing\Redirector
  8589. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  8590. }
  8591. /**
  8592. * Create a new redirect response to a named route.
  8593. *
  8594. * @param string $route
  8595. * @param array $parameters
  8596. * @param int $status
  8597. * @param array $headers
  8598. * @return \Illuminate\Http\RedirectResponse
  8599. * @static
  8600. */
  8601. public static function route($route, $parameters = array(), $status = 302, $headers = array()){
  8602. //Method inherited from \Illuminate\Routing\Redirector
  8603. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  8604. }
  8605. /**
  8606. * Create a new redirect response to a controller action.
  8607. *
  8608. * @param string $action
  8609. * @param array $parameters
  8610. * @param int $status
  8611. * @param array $headers
  8612. * @return \Illuminate\Http\RedirectResponse
  8613. * @static
  8614. */
  8615. public static function action($action, $parameters = array(), $status = 302, $headers = array()){
  8616. //Method inherited from \Illuminate\Routing\Redirector
  8617. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  8618. }
  8619. /**
  8620. * Get the URL generator instance.
  8621. *
  8622. * @return \Illuminate\Routing\UrlGenerator
  8623. * @static
  8624. */
  8625. public static function getUrlGenerator(){
  8626. //Method inherited from \Illuminate\Routing\Redirector
  8627. return \Illuminate\Routing\Redirector::getUrlGenerator();
  8628. }
  8629. /**
  8630. * Set the active session store.
  8631. *
  8632. * @param \Illuminate\Session\Store $session
  8633. * @return void
  8634. * @static
  8635. */
  8636. public static function setSession($session){
  8637. //Method inherited from \Illuminate\Routing\Redirector
  8638. \Illuminate\Routing\Redirector::setSession($session);
  8639. }
  8640. }
  8641. class Request extends \Illuminate\Support\Facades\Request{
  8642. /**
  8643. * Return the Request instance.
  8644. *
  8645. * @return \Illuminate\Http\Request
  8646. * @static
  8647. */
  8648. public static function instance(){
  8649. //Method inherited from \Illuminate\Http\Request
  8650. return \Illuminate\Http\Request::instance();
  8651. }
  8652. /**
  8653. * Get the request method.
  8654. *
  8655. * @return string
  8656. * @static
  8657. */
  8658. public static function method(){
  8659. //Method inherited from \Illuminate\Http\Request
  8660. return \Illuminate\Http\Request::method();
  8661. }
  8662. /**
  8663. * Get the root URL for the application.
  8664. *
  8665. * @return string
  8666. * @static
  8667. */
  8668. public static function root(){
  8669. //Method inherited from \Illuminate\Http\Request
  8670. return \Illuminate\Http\Request::root();
  8671. }
  8672. /**
  8673. * Get the URL (no query string) for the request.
  8674. *
  8675. * @return string
  8676. * @static
  8677. */
  8678. public static function url(){
  8679. //Method inherited from \Illuminate\Http\Request
  8680. return \Illuminate\Http\Request::url();
  8681. }
  8682. /**
  8683. * Get the full URL for the request.
  8684. *
  8685. * @return string
  8686. * @static
  8687. */
  8688. public static function fullUrl(){
  8689. //Method inherited from \Illuminate\Http\Request
  8690. return \Illuminate\Http\Request::fullUrl();
  8691. }
  8692. /**
  8693. * Get the current path info for the request.
  8694. *
  8695. * @return string
  8696. * @static
  8697. */
  8698. public static function path(){
  8699. //Method inherited from \Illuminate\Http\Request
  8700. return \Illuminate\Http\Request::path();
  8701. }
  8702. /**
  8703. * Get the current encoded path info for the request.
  8704. *
  8705. * @return string
  8706. * @static
  8707. */
  8708. public static function decodedPath(){
  8709. //Method inherited from \Illuminate\Http\Request
  8710. return \Illuminate\Http\Request::decodedPath();
  8711. }
  8712. /**
  8713. * Get a segment from the URI (1 based index).
  8714. *
  8715. * @param string $index
  8716. * @param mixed $default
  8717. * @return string
  8718. * @static
  8719. */
  8720. public static function segment($index, $default = null){
  8721. //Method inherited from \Illuminate\Http\Request
  8722. return \Illuminate\Http\Request::segment($index, $default);
  8723. }
  8724. /**
  8725. * Get all of the segments for the request path.
  8726. *
  8727. * @return array
  8728. * @static
  8729. */
  8730. public static function segments(){
  8731. //Method inherited from \Illuminate\Http\Request
  8732. return \Illuminate\Http\Request::segments();
  8733. }
  8734. /**
  8735. * Determine if the current request URI matches a pattern.
  8736. *
  8737. * @param dynamic string
  8738. * @return bool
  8739. * @static
  8740. */
  8741. public static function is(){
  8742. //Method inherited from \Illuminate\Http\Request
  8743. return \Illuminate\Http\Request::is();
  8744. }
  8745. /**
  8746. * Determine if the request is the result of an AJAX call.
  8747. *
  8748. * @return bool
  8749. * @static
  8750. */
  8751. public static function ajax(){
  8752. //Method inherited from \Illuminate\Http\Request
  8753. return \Illuminate\Http\Request::ajax();
  8754. }
  8755. /**
  8756. * Determine if the request is over HTTPS.
  8757. *
  8758. * @return bool
  8759. * @static
  8760. */
  8761. public static function secure(){
  8762. //Method inherited from \Illuminate\Http\Request
  8763. return \Illuminate\Http\Request::secure();
  8764. }
  8765. /**
  8766. * Determine if the request contains a given input item key.
  8767. *
  8768. * @param string|array $key
  8769. * @return bool
  8770. * @static
  8771. */
  8772. public static function exists($key){
  8773. //Method inherited from \Illuminate\Http\Request
  8774. return \Illuminate\Http\Request::exists($key);
  8775. }
  8776. /**
  8777. * Determine if the request contains a non-emtpy value for an input item.
  8778. *
  8779. * @param string|array $key
  8780. * @return bool
  8781. * @static
  8782. */
  8783. public static function has($key){
  8784. //Method inherited from \Illuminate\Http\Request
  8785. return \Illuminate\Http\Request::has($key);
  8786. }
  8787. /**
  8788. * Get all of the input and files for the request.
  8789. *
  8790. * @return array
  8791. * @static
  8792. */
  8793. public static function all(){
  8794. //Method inherited from \Illuminate\Http\Request
  8795. return \Illuminate\Http\Request::all();
  8796. }
  8797. /**
  8798. * Retrieve an input item from the request.
  8799. *
  8800. * @param string $key
  8801. * @param mixed $default
  8802. * @return string
  8803. * @static
  8804. */
  8805. public static function input($key = null, $default = null){
  8806. //Method inherited from \Illuminate\Http\Request
  8807. return \Illuminate\Http\Request::input($key, $default);
  8808. }
  8809. /**
  8810. * Get a subset of the items from the input data.
  8811. *
  8812. * @param array $keys
  8813. * @return array
  8814. * @static
  8815. */
  8816. public static function only($keys){
  8817. //Method inherited from \Illuminate\Http\Request
  8818. return \Illuminate\Http\Request::only($keys);
  8819. }
  8820. /**
  8821. * Get all of the input except for a specified array of items.
  8822. *
  8823. * @param array $keys
  8824. * @return array
  8825. * @static
  8826. */
  8827. public static function except($keys){
  8828. //Method inherited from \Illuminate\Http\Request
  8829. return \Illuminate\Http\Request::except($keys);
  8830. }
  8831. /**
  8832. * Retrieve a query string item from the request.
  8833. *
  8834. * @param string $key
  8835. * @param mixed $default
  8836. * @return string
  8837. * @static
  8838. */
  8839. public static function query($key = null, $default = null){
  8840. //Method inherited from \Illuminate\Http\Request
  8841. return \Illuminate\Http\Request::query($key, $default);
  8842. }
  8843. /**
  8844. * Determine if a cookie is set on the request.
  8845. *
  8846. * @param string $key
  8847. * @return bool
  8848. * @static
  8849. */
  8850. public static function hasCookie($key){
  8851. //Method inherited from \Illuminate\Http\Request
  8852. return \Illuminate\Http\Request::hasCookie($key);
  8853. }
  8854. /**
  8855. * Retrieve a cookie from the request.
  8856. *
  8857. * @param string $key
  8858. * @param mixed $default
  8859. * @return string
  8860. * @static
  8861. */
  8862. public static function cookie($key = null, $default = null){
  8863. //Method inherited from \Illuminate\Http\Request
  8864. return \Illuminate\Http\Request::cookie($key, $default);
  8865. }
  8866. /**
  8867. * Retrieve a file from the request.
  8868. *
  8869. * @param string $key
  8870. * @param mixed $default
  8871. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  8872. * @static
  8873. */
  8874. public static function file($key = null, $default = null){
  8875. //Method inherited from \Illuminate\Http\Request
  8876. return \Illuminate\Http\Request::file($key, $default);
  8877. }
  8878. /**
  8879. * Determine if the uploaded data contains a file.
  8880. *
  8881. * @param string $key
  8882. * @return bool
  8883. * @static
  8884. */
  8885. public static function hasFile($key){
  8886. //Method inherited from \Illuminate\Http\Request
  8887. return \Illuminate\Http\Request::hasFile($key);
  8888. }
  8889. /**
  8890. * Retrieve a header from the request.
  8891. *
  8892. * @param string $key
  8893. * @param mixed $default
  8894. * @return string
  8895. * @static
  8896. */
  8897. public static function header($key = null, $default = null){
  8898. //Method inherited from \Illuminate\Http\Request
  8899. return \Illuminate\Http\Request::header($key, $default);
  8900. }
  8901. /**
  8902. * Retrieve a server variable from the request.
  8903. *
  8904. * @param string $key
  8905. * @param mixed $default
  8906. * @return string
  8907. * @static
  8908. */
  8909. public static function server($key = null, $default = null){
  8910. //Method inherited from \Illuminate\Http\Request
  8911. return \Illuminate\Http\Request::server($key, $default);
  8912. }
  8913. /**
  8914. * Retrieve an old input item.
  8915. *
  8916. * @param string $key
  8917. * @param mixed $default
  8918. * @return mixed
  8919. * @static
  8920. */
  8921. public static function old($key = null, $default = null){
  8922. //Method inherited from \Illuminate\Http\Request
  8923. return \Illuminate\Http\Request::old($key, $default);
  8924. }
  8925. /**
  8926. * Flash the input for the current request to the session.
  8927. *
  8928. * @param string $filter
  8929. * @param array $keys
  8930. * @return void
  8931. * @static
  8932. */
  8933. public static function flash($filter = null, $keys = array()){
  8934. //Method inherited from \Illuminate\Http\Request
  8935. \Illuminate\Http\Request::flash($filter, $keys);
  8936. }
  8937. /**
  8938. * Flash only some of the input to the session.
  8939. *
  8940. * @param dynamic string
  8941. * @return void
  8942. * @static
  8943. */
  8944. public static function flashOnly($keys){
  8945. //Method inherited from \Illuminate\Http\Request
  8946. \Illuminate\Http\Request::flashOnly($keys);
  8947. }
  8948. /**
  8949. * Flash only some of the input to the session.
  8950. *
  8951. * @param dynamic string
  8952. * @return void
  8953. * @static
  8954. */
  8955. public static function flashExcept($keys){
  8956. //Method inherited from \Illuminate\Http\Request
  8957. \Illuminate\Http\Request::flashExcept($keys);
  8958. }
  8959. /**
  8960. * Flush all of the old input from the session.
  8961. *
  8962. * @return void
  8963. * @static
  8964. */
  8965. public static function flush(){
  8966. //Method inherited from \Illuminate\Http\Request
  8967. \Illuminate\Http\Request::flush();
  8968. }
  8969. /**
  8970. * Merge new input into the current request's input array.
  8971. *
  8972. * @param array $input
  8973. * @return void
  8974. * @static
  8975. */
  8976. public static function merge($input){
  8977. //Method inherited from \Illuminate\Http\Request
  8978. \Illuminate\Http\Request::merge($input);
  8979. }
  8980. /**
  8981. * Replace the input for the current request.
  8982. *
  8983. * @param array $input
  8984. * @return void
  8985. * @static
  8986. */
  8987. public static function replace($input){
  8988. //Method inherited from \Illuminate\Http\Request
  8989. \Illuminate\Http\Request::replace($input);
  8990. }
  8991. /**
  8992. * Get the JSON payload for the request.
  8993. *
  8994. * @param string $key
  8995. * @param mixed $default
  8996. * @return mixed
  8997. * @static
  8998. */
  8999. public static function json($key = null, $default = null){
  9000. //Method inherited from \Illuminate\Http\Request
  9001. return \Illuminate\Http\Request::json($key, $default);
  9002. }
  9003. /**
  9004. * Determine if the request is sending JSON.
  9005. *
  9006. * @return bool
  9007. * @static
  9008. */
  9009. public static function isJson(){
  9010. //Method inherited from \Illuminate\Http\Request
  9011. return \Illuminate\Http\Request::isJson();
  9012. }
  9013. /**
  9014. * Determine if the current request is asking for JSON in return.
  9015. *
  9016. * @return bool
  9017. * @static
  9018. */
  9019. public static function wantsJson(){
  9020. //Method inherited from \Illuminate\Http\Request
  9021. return \Illuminate\Http\Request::wantsJson();
  9022. }
  9023. /**
  9024. * Get the data format expected in the response.
  9025. *
  9026. * @return string
  9027. * @static
  9028. */
  9029. public static function format($default = 'html'){
  9030. //Method inherited from \Illuminate\Http\Request
  9031. return \Illuminate\Http\Request::format($default);
  9032. }
  9033. /**
  9034. * Create an Illuminate request from a Symfony instance.
  9035. *
  9036. * @param \Symfony\Component\HttpFoundation\Request $request
  9037. * @return \Illuminate\Http\Request
  9038. * @static
  9039. */
  9040. public static function createFromBase($request){
  9041. //Method inherited from \Illuminate\Http\Request
  9042. return \Illuminate\Http\Request::createFromBase($request);
  9043. }
  9044. /**
  9045. * Get the session associated with the request.
  9046. *
  9047. * @return \Illuminate\Session\Store
  9048. * @throws \RuntimeException
  9049. * @static
  9050. */
  9051. public static function session(){
  9052. //Method inherited from \Illuminate\Http\Request
  9053. return \Illuminate\Http\Request::session();
  9054. }
  9055. /**
  9056. * Constructor.
  9057. *
  9058. * @param array $query The GET parameters
  9059. * @param array $request The POST parameters
  9060. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9061. * @param array $cookies The COOKIE parameters
  9062. * @param array $files The FILES parameters
  9063. * @param array $server The SERVER parameters
  9064. * @param string $content The raw body data
  9065. * @api
  9066. * @static
  9067. */
  9068. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  9069. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9070. \Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  9071. }
  9072. /**
  9073. * Sets the parameters for this request.
  9074. *
  9075. * This method also re-initializes all properties.
  9076. *
  9077. * @param array $query The GET parameters
  9078. * @param array $request The POST parameters
  9079. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9080. * @param array $cookies The COOKIE parameters
  9081. * @param array $files The FILES parameters
  9082. * @param array $server The SERVER parameters
  9083. * @param string $content The raw body data
  9084. * @api
  9085. * @static
  9086. */
  9087. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  9088. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9089. \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9090. }
  9091. /**
  9092. * Creates a new request with values from PHP's super globals.
  9093. *
  9094. * @return Request A new request
  9095. * @api
  9096. * @static
  9097. */
  9098. public static function createFromGlobals(){
  9099. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9100. return \Illuminate\Http\Request::createFromGlobals();
  9101. }
  9102. /**
  9103. * Creates a Request based on a given URI and configuration.
  9104. *
  9105. * The information contained in the URI always take precedence
  9106. * over the other information (server and parameters).
  9107. *
  9108. * @param string $uri The URI
  9109. * @param string $method The HTTP method
  9110. * @param array $parameters The query (GET) or request (POST) parameters
  9111. * @param array $cookies The request cookies ($_COOKIE)
  9112. * @param array $files The request files ($_FILES)
  9113. * @param array $server The server parameters ($_SERVER)
  9114. * @param string $content The raw body data
  9115. * @return Request A Request instance
  9116. * @api
  9117. * @static
  9118. */
  9119. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  9120. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9121. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9122. }
  9123. /**
  9124. * Sets a callable able to create a Request instance.
  9125. *
  9126. * This is mainly useful when you need to override the Request class
  9127. * to keep BC with an existing system. It should not be used for any
  9128. * other purpose.
  9129. *
  9130. * @param callable|null $callable A PHP callable
  9131. * @static
  9132. */
  9133. public static function setFactory($callable){
  9134. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9135. \Illuminate\Http\Request::setFactory($callable);
  9136. }
  9137. /**
  9138. * Clones a request and overrides some of its parameters.
  9139. *
  9140. * @param array $query The GET parameters
  9141. * @param array $request The POST parameters
  9142. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9143. * @param array $cookies The COOKIE parameters
  9144. * @param array $files The FILES parameters
  9145. * @param array $server The SERVER parameters
  9146. * @return Request The duplicated request
  9147. * @api
  9148. * @static
  9149. */
  9150. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  9151. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9152. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  9153. }
  9154. /**
  9155. * Returns the request as a string.
  9156. *
  9157. * @return string The request
  9158. * @static
  9159. */
  9160. public static function __toString(){
  9161. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9162. return \Illuminate\Http\Request::__toString();
  9163. }
  9164. /**
  9165. * Overrides the PHP global variables according to this request instance.
  9166. *
  9167. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9168. * $_FILES is never override, see rfc1867
  9169. *
  9170. * @api
  9171. * @static
  9172. */
  9173. public static function overrideGlobals(){
  9174. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9175. \Illuminate\Http\Request::overrideGlobals();
  9176. }
  9177. /**
  9178. * Sets a list of trusted proxies.
  9179. *
  9180. * You should only list the reverse proxies that you manage directly.
  9181. *
  9182. * @param array $proxies A list of trusted proxies
  9183. * @api
  9184. * @static
  9185. */
  9186. public static function setTrustedProxies($proxies){
  9187. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9188. \Illuminate\Http\Request::setTrustedProxies($proxies);
  9189. }
  9190. /**
  9191. * Gets the list of trusted proxies.
  9192. *
  9193. * @return array An array of trusted proxies.
  9194. * @static
  9195. */
  9196. public static function getTrustedProxies(){
  9197. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9198. return \Illuminate\Http\Request::getTrustedProxies();
  9199. }
  9200. /**
  9201. * Sets a list of trusted host patterns.
  9202. *
  9203. * You should only list the hosts you manage using regexs.
  9204. *
  9205. * @param array $hostPatterns A list of trusted host patterns
  9206. * @static
  9207. */
  9208. public static function setTrustedHosts($hostPatterns){
  9209. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9210. \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9211. }
  9212. /**
  9213. * Gets the list of trusted host patterns.
  9214. *
  9215. * @return array An array of trusted host patterns.
  9216. * @static
  9217. */
  9218. public static function getTrustedHosts(){
  9219. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9220. return \Illuminate\Http\Request::getTrustedHosts();
  9221. }
  9222. /**
  9223. * Sets the name for trusted headers.
  9224. *
  9225. * The following header keys are supported:
  9226. *
  9227. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  9228. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  9229. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  9230. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  9231. *
  9232. * Setting an empty value allows to disable the trusted header for the given key.
  9233. *
  9234. * @param string $key The header key
  9235. * @param string $value The header name
  9236. * @throws \InvalidArgumentException
  9237. * @static
  9238. */
  9239. public static function setTrustedHeaderName($key, $value){
  9240. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9241. \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  9242. }
  9243. /**
  9244. * Gets the trusted proxy header name.
  9245. *
  9246. * @param string $key The header key
  9247. * @return string The header name
  9248. * @throws \InvalidArgumentException
  9249. * @static
  9250. */
  9251. public static function getTrustedHeaderName($key){
  9252. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9253. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  9254. }
  9255. /**
  9256. * Normalizes a query string.
  9257. *
  9258. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9259. * have consistent escaping and unneeded delimiters are removed.
  9260. *
  9261. * @param string $qs Query string
  9262. * @return string A normalized query string for the Request
  9263. * @static
  9264. */
  9265. public static function normalizeQueryString($qs){
  9266. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9267. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9268. }
  9269. /**
  9270. * Enables support for the _method request parameter to determine the intended HTTP method.
  9271. *
  9272. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9273. * Check that you are using CSRF tokens when required.
  9274. *
  9275. * The HTTP method can only be overridden when the real HTTP method is POST.
  9276. *
  9277. * @static
  9278. */
  9279. public static function enableHttpMethodParameterOverride(){
  9280. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9281. \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9282. }
  9283. /**
  9284. * Checks whether support for the _method request parameter is enabled.
  9285. *
  9286. * @return bool True when the _method request parameter is enabled, false otherwise
  9287. * @static
  9288. */
  9289. public static function getHttpMethodParameterOverride(){
  9290. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9291. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9292. }
  9293. /**
  9294. * Gets a "parameter" value.
  9295. *
  9296. * This method is mainly useful for libraries that want to provide some flexibility.
  9297. *
  9298. * Order of precedence: GET, PATH, POST
  9299. *
  9300. * Avoid using this method in controllers:
  9301. *
  9302. * * slow
  9303. * * prefer to get from a "named" source
  9304. *
  9305. * It is better to explicitly get request parameters from the appropriate
  9306. * public property instead (query, attributes, request).
  9307. *
  9308. * @param string $key the key
  9309. * @param mixed $default the default value
  9310. * @param bool $deep is parameter deep in multidimensional array
  9311. * @return mixed
  9312. * @static
  9313. */
  9314. public static function get($key, $default = null, $deep = false){
  9315. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9316. return \Illuminate\Http\Request::get($key, $default, $deep);
  9317. }
  9318. /**
  9319. * Gets the Session.
  9320. *
  9321. * @return SessionInterface|null The session
  9322. * @api
  9323. * @static
  9324. */
  9325. public static function getSession(){
  9326. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9327. return \Illuminate\Http\Request::getSession();
  9328. }
  9329. /**
  9330. * Whether the request contains a Session which was started in one of the
  9331. * previous requests.
  9332. *
  9333. * @return bool
  9334. * @api
  9335. * @static
  9336. */
  9337. public static function hasPreviousSession(){
  9338. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9339. return \Illuminate\Http\Request::hasPreviousSession();
  9340. }
  9341. /**
  9342. * Whether the request contains a Session object.
  9343. *
  9344. * This method does not give any information about the state of the session object,
  9345. * like whether the session is started or not. It is just a way to check if this Request
  9346. * is associated with a Session instance.
  9347. *
  9348. * @return bool true when the Request contains a Session object, false otherwise
  9349. * @api
  9350. * @static
  9351. */
  9352. public static function hasSession(){
  9353. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9354. return \Illuminate\Http\Request::hasSession();
  9355. }
  9356. /**
  9357. * Sets the Session.
  9358. *
  9359. * @param SessionInterface $session The Session
  9360. * @api
  9361. * @static
  9362. */
  9363. public static function setSession($session){
  9364. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9365. \Illuminate\Http\Request::setSession($session);
  9366. }
  9367. /**
  9368. * Returns the client IP addresses.
  9369. *
  9370. * In the returned array the most trusted IP address is first, and the
  9371. * least trusted one last. The "real" client IP address is the last one,
  9372. * but this is also the least trusted one. Trusted proxies are stripped.
  9373. *
  9374. * Use this method carefully; you should use getClientIp() instead.
  9375. *
  9376. * @return array The client IP addresses
  9377. * @see getClientIp()
  9378. * @static
  9379. */
  9380. public static function getClientIps(){
  9381. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9382. return \Illuminate\Http\Request::getClientIps();
  9383. }
  9384. /**
  9385. * Returns the client IP address.
  9386. *
  9387. * This method can read the client IP address from the "X-Forwarded-For" header
  9388. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  9389. * header value is a comma+space separated list of IP addresses, the left-most
  9390. * being the original client, and each successive proxy that passed the request
  9391. * adding the IP address where it received the request from.
  9392. *
  9393. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  9394. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  9395. * the "client-ip" key.
  9396. *
  9397. * @return string The client IP address
  9398. * @see getClientIps()
  9399. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  9400. * @api
  9401. * @static
  9402. */
  9403. public static function getClientIp(){
  9404. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9405. return \Illuminate\Http\Request::getClientIp();
  9406. }
  9407. /**
  9408. * Returns current script name.
  9409. *
  9410. * @return string
  9411. * @api
  9412. * @static
  9413. */
  9414. public static function getScriptName(){
  9415. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9416. return \Illuminate\Http\Request::getScriptName();
  9417. }
  9418. /**
  9419. * Returns the path being requested relative to the executed script.
  9420. *
  9421. * The path info always starts with a /.
  9422. *
  9423. * Suppose this request is instantiated from /mysite on localhost:
  9424. *
  9425. * * http://localhost/mysite returns an empty string
  9426. * * http://localhost/mysite/about returns '/about'
  9427. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  9428. * * http://localhost/mysite/about?var=1 returns '/about'
  9429. *
  9430. * @return string The raw path (i.e. not urldecoded)
  9431. * @api
  9432. * @static
  9433. */
  9434. public static function getPathInfo(){
  9435. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9436. return \Illuminate\Http\Request::getPathInfo();
  9437. }
  9438. /**
  9439. * Returns the root path from which this request is executed.
  9440. *
  9441. * Suppose that an index.php file instantiates this request object:
  9442. *
  9443. * * http://localhost/index.php returns an empty string
  9444. * * http://localhost/index.php/page returns an empty string
  9445. * * http://localhost/web/index.php returns '/web'
  9446. * * http://localhost/we%20b/index.php returns '/we%20b'
  9447. *
  9448. * @return string The raw path (i.e. not urldecoded)
  9449. * @api
  9450. * @static
  9451. */
  9452. public static function getBasePath(){
  9453. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9454. return \Illuminate\Http\Request::getBasePath();
  9455. }
  9456. /**
  9457. * Returns the root URL from which this request is executed.
  9458. *
  9459. * The base URL never ends with a /.
  9460. *
  9461. * This is similar to getBasePath(), except that it also includes the
  9462. * script filename (e.g. index.php) if one exists.
  9463. *
  9464. * @return string The raw URL (i.e. not urldecoded)
  9465. * @api
  9466. * @static
  9467. */
  9468. public static function getBaseUrl(){
  9469. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9470. return \Illuminate\Http\Request::getBaseUrl();
  9471. }
  9472. /**
  9473. * Gets the request's scheme.
  9474. *
  9475. * @return string
  9476. * @api
  9477. * @static
  9478. */
  9479. public static function getScheme(){
  9480. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9481. return \Illuminate\Http\Request::getScheme();
  9482. }
  9483. /**
  9484. * Returns the port on which the request is made.
  9485. *
  9486. * This method can read the client port from the "X-Forwarded-Port" header
  9487. * when trusted proxies were set via "setTrustedProxies()".
  9488. *
  9489. * The "X-Forwarded-Port" header must contain the client port.
  9490. *
  9491. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  9492. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  9493. *
  9494. * @return string
  9495. * @api
  9496. * @static
  9497. */
  9498. public static function getPort(){
  9499. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9500. return \Illuminate\Http\Request::getPort();
  9501. }
  9502. /**
  9503. * Returns the user.
  9504. *
  9505. * @return string|null
  9506. * @static
  9507. */
  9508. public static function getUser(){
  9509. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9510. return \Illuminate\Http\Request::getUser();
  9511. }
  9512. /**
  9513. * Returns the password.
  9514. *
  9515. * @return string|null
  9516. * @static
  9517. */
  9518. public static function getPassword(){
  9519. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9520. return \Illuminate\Http\Request::getPassword();
  9521. }
  9522. /**
  9523. * Gets the user info.
  9524. *
  9525. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  9526. * @static
  9527. */
  9528. public static function getUserInfo(){
  9529. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9530. return \Illuminate\Http\Request::getUserInfo();
  9531. }
  9532. /**
  9533. * Returns the HTTP host being requested.
  9534. *
  9535. * The port name will be appended to the host if it's non-standard.
  9536. *
  9537. * @return string
  9538. * @api
  9539. * @static
  9540. */
  9541. public static function getHttpHost(){
  9542. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9543. return \Illuminate\Http\Request::getHttpHost();
  9544. }
  9545. /**
  9546. * Returns the requested URI.
  9547. *
  9548. * @return string The raw URI (i.e. not urldecoded)
  9549. * @api
  9550. * @static
  9551. */
  9552. public static function getRequestUri(){
  9553. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9554. return \Illuminate\Http\Request::getRequestUri();
  9555. }
  9556. /**
  9557. * Gets the scheme and HTTP host.
  9558. *
  9559. * If the URL was called with basic authentication, the user
  9560. * and the password are not added to the generated string.
  9561. *
  9562. * @return string The scheme and HTTP host
  9563. * @static
  9564. */
  9565. public static function getSchemeAndHttpHost(){
  9566. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9567. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  9568. }
  9569. /**
  9570. * Generates a normalized URI for the Request.
  9571. *
  9572. * @return string A normalized URI for the Request
  9573. * @see getQueryString()
  9574. * @api
  9575. * @static
  9576. */
  9577. public static function getUri(){
  9578. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9579. return \Illuminate\Http\Request::getUri();
  9580. }
  9581. /**
  9582. * Generates a normalized URI for the given path.
  9583. *
  9584. * @param string $path A path to use instead of the current one
  9585. * @return string The normalized URI for the path
  9586. * @api
  9587. * @static
  9588. */
  9589. public static function getUriForPath($path){
  9590. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9591. return \Illuminate\Http\Request::getUriForPath($path);
  9592. }
  9593. /**
  9594. * Generates the normalized query string for the Request.
  9595. *
  9596. * It builds a normalized query string, where keys/value pairs are alphabetized
  9597. * and have consistent escaping.
  9598. *
  9599. * @return string|null A normalized query string for the Request
  9600. * @api
  9601. * @static
  9602. */
  9603. public static function getQueryString(){
  9604. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9605. return \Illuminate\Http\Request::getQueryString();
  9606. }
  9607. /**
  9608. * Checks whether the request is secure or not.
  9609. *
  9610. * This method can read the client port from the "X-Forwarded-Proto" header
  9611. * when trusted proxies were set via "setTrustedProxies()".
  9612. *
  9613. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  9614. *
  9615. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  9616. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  9617. * the "client-proto" key.
  9618. *
  9619. * @return bool
  9620. * @api
  9621. * @static
  9622. */
  9623. public static function isSecure(){
  9624. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9625. return \Illuminate\Http\Request::isSecure();
  9626. }
  9627. /**
  9628. * Returns the host name.
  9629. *
  9630. * This method can read the client port from the "X-Forwarded-Host" header
  9631. * when trusted proxies were set via "setTrustedProxies()".
  9632. *
  9633. * The "X-Forwarded-Host" header must contain the client host name.
  9634. *
  9635. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  9636. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  9637. *
  9638. * @return string
  9639. * @throws \UnexpectedValueException when the host name is invalid
  9640. * @api
  9641. * @static
  9642. */
  9643. public static function getHost(){
  9644. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9645. return \Illuminate\Http\Request::getHost();
  9646. }
  9647. /**
  9648. * Sets the request method.
  9649. *
  9650. * @param string $method
  9651. * @api
  9652. * @static
  9653. */
  9654. public static function setMethod($method){
  9655. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9656. \Illuminate\Http\Request::setMethod($method);
  9657. }
  9658. /**
  9659. * Gets the request "intended" method.
  9660. *
  9661. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  9662. * then it is used to determine the "real" intended HTTP method.
  9663. *
  9664. * The _method request parameter can also be used to determine the HTTP method,
  9665. * but only if enableHttpMethodParameterOverride() has been called.
  9666. *
  9667. * The method is always an uppercased string.
  9668. *
  9669. * @return string The request method
  9670. * @api
  9671. * @see getRealMethod
  9672. * @static
  9673. */
  9674. public static function getMethod(){
  9675. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9676. return \Illuminate\Http\Request::getMethod();
  9677. }
  9678. /**
  9679. * Gets the "real" request method.
  9680. *
  9681. * @return string The request method
  9682. * @see getMethod
  9683. * @static
  9684. */
  9685. public static function getRealMethod(){
  9686. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9687. return \Illuminate\Http\Request::getRealMethod();
  9688. }
  9689. /**
  9690. * Gets the mime type associated with the format.
  9691. *
  9692. * @param string $format The format
  9693. * @return string The associated mime type (null if not found)
  9694. * @api
  9695. * @static
  9696. */
  9697. public static function getMimeType($format){
  9698. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9699. return \Illuminate\Http\Request::getMimeType($format);
  9700. }
  9701. /**
  9702. * Gets the format associated with the mime type.
  9703. *
  9704. * @param string $mimeType The associated mime type
  9705. * @return string|null The format (null if not found)
  9706. * @api
  9707. * @static
  9708. */
  9709. public static function getFormat($mimeType){
  9710. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9711. return \Illuminate\Http\Request::getFormat($mimeType);
  9712. }
  9713. /**
  9714. * Associates a format with mime types.
  9715. *
  9716. * @param string $format The format
  9717. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  9718. * @api
  9719. * @static
  9720. */
  9721. public static function setFormat($format, $mimeTypes){
  9722. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9723. \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  9724. }
  9725. /**
  9726. * Gets the request format.
  9727. *
  9728. * Here is the process to determine the format:
  9729. *
  9730. * * format defined by the user (with setRequestFormat())
  9731. * * _format request parameter
  9732. * * $default
  9733. *
  9734. * @param string $default The default format
  9735. * @return string The request format
  9736. * @api
  9737. * @static
  9738. */
  9739. public static function getRequestFormat($default = 'html'){
  9740. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9741. return \Illuminate\Http\Request::getRequestFormat($default);
  9742. }
  9743. /**
  9744. * Sets the request format.
  9745. *
  9746. * @param string $format The request format.
  9747. * @api
  9748. * @static
  9749. */
  9750. public static function setRequestFormat($format){
  9751. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9752. \Illuminate\Http\Request::setRequestFormat($format);
  9753. }
  9754. /**
  9755. * Gets the format associated with the request.
  9756. *
  9757. * @return string|null The format (null if no content type is present)
  9758. * @api
  9759. * @static
  9760. */
  9761. public static function getContentType(){
  9762. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9763. return \Illuminate\Http\Request::getContentType();
  9764. }
  9765. /**
  9766. * Sets the default locale.
  9767. *
  9768. * @param string $locale
  9769. * @api
  9770. * @static
  9771. */
  9772. public static function setDefaultLocale($locale){
  9773. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9774. \Illuminate\Http\Request::setDefaultLocale($locale);
  9775. }
  9776. /**
  9777. * Sets the locale.
  9778. *
  9779. * @param string $locale
  9780. * @api
  9781. * @static
  9782. */
  9783. public static function setLocale($locale){
  9784. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9785. \Illuminate\Http\Request::setLocale($locale);
  9786. }
  9787. /**
  9788. * Get the locale.
  9789. *
  9790. * @return string
  9791. * @static
  9792. */
  9793. public static function getLocale(){
  9794. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9795. return \Illuminate\Http\Request::getLocale();
  9796. }
  9797. /**
  9798. * Checks if the request method is of specified type.
  9799. *
  9800. * @param string $method Uppercase request method (GET, POST etc).
  9801. * @return bool
  9802. * @static
  9803. */
  9804. public static function isMethod($method){
  9805. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9806. return \Illuminate\Http\Request::isMethod($method);
  9807. }
  9808. /**
  9809. * Checks whether the method is safe or not.
  9810. *
  9811. * @return bool
  9812. * @api
  9813. * @static
  9814. */
  9815. public static function isMethodSafe(){
  9816. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9817. return \Illuminate\Http\Request::isMethodSafe();
  9818. }
  9819. /**
  9820. * Returns the request body content.
  9821. *
  9822. * @param bool $asResource If true, a resource will be returned
  9823. * @return string|resource The request body content or a resource to read the body stream.
  9824. * @throws \LogicException
  9825. * @static
  9826. */
  9827. public static function getContent($asResource = false){
  9828. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9829. return \Illuminate\Http\Request::getContent($asResource);
  9830. }
  9831. /**
  9832. * Gets the Etags.
  9833. *
  9834. * @return array The entity tags
  9835. * @static
  9836. */
  9837. public static function getETags(){
  9838. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9839. return \Illuminate\Http\Request::getETags();
  9840. }
  9841. /**
  9842. *
  9843. *
  9844. * @return bool
  9845. * @static
  9846. */
  9847. public static function isNoCache(){
  9848. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9849. return \Illuminate\Http\Request::isNoCache();
  9850. }
  9851. /**
  9852. * Returns the preferred language.
  9853. *
  9854. * @param array $locales An array of ordered available locales
  9855. * @return string|null The preferred locale
  9856. * @api
  9857. * @static
  9858. */
  9859. public static function getPreferredLanguage($locales = null){
  9860. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9861. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  9862. }
  9863. /**
  9864. * Gets a list of languages acceptable by the client browser.
  9865. *
  9866. * @return array Languages ordered in the user browser preferences
  9867. * @api
  9868. * @static
  9869. */
  9870. public static function getLanguages(){
  9871. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9872. return \Illuminate\Http\Request::getLanguages();
  9873. }
  9874. /**
  9875. * Gets a list of charsets acceptable by the client browser.
  9876. *
  9877. * @return array List of charsets in preferable order
  9878. * @api
  9879. * @static
  9880. */
  9881. public static function getCharsets(){
  9882. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9883. return \Illuminate\Http\Request::getCharsets();
  9884. }
  9885. /**
  9886. * Gets a list of encodings acceptable by the client browser.
  9887. *
  9888. * @return array List of encodings in preferable order
  9889. * @static
  9890. */
  9891. public static function getEncodings(){
  9892. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9893. return \Illuminate\Http\Request::getEncodings();
  9894. }
  9895. /**
  9896. * Gets a list of content types acceptable by the client browser
  9897. *
  9898. * @return array List of content types in preferable order
  9899. * @api
  9900. * @static
  9901. */
  9902. public static function getAcceptableContentTypes(){
  9903. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9904. return \Illuminate\Http\Request::getAcceptableContentTypes();
  9905. }
  9906. /**
  9907. * Returns true if the request is a XMLHttpRequest.
  9908. *
  9909. * It works if your JavaScript library set an X-Requested-With HTTP header.
  9910. * It is known to work with common JavaScript frameworks:
  9911. *
  9912. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9913. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9914. * @api
  9915. * @static
  9916. */
  9917. public static function isXmlHttpRequest(){
  9918. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9919. return \Illuminate\Http\Request::isXmlHttpRequest();
  9920. }
  9921. }
  9922. class Response extends \Illuminate\Support\Facades\Response{
  9923. }
  9924. class Route extends \Illuminate\Support\Facades\Route{
  9925. /**
  9926. * Create a new Router instance.
  9927. *
  9928. * @param \Illuminate\Events\Dispatcher $events
  9929. * @param \Illuminate\Container\Container $container
  9930. * @return void
  9931. * @static
  9932. */
  9933. public static function __construct($events, $container = null){
  9934. //Method inherited from \Illuminate\Routing\Router
  9935. \Illuminate\Routing\Router::__construct($events, $container);
  9936. }
  9937. /**
  9938. * Register a new GET route with the router.
  9939. *
  9940. * @param string $uri
  9941. * @param \Closure|array|string $action
  9942. * @return \Illuminate\Routing\Route
  9943. * @static
  9944. */
  9945. public static function get($uri, $action){
  9946. //Method inherited from \Illuminate\Routing\Router
  9947. return \Illuminate\Routing\Router::get($uri, $action);
  9948. }
  9949. /**
  9950. * Register a new POST route with the router.
  9951. *
  9952. * @param string $uri
  9953. * @param \Closure|array|string $action
  9954. * @return \Illuminate\Routing\Route
  9955. * @static
  9956. */
  9957. public static function post($uri, $action){
  9958. //Method inherited from \Illuminate\Routing\Router
  9959. return \Illuminate\Routing\Router::post($uri, $action);
  9960. }
  9961. /**
  9962. * Register a new PUT route with the router.
  9963. *
  9964. * @param string $uri
  9965. * @param \Closure|array|string $action
  9966. * @return \Illuminate\Routing\Route
  9967. * @static
  9968. */
  9969. public static function put($uri, $action){
  9970. //Method inherited from \Illuminate\Routing\Router
  9971. return \Illuminate\Routing\Router::put($uri, $action);
  9972. }
  9973. /**
  9974. * Register a new PATCH route with the router.
  9975. *
  9976. * @param string $uri
  9977. * @param \Closure|array|string $action
  9978. * @return \Illuminate\Routing\Route
  9979. * @static
  9980. */
  9981. public static function patch($uri, $action){
  9982. //Method inherited from \Illuminate\Routing\Router
  9983. return \Illuminate\Routing\Router::patch($uri, $action);
  9984. }
  9985. /**
  9986. * Register a new DELETE route with the router.
  9987. *
  9988. * @param string $uri
  9989. * @param \Closure|array|string $action
  9990. * @return \Illuminate\Routing\Route
  9991. * @static
  9992. */
  9993. public static function delete($uri, $action){
  9994. //Method inherited from \Illuminate\Routing\Router
  9995. return \Illuminate\Routing\Router::delete($uri, $action);
  9996. }
  9997. /**
  9998. * Register a new OPTIONS route with the router.
  9999. *
  10000. * @param string $uri
  10001. * @param \Closure|array|string $action
  10002. * @return \Illuminate\Routing\Route
  10003. * @static
  10004. */
  10005. public static function options($uri, $action){
  10006. //Method inherited from \Illuminate\Routing\Router
  10007. return \Illuminate\Routing\Router::options($uri, $action);
  10008. }
  10009. /**
  10010. * Register a new route responding to all verbs.
  10011. *
  10012. * @param string $uri
  10013. * @param \Closure|array|string $action
  10014. * @return \Illuminate\Routing\Route
  10015. * @static
  10016. */
  10017. public static function any($uri, $action){
  10018. //Method inherited from \Illuminate\Routing\Router
  10019. return \Illuminate\Routing\Router::any($uri, $action);
  10020. }
  10021. /**
  10022. * Register a new route with the given verbs.
  10023. *
  10024. * @param array|string $methods
  10025. * @param string $uri
  10026. * @param \Closure|array|string $action
  10027. * @return \Illuminate\Routing\Route
  10028. * @static
  10029. */
  10030. public static function match($methods, $uri, $action){
  10031. //Method inherited from \Illuminate\Routing\Router
  10032. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  10033. }
  10034. /**
  10035. * Register an array of controllers with wildcard routing.
  10036. *
  10037. * @param array $controllers
  10038. * @return void
  10039. * @static
  10040. */
  10041. public static function controllers($controllers){
  10042. //Method inherited from \Illuminate\Routing\Router
  10043. \Illuminate\Routing\Router::controllers($controllers);
  10044. }
  10045. /**
  10046. * Route a controller to a URI with wildcard routing.
  10047. *
  10048. * @param string $uri
  10049. * @param string $controller
  10050. * @param array $names
  10051. * @return void
  10052. * @static
  10053. */
  10054. public static function controller($uri, $controller, $names = array()){
  10055. //Method inherited from \Illuminate\Routing\Router
  10056. \Illuminate\Routing\Router::controller($uri, $controller, $names);
  10057. }
  10058. /**
  10059. * Route a resource to a controller.
  10060. *
  10061. * @param string $name
  10062. * @param string $controller
  10063. * @param array $options
  10064. * @return void
  10065. * @static
  10066. */
  10067. public static function resource($name, $controller, $options = array()){
  10068. //Method inherited from \Illuminate\Routing\Router
  10069. \Illuminate\Routing\Router::resource($name, $controller, $options);
  10070. }
  10071. /**
  10072. * Get the base resource URI for a given resource.
  10073. *
  10074. * @param string $resource
  10075. * @return string
  10076. * @static
  10077. */
  10078. public static function getResourceUri($resource){
  10079. //Method inherited from \Illuminate\Routing\Router
  10080. return \Illuminate\Routing\Router::getResourceUri($resource);
  10081. }
  10082. /**
  10083. * Format a resource wildcard for usage.
  10084. *
  10085. * @param string $value
  10086. * @return string
  10087. * @static
  10088. */
  10089. public static function getResourceWildcard($value){
  10090. //Method inherited from \Illuminate\Routing\Router
  10091. return \Illuminate\Routing\Router::getResourceWildcard($value);
  10092. }
  10093. /**
  10094. * Create a route group with shared attributes.
  10095. *
  10096. * @param array $attributes
  10097. * @param Closure $callback
  10098. * @return void
  10099. * @static
  10100. */
  10101. public static function group($attributes, $callback){
  10102. //Method inherited from \Illuminate\Routing\Router
  10103. \Illuminate\Routing\Router::group($attributes, $callback);
  10104. }
  10105. /**
  10106. * Merge the given array with the last group stack.
  10107. *
  10108. * @param array $new
  10109. * @return array
  10110. * @static
  10111. */
  10112. public static function mergeWithLastGroup($new){
  10113. //Method inherited from \Illuminate\Routing\Router
  10114. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  10115. }
  10116. /**
  10117. * Merge the given group attributes.
  10118. *
  10119. * @param array $new
  10120. * @param array $old
  10121. * @return array
  10122. * @static
  10123. */
  10124. public static function mergeGroup($new, $old){
  10125. //Method inherited from \Illuminate\Routing\Router
  10126. return \Illuminate\Routing\Router::mergeGroup($new, $old);
  10127. }
  10128. /**
  10129. * Dispatch the request to the application.
  10130. *
  10131. * @param \Illuminate\Http\Request $request
  10132. * @return \Illuminate\Http\Response
  10133. * @static
  10134. */
  10135. public static function dispatch($request){
  10136. //Method inherited from \Illuminate\Routing\Router
  10137. return \Illuminate\Routing\Router::dispatch($request);
  10138. }
  10139. /**
  10140. * Dispatch the request to a route and return the response.
  10141. *
  10142. * @param \Illuminate\Http\Request $request
  10143. * @return mixed
  10144. * @static
  10145. */
  10146. public static function dispatchToRoute($request){
  10147. //Method inherited from \Illuminate\Routing\Router
  10148. return \Illuminate\Routing\Router::dispatchToRoute($request);
  10149. }
  10150. /**
  10151. * Register a route matched event listener.
  10152. *
  10153. * @param callable $callback
  10154. * @return void
  10155. * @static
  10156. */
  10157. public static function matched($callback){
  10158. //Method inherited from \Illuminate\Routing\Router
  10159. \Illuminate\Routing\Router::matched($callback);
  10160. }
  10161. /**
  10162. * Register a new "before" filter with the router.
  10163. *
  10164. * @param mixed $callback
  10165. * @return void
  10166. * @static
  10167. */
  10168. public static function before($callback){
  10169. //Method inherited from \Illuminate\Routing\Router
  10170. \Illuminate\Routing\Router::before($callback);
  10171. }
  10172. /**
  10173. * Register a new "after" filter with the router.
  10174. *
  10175. * @param mixed $callback
  10176. * @return void
  10177. * @static
  10178. */
  10179. public static function after($callback){
  10180. //Method inherited from \Illuminate\Routing\Router
  10181. \Illuminate\Routing\Router::after($callback);
  10182. }
  10183. /**
  10184. * Register a new filter with the router.
  10185. *
  10186. * @param string $name
  10187. * @param mixed $callback
  10188. * @return void
  10189. * @static
  10190. */
  10191. public static function filter($name, $callback){
  10192. //Method inherited from \Illuminate\Routing\Router
  10193. \Illuminate\Routing\Router::filter($name, $callback);
  10194. }
  10195. /**
  10196. * Register a pattern-based filter with the router.
  10197. *
  10198. * @param string $pattern
  10199. * @param string $name
  10200. * @param array|null $methods
  10201. * @static
  10202. */
  10203. public static function when($pattern, $name, $methods = null){
  10204. //Method inherited from \Illuminate\Routing\Router
  10205. \Illuminate\Routing\Router::when($pattern, $name, $methods);
  10206. }
  10207. /**
  10208. * Register a regular expression based filter with the router.
  10209. *
  10210. * @param string $pattern
  10211. * @param string $name
  10212. * @param array|null $methods
  10213. * @return void
  10214. * @static
  10215. */
  10216. public static function whenRegex($pattern, $name, $methods = null){
  10217. //Method inherited from \Illuminate\Routing\Router
  10218. \Illuminate\Routing\Router::whenRegex($pattern, $name, $methods);
  10219. }
  10220. /**
  10221. * Register a model binder for a wildcard.
  10222. *
  10223. * @param string $key
  10224. * @param string $class
  10225. * @param \Closure $callback
  10226. * @return void
  10227. * @throws NotFoundHttpException
  10228. * @static
  10229. */
  10230. public static function model($key, $class, $callback = null){
  10231. //Method inherited from \Illuminate\Routing\Router
  10232. \Illuminate\Routing\Router::model($key, $class, $callback);
  10233. }
  10234. /**
  10235. * Add a new route parameter binder.
  10236. *
  10237. * @param string $key
  10238. * @param callable $binder
  10239. * @return void
  10240. * @static
  10241. */
  10242. public static function bind($key, $binder){
  10243. //Method inherited from \Illuminate\Routing\Router
  10244. \Illuminate\Routing\Router::bind($key, $binder);
  10245. }
  10246. /**
  10247. * Set a global where pattern on all routes
  10248. *
  10249. * @param string $key
  10250. * @param string $pattern
  10251. * @return void
  10252. * @static
  10253. */
  10254. public static function pattern($key, $pattern){
  10255. //Method inherited from \Illuminate\Routing\Router
  10256. \Illuminate\Routing\Router::pattern($key, $pattern);
  10257. }
  10258. /**
  10259. * Call the given route's before filters.
  10260. *
  10261. * @param \Illuminate\Routing\Route $route
  10262. * @param \Illuminate\Http\Request $request
  10263. * @return mixed
  10264. * @static
  10265. */
  10266. public static function callRouteBefore($route, $request){
  10267. //Method inherited from \Illuminate\Routing\Router
  10268. return \Illuminate\Routing\Router::callRouteBefore($route, $request);
  10269. }
  10270. /**
  10271. * Find the patterned filters matching a request.
  10272. *
  10273. * @param \Illuminate\Http\Request $request
  10274. * @return array
  10275. * @static
  10276. */
  10277. public static function findPatternFilters($request){
  10278. //Method inherited from \Illuminate\Routing\Router
  10279. return \Illuminate\Routing\Router::findPatternFilters($request);
  10280. }
  10281. /**
  10282. * Call the given route's before filters.
  10283. *
  10284. * @param \Illuminate\Routing\Route $route
  10285. * @param \Illuminate\Http\Request $request
  10286. * @param \Illuminate\Http\Response $response
  10287. * @return mixed
  10288. * @static
  10289. */
  10290. public static function callRouteAfter($route, $request, $response){
  10291. //Method inherited from \Illuminate\Routing\Router
  10292. return \Illuminate\Routing\Router::callRouteAfter($route, $request, $response);
  10293. }
  10294. /**
  10295. * Call the given route filter.
  10296. *
  10297. * @param string $filter
  10298. * @param array $parameters
  10299. * @param \Illuminate\Routing\Route $route
  10300. * @param \Illuminate\Http\Request $request
  10301. * @param \Illuminate\Http\Response|null $response
  10302. * @return mixed
  10303. * @static
  10304. */
  10305. public static function callRouteFilter($filter, $parameters, $route, $request, $response = null){
  10306. //Method inherited from \Illuminate\Routing\Router
  10307. return \Illuminate\Routing\Router::callRouteFilter($filter, $parameters, $route, $request, $response);
  10308. }
  10309. /**
  10310. * Run a callback with filters disable on the router.
  10311. *
  10312. * @param callable $callback
  10313. * @return void
  10314. * @static
  10315. */
  10316. public static function withoutFilters($callback){
  10317. //Method inherited from \Illuminate\Routing\Router
  10318. \Illuminate\Routing\Router::withoutFilters($callback);
  10319. }
  10320. /**
  10321. * Enable route filtering on the router.
  10322. *
  10323. * @return void
  10324. * @static
  10325. */
  10326. public static function enableFilters(){
  10327. //Method inherited from \Illuminate\Routing\Router
  10328. \Illuminate\Routing\Router::enableFilters();
  10329. }
  10330. /**
  10331. * Disable route filtering on the router.
  10332. *
  10333. * @return void
  10334. * @static
  10335. */
  10336. public static function disableFilters(){
  10337. //Method inherited from \Illuminate\Routing\Router
  10338. \Illuminate\Routing\Router::disableFilters();
  10339. }
  10340. /**
  10341. * Get a route parameter for the current route.
  10342. *
  10343. * @param string $key
  10344. * @param string $default
  10345. * @return mixed
  10346. * @static
  10347. */
  10348. public static function input($key, $default = null){
  10349. //Method inherited from \Illuminate\Routing\Router
  10350. return \Illuminate\Routing\Router::input($key, $default);
  10351. }
  10352. /**
  10353. * Get the currently dispatched route instance.
  10354. *
  10355. * @return \Illuminate\Routing\Route
  10356. * @static
  10357. */
  10358. public static function getCurrentRoute(){
  10359. //Method inherited from \Illuminate\Routing\Router
  10360. return \Illuminate\Routing\Router::getCurrentRoute();
  10361. }
  10362. /**
  10363. * Get the currently dispatched route instance.
  10364. *
  10365. * @return \Illuminate\Routing\Route
  10366. * @static
  10367. */
  10368. public static function current(){
  10369. //Method inherited from \Illuminate\Routing\Router
  10370. return \Illuminate\Routing\Router::current();
  10371. }
  10372. /**
  10373. * Get the current route name.
  10374. *
  10375. * @return string|null
  10376. * @static
  10377. */
  10378. public static function currentRouteName(){
  10379. //Method inherited from \Illuminate\Routing\Router
  10380. return \Illuminate\Routing\Router::currentRouteName();
  10381. }
  10382. /**
  10383. * Determine if the current route matches a given name.
  10384. *
  10385. * @param string $name
  10386. * @return bool
  10387. * @static
  10388. */
  10389. public static function currentRouteNamed($name){
  10390. //Method inherited from \Illuminate\Routing\Router
  10391. return \Illuminate\Routing\Router::currentRouteNamed($name);
  10392. }
  10393. /**
  10394. * Get the current route action.
  10395. *
  10396. * @return string|null
  10397. * @static
  10398. */
  10399. public static function currentRouteAction(){
  10400. //Method inherited from \Illuminate\Routing\Router
  10401. return \Illuminate\Routing\Router::currentRouteAction();
  10402. }
  10403. /**
  10404. * Determine if the current route action matches a given action.
  10405. *
  10406. * @param string $action
  10407. * @return bool
  10408. * @static
  10409. */
  10410. public static function currentRouteUses($action){
  10411. //Method inherited from \Illuminate\Routing\Router
  10412. return \Illuminate\Routing\Router::currentRouteUses($action);
  10413. }
  10414. /**
  10415. * Get the request currently being dispatched.
  10416. *
  10417. * @return \Illuminate\Http\Request
  10418. * @static
  10419. */
  10420. public static function getCurrentRequest(){
  10421. //Method inherited from \Illuminate\Routing\Router
  10422. return \Illuminate\Routing\Router::getCurrentRequest();
  10423. }
  10424. /**
  10425. * Get the underlying route collection.
  10426. *
  10427. * @return \Illuminate\Routing\RouteCollection
  10428. * @static
  10429. */
  10430. public static function getRoutes(){
  10431. //Method inherited from \Illuminate\Routing\Router
  10432. return \Illuminate\Routing\Router::getRoutes();
  10433. }
  10434. /**
  10435. * Get the controller dispatcher instance.
  10436. *
  10437. * @return \Illuminate\Routing\ControllerDispatcher
  10438. * @static
  10439. */
  10440. public static function getControllerDispatcher(){
  10441. //Method inherited from \Illuminate\Routing\Router
  10442. return \Illuminate\Routing\Router::getControllerDispatcher();
  10443. }
  10444. /**
  10445. * Set the controller dispatcher instance.
  10446. *
  10447. * @param \Illuminate\Routing\ControllerDispatcher $dispatcher
  10448. * @return void
  10449. * @static
  10450. */
  10451. public static function setControllerDispatcher($dispatcher){
  10452. //Method inherited from \Illuminate\Routing\Router
  10453. \Illuminate\Routing\Router::setControllerDispatcher($dispatcher);
  10454. }
  10455. /**
  10456. * Get a controller inspector instance.
  10457. *
  10458. * @return \Illuminate\Routing\ControllerInspector
  10459. * @static
  10460. */
  10461. public static function getInspector(){
  10462. //Method inherited from \Illuminate\Routing\Router
  10463. return \Illuminate\Routing\Router::getInspector();
  10464. }
  10465. /**
  10466. * Get the response for a given request.
  10467. *
  10468. * @param \Symfony\Component\HttpFoundation\Request $request
  10469. * @return \Symfony\Component\HttpFoundation\Response
  10470. * @static
  10471. */
  10472. public static function handle($request, $type = 1, $catch = true){
  10473. //Method inherited from \Illuminate\Routing\Router
  10474. return \Illuminate\Routing\Router::handle($request, $type, $catch);
  10475. }
  10476. }
  10477. class Schema extends \Illuminate\Support\Facades\Schema{
  10478. /**
  10479. * Determine if the given table exists.
  10480. *
  10481. * @param string $table
  10482. * @return bool
  10483. * @static
  10484. */
  10485. public static function hasTable($table){
  10486. //Method inherited from \Illuminate\Database\Schema\MySqlBuilder
  10487. return \Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
  10488. }
  10489. /**
  10490. * Get the column listing for a given table.
  10491. *
  10492. * @param string $table
  10493. * @return array
  10494. * @static
  10495. */
  10496. public static function getColumnListing($table){
  10497. //Method inherited from \Illuminate\Database\Schema\MySqlBuilder
  10498. return \Illuminate\Database\Schema\MySqlBuilder::getColumnListing($table);
  10499. }
  10500. /**
  10501. * Create a new database Schema manager.
  10502. *
  10503. * @param \Illuminate\Database\Connection $connection
  10504. * @return void
  10505. * @static
  10506. */
  10507. public static function __construct($connection){
  10508. //Method inherited from \Illuminate\Database\Schema\Builder
  10509. \Illuminate\Database\Schema\MySqlBuilder::__construct($connection);
  10510. }
  10511. /**
  10512. * Determine if the given table has a given column.
  10513. *
  10514. * @param string $table
  10515. * @param string $column
  10516. * @return bool
  10517. * @static
  10518. */
  10519. public static function hasColumn($table, $column){
  10520. //Method inherited from \Illuminate\Database\Schema\Builder
  10521. return \Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
  10522. }
  10523. /**
  10524. * Modify a table on the schema.
  10525. *
  10526. * @param string $table
  10527. * @param Closure $callback
  10528. * @return \Illuminate\Database\Schema\Blueprint
  10529. * @static
  10530. */
  10531. public static function table($table, $callback){
  10532. //Method inherited from \Illuminate\Database\Schema\Builder
  10533. return \Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
  10534. }
  10535. /**
  10536. * Create a new table on the schema.
  10537. *
  10538. * @param string $table
  10539. * @param Closure $callback
  10540. * @return \Illuminate\Database\Schema\Blueprint
  10541. * @static
  10542. */
  10543. public static function create($table, $callback){
  10544. //Method inherited from \Illuminate\Database\Schema\Builder
  10545. return \Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
  10546. }
  10547. /**
  10548. * Drop a table from the schema.
  10549. *
  10550. * @param string $table
  10551. * @return \Illuminate\Database\Schema\Blueprint
  10552. * @static
  10553. */
  10554. public static function drop($table){
  10555. //Method inherited from \Illuminate\Database\Schema\Builder
  10556. return \Illuminate\Database\Schema\MySqlBuilder::drop($table);
  10557. }
  10558. /**
  10559. * Drop a table from the schema if it exists.
  10560. *
  10561. * @param string $table
  10562. * @return \Illuminate\Database\Schema\Blueprint
  10563. * @static
  10564. */
  10565. public static function dropIfExists($table){
  10566. //Method inherited from \Illuminate\Database\Schema\Builder
  10567. return \Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
  10568. }
  10569. /**
  10570. * Rename a table on the schema.
  10571. *
  10572. * @param string $from
  10573. * @param string $to
  10574. * @return \Illuminate\Database\Schema\Blueprint
  10575. * @static
  10576. */
  10577. public static function rename($from, $to){
  10578. //Method inherited from \Illuminate\Database\Schema\Builder
  10579. return \Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
  10580. }
  10581. /**
  10582. * Get the database connection instance.
  10583. *
  10584. * @return \Illuminate\Database\Connection
  10585. * @static
  10586. */
  10587. public static function getConnection(){
  10588. //Method inherited from \Illuminate\Database\Schema\Builder
  10589. return \Illuminate\Database\Schema\MySqlBuilder::getConnection();
  10590. }
  10591. /**
  10592. * Set the database connection instance.
  10593. *
  10594. * @param \Illuminate\Database\Connection
  10595. * @return \Illuminate\Database\Schema\Builder
  10596. * @static
  10597. */
  10598. public static function setConnection($connection){
  10599. //Method inherited from \Illuminate\Database\Schema\Builder
  10600. return \Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
  10601. }
  10602. /**
  10603. * Set the Schema Blueprint resolver callback.
  10604. *
  10605. * @param \Closure $resolver
  10606. * @return void
  10607. * @static
  10608. */
  10609. public static function blueprintResolver($resolver){
  10610. //Method inherited from \Illuminate\Database\Schema\Builder
  10611. \Illuminate\Database\Schema\MySqlBuilder::blueprintResolver($resolver);
  10612. }
  10613. }
  10614. class Seeder extends \Illuminate\Database\Seeder{
  10615. }
  10616. class Session extends \Illuminate\Support\Facades\Session{
  10617. /**
  10618. * Get the session configuration.
  10619. *
  10620. * @return array
  10621. * @static
  10622. */
  10623. public static function getSessionConfig(){
  10624. //Method inherited from \Illuminate\Session\SessionManager
  10625. return \Illuminate\Session\SessionManager::getSessionConfig();
  10626. }
  10627. /**
  10628. * Get the default session driver name.
  10629. *
  10630. * @return string
  10631. * @static
  10632. */
  10633. public static function getDefaultDriver(){
  10634. //Method inherited from \Illuminate\Session\SessionManager
  10635. return \Illuminate\Session\SessionManager::getDefaultDriver();
  10636. }
  10637. /**
  10638. * Set the default session driver name.
  10639. *
  10640. * @param string $name
  10641. * @return void
  10642. * @static
  10643. */
  10644. public static function setDefaultDriver($name){
  10645. //Method inherited from \Illuminate\Session\SessionManager
  10646. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  10647. }
  10648. /**
  10649. * Create a new manager instance.
  10650. *
  10651. * @param \Illuminate\Foundation\Application $app
  10652. * @return void
  10653. * @static
  10654. */
  10655. public static function __construct($app){
  10656. //Method inherited from \Illuminate\Support\Manager
  10657. \Illuminate\Session\SessionManager::__construct($app);
  10658. }
  10659. /**
  10660. * Get a driver instance.
  10661. *
  10662. * @param string $driver
  10663. * @return mixed
  10664. * @static
  10665. */
  10666. public static function driver($driver = null){
  10667. //Method inherited from \Illuminate\Support\Manager
  10668. return \Illuminate\Session\SessionManager::driver($driver);
  10669. }
  10670. /**
  10671. * Register a custom driver creator Closure.
  10672. *
  10673. * @param string $driver
  10674. * @param Closure $callback
  10675. * @return \Illuminate\Support\Manager|static
  10676. * @static
  10677. */
  10678. public static function extend($driver, $callback){
  10679. //Method inherited from \Illuminate\Support\Manager
  10680. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  10681. }
  10682. /**
  10683. * Get all of the created "drivers".
  10684. *
  10685. * @return array
  10686. * @static
  10687. */
  10688. public static function getDrivers(){
  10689. //Method inherited from \Illuminate\Support\Manager
  10690. return \Illuminate\Session\SessionManager::getDrivers();
  10691. }
  10692. /**
  10693. * Dynamically call the default driver instance.
  10694. *
  10695. * @param string $method
  10696. * @param array $parameters
  10697. * @return mixed
  10698. * @static
  10699. */
  10700. public static function __call($method, $parameters){
  10701. //Method inherited from \Illuminate\Support\Manager
  10702. return \Illuminate\Session\SessionManager::__call($method, $parameters);
  10703. }
  10704. /**
  10705. * Starts the session storage.
  10706. *
  10707. * @return bool True if session started.
  10708. * @throws \RuntimeException If session fails to start.
  10709. * @api
  10710. * @static
  10711. */
  10712. public static function start(){
  10713. //Method inherited from \Illuminate\Session\Store
  10714. return \Illuminate\Session\Store::start();
  10715. }
  10716. /**
  10717. * Returns the session ID.
  10718. *
  10719. * @return string The session ID.
  10720. * @api
  10721. * @static
  10722. */
  10723. public static function getId(){
  10724. //Method inherited from \Illuminate\Session\Store
  10725. return \Illuminate\Session\Store::getId();
  10726. }
  10727. /**
  10728. * Sets the session ID
  10729. *
  10730. * @param string $id
  10731. * @api
  10732. * @static
  10733. */
  10734. public static function setId($id){
  10735. //Method inherited from \Illuminate\Session\Store
  10736. \Illuminate\Session\Store::setId($id);
  10737. }
  10738. /**
  10739. * Returns the session name.
  10740. *
  10741. * @return mixed The session name.
  10742. * @api
  10743. * @static
  10744. */
  10745. public static function getName(){
  10746. //Method inherited from \Illuminate\Session\Store
  10747. return \Illuminate\Session\Store::getName();
  10748. }
  10749. /**
  10750. * Sets the session name.
  10751. *
  10752. * @param string $name
  10753. * @api
  10754. * @static
  10755. */
  10756. public static function setName($name){
  10757. //Method inherited from \Illuminate\Session\Store
  10758. \Illuminate\Session\Store::setName($name);
  10759. }
  10760. /**
  10761. * Invalidates the current session.
  10762. *
  10763. * Clears all session attributes and flashes and regenerates the
  10764. * session and deletes the old session from persistence.
  10765. *
  10766. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  10767. * will leave the system settings unchanged, 0 sets the cookie
  10768. * to expire with browser session. Time is in seconds, and is
  10769. * not a Unix timestamp.
  10770. * @return bool True if session invalidated, false if error.
  10771. * @api
  10772. * @static
  10773. */
  10774. public static function invalidate($lifetime = null){
  10775. //Method inherited from \Illuminate\Session\Store
  10776. return \Illuminate\Session\Store::invalidate($lifetime);
  10777. }
  10778. /**
  10779. * Migrates the current session to a new session id while maintaining all
  10780. * session attributes.
  10781. *
  10782. * @param bool $destroy Whether to delete the old session or leave it to garbage collection.
  10783. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  10784. * will leave the system settings unchanged, 0 sets the cookie
  10785. * to expire with browser session. Time is in seconds, and is
  10786. * not a Unix timestamp.
  10787. * @return bool True if session migrated, false if error.
  10788. * @api
  10789. * @static
  10790. */
  10791. public static function migrate($destroy = false, $lifetime = null){
  10792. //Method inherited from \Illuminate\Session\Store
  10793. return \Illuminate\Session\Store::migrate($destroy, $lifetime);
  10794. }
  10795. /**
  10796. * Generate a new session identifier.
  10797. *
  10798. * @param bool $destroy
  10799. * @return bool
  10800. * @static
  10801. */
  10802. public static function regenerate($destroy = false){
  10803. //Method inherited from \Illuminate\Session\Store
  10804. return \Illuminate\Session\Store::regenerate($destroy);
  10805. }
  10806. /**
  10807. * Force the session to be saved and closed.
  10808. *
  10809. * This method is generally not required for real sessions as
  10810. * the session will be automatically saved at the end of
  10811. * code execution.
  10812. *
  10813. * @static
  10814. */
  10815. public static function save(){
  10816. //Method inherited from \Illuminate\Session\Store
  10817. \Illuminate\Session\Store::save();
  10818. }
  10819. /**
  10820. * Age the flash data for the session.
  10821. *
  10822. * @return void
  10823. * @static
  10824. */
  10825. public static function ageFlashData(){
  10826. //Method inherited from \Illuminate\Session\Store
  10827. \Illuminate\Session\Store::ageFlashData();
  10828. }
  10829. /**
  10830. * Checks if an attribute is defined.
  10831. *
  10832. * @param string $name The attribute name
  10833. * @return bool true if the attribute is defined, false otherwise
  10834. * @api
  10835. * @static
  10836. */
  10837. public static function has($name){
  10838. //Method inherited from \Illuminate\Session\Store
  10839. return \Illuminate\Session\Store::has($name);
  10840. }
  10841. /**
  10842. * Returns an attribute.
  10843. *
  10844. * @param string $name The attribute name
  10845. * @param mixed $default The default value if not found.
  10846. * @return mixed
  10847. * @api
  10848. * @static
  10849. */
  10850. public static function get($name, $default = null){
  10851. //Method inherited from \Illuminate\Session\Store
  10852. return \Illuminate\Session\Store::get($name, $default);
  10853. }
  10854. /**
  10855. * Get the value of a given key and then forget it.
  10856. *
  10857. * @param string $key
  10858. * @param string $default
  10859. * @return mixed
  10860. * @static
  10861. */
  10862. public static function pull($key, $default = null){
  10863. //Method inherited from \Illuminate\Session\Store
  10864. return \Illuminate\Session\Store::pull($key, $default);
  10865. }
  10866. /**
  10867. * Determine if the session contains old input.
  10868. *
  10869. * @param string $key
  10870. * @return bool
  10871. * @static
  10872. */
  10873. public static function hasOldInput($key = null){
  10874. //Method inherited from \Illuminate\Session\Store
  10875. return \Illuminate\Session\Store::hasOldInput($key);
  10876. }
  10877. /**
  10878. * Get the requested item from the flashed input array.
  10879. *
  10880. * @param string $key
  10881. * @param mixed $default
  10882. * @return mixed
  10883. * @static
  10884. */
  10885. public static function getOldInput($key = null, $default = null){
  10886. //Method inherited from \Illuminate\Session\Store
  10887. return \Illuminate\Session\Store::getOldInput($key, $default);
  10888. }
  10889. /**
  10890. * Sets an attribute.
  10891. *
  10892. * @param string $name
  10893. * @param mixed $value
  10894. * @api
  10895. * @static
  10896. */
  10897. public static function set($name, $value){
  10898. //Method inherited from \Illuminate\Session\Store
  10899. \Illuminate\Session\Store::set($name, $value);
  10900. }
  10901. /**
  10902. * Put a key / value pair or array of key / value pairs in the session.
  10903. *
  10904. * @param string|array $key
  10905. * @param mixed|null $value
  10906. * @return void
  10907. * @static
  10908. */
  10909. public static function put($key, $value){
  10910. //Method inherited from \Illuminate\Session\Store
  10911. \Illuminate\Session\Store::put($key, $value);
  10912. }
  10913. /**
  10914. * Push a value onto a session array.
  10915. *
  10916. * @param string $key
  10917. * @param mixed $value
  10918. * @return void
  10919. * @static
  10920. */
  10921. public static function push($key, $value){
  10922. //Method inherited from \Illuminate\Session\Store
  10923. \Illuminate\Session\Store::push($key, $value);
  10924. }
  10925. /**
  10926. * Flash a key / value pair to the session.
  10927. *
  10928. * @param string $key
  10929. * @param mixed $value
  10930. * @return void
  10931. * @static
  10932. */
  10933. public static function flash($key, $value){
  10934. //Method inherited from \Illuminate\Session\Store
  10935. \Illuminate\Session\Store::flash($key, $value);
  10936. }
  10937. /**
  10938. * Flash an input array to the session.
  10939. *
  10940. * @param array $value
  10941. * @return void
  10942. * @static
  10943. */
  10944. public static function flashInput($value){
  10945. //Method inherited from \Illuminate\Session\Store
  10946. \Illuminate\Session\Store::flashInput($value);
  10947. }
  10948. /**
  10949. * Reflash all of the session flash data.
  10950. *
  10951. * @return void
  10952. * @static
  10953. */
  10954. public static function reflash(){
  10955. //Method inherited from \Illuminate\Session\Store
  10956. \Illuminate\Session\Store::reflash();
  10957. }
  10958. /**
  10959. * Reflash a subset of the current flash data.
  10960. *
  10961. * @param array|dynamic $keys
  10962. * @return void
  10963. * @static
  10964. */
  10965. public static function keep($keys = null){
  10966. //Method inherited from \Illuminate\Session\Store
  10967. \Illuminate\Session\Store::keep($keys);
  10968. }
  10969. /**
  10970. * Returns attributes.
  10971. *
  10972. * @return array Attributes
  10973. * @api
  10974. * @static
  10975. */
  10976. public static function all(){
  10977. //Method inherited from \Illuminate\Session\Store
  10978. return \Illuminate\Session\Store::all();
  10979. }
  10980. /**
  10981. * Sets attributes.
  10982. *
  10983. * @param array $attributes Attributes
  10984. * @static
  10985. */
  10986. public static function replace($attributes){
  10987. //Method inherited from \Illuminate\Session\Store
  10988. \Illuminate\Session\Store::replace($attributes);
  10989. }
  10990. /**
  10991. * Removes an attribute.
  10992. *
  10993. * @param string $name
  10994. * @return mixed The removed value or null when it does not exist
  10995. * @api
  10996. * @static
  10997. */
  10998. public static function remove($name){
  10999. //Method inherited from \Illuminate\Session\Store
  11000. return \Illuminate\Session\Store::remove($name);
  11001. }
  11002. /**
  11003. * Remove an item from the session.
  11004. *
  11005. * @param string $key
  11006. * @return void
  11007. * @static
  11008. */
  11009. public static function forget($key){
  11010. //Method inherited from \Illuminate\Session\Store
  11011. \Illuminate\Session\Store::forget($key);
  11012. }
  11013. /**
  11014. * Clears all attributes.
  11015. *
  11016. * @api
  11017. * @static
  11018. */
  11019. public static function clear(){
  11020. //Method inherited from \Illuminate\Session\Store
  11021. \Illuminate\Session\Store::clear();
  11022. }
  11023. /**
  11024. * Remove all of the items from the session.
  11025. *
  11026. * @return void
  11027. * @static
  11028. */
  11029. public static function flush(){
  11030. //Method inherited from \Illuminate\Session\Store
  11031. \Illuminate\Session\Store::flush();
  11032. }
  11033. /**
  11034. * Checks if the session was started.
  11035. *
  11036. * @return bool
  11037. * @static
  11038. */
  11039. public static function isStarted(){
  11040. //Method inherited from \Illuminate\Session\Store
  11041. return \Illuminate\Session\Store::isStarted();
  11042. }
  11043. /**
  11044. * Registers a SessionBagInterface with the session.
  11045. *
  11046. * @param SessionBagInterface $bag
  11047. * @static
  11048. */
  11049. public static function registerBag($bag){
  11050. //Method inherited from \Illuminate\Session\Store
  11051. \Illuminate\Session\Store::registerBag($bag);
  11052. }
  11053. /**
  11054. * Gets a bag instance by name.
  11055. *
  11056. * @param string $name
  11057. * @return SessionBagInterface
  11058. * @static
  11059. */
  11060. public static function getBag($name){
  11061. //Method inherited from \Illuminate\Session\Store
  11062. return \Illuminate\Session\Store::getBag($name);
  11063. }
  11064. /**
  11065. * Gets session meta.
  11066. *
  11067. * @return MetadataBag
  11068. * @static
  11069. */
  11070. public static function getMetadataBag(){
  11071. //Method inherited from \Illuminate\Session\Store
  11072. return \Illuminate\Session\Store::getMetadataBag();
  11073. }
  11074. /**
  11075. * Get the raw bag data array for a given bag.
  11076. *
  11077. * @param string $name
  11078. * @return array
  11079. * @static
  11080. */
  11081. public static function getBagData($name){
  11082. //Method inherited from \Illuminate\Session\Store
  11083. return \Illuminate\Session\Store::getBagData($name);
  11084. }
  11085. /**
  11086. * Get the CSRF token value.
  11087. *
  11088. * @return string
  11089. * @static
  11090. */
  11091. public static function token(){
  11092. //Method inherited from \Illuminate\Session\Store
  11093. return \Illuminate\Session\Store::token();
  11094. }
  11095. /**
  11096. * Get the CSRF token value.
  11097. *
  11098. * @return string
  11099. * @static
  11100. */
  11101. public static function getToken(){
  11102. //Method inherited from \Illuminate\Session\Store
  11103. return \Illuminate\Session\Store::getToken();
  11104. }
  11105. /**
  11106. * Regenerate the CSRF token value.
  11107. *
  11108. * @return void
  11109. * @static
  11110. */
  11111. public static function regenerateToken(){
  11112. //Method inherited from \Illuminate\Session\Store
  11113. \Illuminate\Session\Store::regenerateToken();
  11114. }
  11115. /**
  11116. * Get the underlying session handler implementation.
  11117. *
  11118. * @return \SessionHandlerInterface
  11119. * @static
  11120. */
  11121. public static function getHandler(){
  11122. //Method inherited from \Illuminate\Session\Store
  11123. return \Illuminate\Session\Store::getHandler();
  11124. }
  11125. /**
  11126. * Determine if the session handler needs a request.
  11127. *
  11128. * @return bool
  11129. * @static
  11130. */
  11131. public static function handlerNeedsRequest(){
  11132. //Method inherited from \Illuminate\Session\Store
  11133. return \Illuminate\Session\Store::handlerNeedsRequest();
  11134. }
  11135. /**
  11136. * Set the request on the handler instance.
  11137. *
  11138. * @param \Symfony\Component\HttpFoundation\Request $request
  11139. * @return void
  11140. * @static
  11141. */
  11142. public static function setRequestOnHandler($request){
  11143. //Method inherited from \Illuminate\Session\Store
  11144. \Illuminate\Session\Store::setRequestOnHandler($request);
  11145. }
  11146. }
  11147. class SSH extends \Illuminate\Support\Facades\SSH{
  11148. /**
  11149. * Create a new remote manager instance.
  11150. *
  11151. * @param \Illuminate\Foundation\Application $app
  11152. * @return void
  11153. * @static
  11154. */
  11155. public static function __construct($app){
  11156. //Method inherited from \Illuminate\Remote\RemoteManager
  11157. \Illuminate\Remote\RemoteManager::__construct($app);
  11158. }
  11159. /**
  11160. * Get a remote connection instance.
  11161. *
  11162. * @param string|array|dynamic $name
  11163. * @return \Illuminate\Remote\ConnectionInterface
  11164. * @static
  11165. */
  11166. public static function into($name){
  11167. //Method inherited from \Illuminate\Remote\RemoteManager
  11168. return \Illuminate\Remote\RemoteManager::into($name);
  11169. }
  11170. /**
  11171. * Get a remote connection instance.
  11172. *
  11173. * @param string|array $name
  11174. * @return \Illuminate\Remote\ConnectionInterface
  11175. * @static
  11176. */
  11177. public static function connection($name = null){
  11178. //Method inherited from \Illuminate\Remote\RemoteManager
  11179. return \Illuminate\Remote\RemoteManager::connection($name);
  11180. }
  11181. /**
  11182. * Get a connection group instance by name.
  11183. *
  11184. * @param string $name
  11185. * @return \Illuminate\Remote\ConnectionInterface
  11186. * @static
  11187. */
  11188. public static function group($name){
  11189. //Method inherited from \Illuminate\Remote\RemoteManager
  11190. return \Illuminate\Remote\RemoteManager::group($name);
  11191. }
  11192. /**
  11193. * Resolve a multiple connection instance.
  11194. *
  11195. * @param array $names
  11196. * @return \Illuminate\Remote\MultiConnection
  11197. * @static
  11198. */
  11199. public static function multiple($names){
  11200. //Method inherited from \Illuminate\Remote\RemoteManager
  11201. return \Illuminate\Remote\RemoteManager::multiple($names);
  11202. }
  11203. /**
  11204. * Resolve a remote connection instance.
  11205. *
  11206. * @param string $name
  11207. * @return \Illuminate\Remote\Connection
  11208. * @static
  11209. */
  11210. public static function resolve($name){
  11211. //Method inherited from \Illuminate\Remote\RemoteManager
  11212. return \Illuminate\Remote\RemoteManager::resolve($name);
  11213. }
  11214. /**
  11215. * Get the default connection name.
  11216. *
  11217. * @return string
  11218. * @static
  11219. */
  11220. public static function getDefaultConnection(){
  11221. //Method inherited from \Illuminate\Remote\RemoteManager
  11222. return \Illuminate\Remote\RemoteManager::getDefaultConnection();
  11223. }
  11224. /**
  11225. * Set the default connection name.
  11226. *
  11227. * @param string $name
  11228. * @return void
  11229. * @static
  11230. */
  11231. public static function setDefaultConnection($name){
  11232. //Method inherited from \Illuminate\Remote\RemoteManager
  11233. \Illuminate\Remote\RemoteManager::setDefaultConnection($name);
  11234. }
  11235. /**
  11236. * Dynamically pass methods to the default connection.
  11237. *
  11238. * @param string $method
  11239. * @param array $parameters
  11240. * @return mixed
  11241. * @static
  11242. */
  11243. public static function __call($method, $parameters){
  11244. //Method inherited from \Illuminate\Remote\RemoteManager
  11245. return \Illuminate\Remote\RemoteManager::__call($method, $parameters);
  11246. }
  11247. }
  11248. class Str extends \Illuminate\Support\Str{
  11249. }
  11250. class URL extends \Illuminate\Support\Facades\URL{
  11251. /**
  11252. * Create a new URL Generator instance.
  11253. *
  11254. * @param \Illuminate\Routing\RouteCollection $routes
  11255. * @param \Symfony\Component\HttpFoundation\Request $request
  11256. * @return void
  11257. * @static
  11258. */
  11259. public static function __construct($routes, $request){
  11260. //Method inherited from \Illuminate\Routing\UrlGenerator
  11261. \Illuminate\Routing\UrlGenerator::__construct($routes, $request);
  11262. }
  11263. /**
  11264. * Get the full URL for the current request.
  11265. *
  11266. * @return string
  11267. * @static
  11268. */
  11269. public static function full(){
  11270. //Method inherited from \Illuminate\Routing\UrlGenerator
  11271. return \Illuminate\Routing\UrlGenerator::full();
  11272. }
  11273. /**
  11274. * Get the current URL for the request.
  11275. *
  11276. * @return string
  11277. * @static
  11278. */
  11279. public static function current(){
  11280. //Method inherited from \Illuminate\Routing\UrlGenerator
  11281. return \Illuminate\Routing\UrlGenerator::current();
  11282. }
  11283. /**
  11284. * Get the URL for the previous request.
  11285. *
  11286. * @return string
  11287. * @static
  11288. */
  11289. public static function previous(){
  11290. //Method inherited from \Illuminate\Routing\UrlGenerator
  11291. return \Illuminate\Routing\UrlGenerator::previous();
  11292. }
  11293. /**
  11294. * Generate a absolute URL to the given path.
  11295. *
  11296. * @param string $path
  11297. * @param mixed $extra
  11298. * @param bool $secure
  11299. * @return string
  11300. * @static
  11301. */
  11302. public static function to($path, $extra = array(), $secure = null){
  11303. //Method inherited from \Illuminate\Routing\UrlGenerator
  11304. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  11305. }
  11306. /**
  11307. * Generate a secure, absolute URL to the given path.
  11308. *
  11309. * @param string $path
  11310. * @param array $parameters
  11311. * @return string
  11312. * @static
  11313. */
  11314. public static function secure($path, $parameters = array()){
  11315. //Method inherited from \Illuminate\Routing\UrlGenerator
  11316. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  11317. }
  11318. /**
  11319. * Generate a URL to an application asset.
  11320. *
  11321. * @param string $path
  11322. * @param bool $secure
  11323. * @return string
  11324. * @static
  11325. */
  11326. public static function asset($path, $secure = null){
  11327. //Method inherited from \Illuminate\Routing\UrlGenerator
  11328. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  11329. }
  11330. /**
  11331. * Generate a URL to a secure asset.
  11332. *
  11333. * @param string $path
  11334. * @return string
  11335. * @static
  11336. */
  11337. public static function secureAsset($path){
  11338. //Method inherited from \Illuminate\Routing\UrlGenerator
  11339. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  11340. }
  11341. /**
  11342. * Force the schema for URLs.
  11343. *
  11344. * @param string $schema
  11345. * @return void
  11346. * @static
  11347. */
  11348. public static function forceSchema($schema){
  11349. //Method inherited from \Illuminate\Routing\UrlGenerator
  11350. \Illuminate\Routing\UrlGenerator::forceSchema($schema);
  11351. }
  11352. /**
  11353. * Get the URL to a named route.
  11354. *
  11355. * @param string $name
  11356. * @param mixed $parameters
  11357. * @param bool $absolute
  11358. * @param \Illuminate\Routing\Route $route
  11359. * @return string
  11360. * @throws \InvalidArgumentException
  11361. * @static
  11362. */
  11363. public static function route($name, $parameters = array(), $absolute = true, $route = null){
  11364. //Method inherited from \Illuminate\Routing\UrlGenerator
  11365. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute, $route);
  11366. }
  11367. /**
  11368. * Get the URL to a controller action.
  11369. *
  11370. * @param string $action
  11371. * @param mixed $parameters
  11372. * @param bool $absolute
  11373. * @return string
  11374. * @static
  11375. */
  11376. public static function action($action, $parameters = array(), $absolute = true){
  11377. //Method inherited from \Illuminate\Routing\UrlGenerator
  11378. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  11379. }
  11380. /**
  11381. * Set the forced root URL.
  11382. *
  11383. * @param string $root
  11384. * @return void
  11385. * @static
  11386. */
  11387. public static function forceRootUrl($root){
  11388. //Method inherited from \Illuminate\Routing\UrlGenerator
  11389. \Illuminate\Routing\UrlGenerator::forceRootUrl($root);
  11390. }
  11391. /**
  11392. * Determine if the given path is a valid URL.
  11393. *
  11394. * @param string $path
  11395. * @return bool
  11396. * @static
  11397. */
  11398. public static function isValidUrl($path){
  11399. //Method inherited from \Illuminate\Routing\UrlGenerator
  11400. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  11401. }
  11402. /**
  11403. * Get the request instance.
  11404. *
  11405. * @return \Symfony\Component\HttpFoundation\Request
  11406. * @static
  11407. */
  11408. public static function getRequest(){
  11409. //Method inherited from \Illuminate\Routing\UrlGenerator
  11410. return \Illuminate\Routing\UrlGenerator::getRequest();
  11411. }
  11412. /**
  11413. * Set the current request instance.
  11414. *
  11415. * @param \Symfony\Component\HttpFoundation\Request $request
  11416. * @return void
  11417. * @static
  11418. */
  11419. public static function setRequest($request){
  11420. //Method inherited from \Illuminate\Routing\UrlGenerator
  11421. \Illuminate\Routing\UrlGenerator::setRequest($request);
  11422. }
  11423. }
  11424. class Validator extends \Illuminate\Support\Facades\Validator{
  11425. /**
  11426. * Create a new Validator factory instance.
  11427. *
  11428. * @param \Symfony\Component\Translation\TranslatorInterface $translator
  11429. * @param \Illuminate\Container\Container $container
  11430. * @return void
  11431. * @static
  11432. */
  11433. public static function __construct($translator, $container = null){
  11434. //Method inherited from \Illuminate\Validation\Factory
  11435. \Illuminate\Validation\Factory::__construct($translator, $container);
  11436. }
  11437. /**
  11438. * Create a new Validator instance.
  11439. *
  11440. * @param array $data
  11441. * @param array $rules
  11442. * @param array $messages
  11443. * @param array $customAttributes
  11444. * @return \Illuminate\Validation\Validator
  11445. * @static
  11446. */
  11447. public static function make($data, $rules, $messages = array(), $customAttributes = array()){
  11448. //Method inherited from \Illuminate\Validation\Factory
  11449. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  11450. }
  11451. /**
  11452. * Register a custom validator extension.
  11453. *
  11454. * @param string $rule
  11455. * @param \Closure|string $extension
  11456. * @param string $message
  11457. * @return void
  11458. * @static
  11459. */
  11460. public static function extend($rule, $extension, $message = null){
  11461. //Method inherited from \Illuminate\Validation\Factory
  11462. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  11463. }
  11464. /**
  11465. * Register a custom implicit validator extension.
  11466. *
  11467. * @param string $rule
  11468. * @param \Closure|string $extension
  11469. * @param string $message
  11470. * @return void
  11471. * @static
  11472. */
  11473. public static function extendImplicit($rule, $extension, $message = null){
  11474. //Method inherited from \Illuminate\Validation\Factory
  11475. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  11476. }
  11477. /**
  11478. * Register a custom implicit validator message replacer.
  11479. *
  11480. * @param string $rule
  11481. * @param \Closure|string $replacer
  11482. * @return void
  11483. * @static
  11484. */
  11485. public static function replacer($rule, $replacer){
  11486. //Method inherited from \Illuminate\Validation\Factory
  11487. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  11488. }
  11489. /**
  11490. * Set the Validator instance resolver.
  11491. *
  11492. * @param Closure $resolver
  11493. * @return void
  11494. * @static
  11495. */
  11496. public static function resolver($resolver){
  11497. //Method inherited from \Illuminate\Validation\Factory
  11498. \Illuminate\Validation\Factory::resolver($resolver);
  11499. }
  11500. /**
  11501. * Get the Translator implementation.
  11502. *
  11503. * @return \Symfony\Component\Translation\TranslatorInterface
  11504. * @static
  11505. */
  11506. public static function getTranslator(){
  11507. //Method inherited from \Illuminate\Validation\Factory
  11508. return \Illuminate\Validation\Factory::getTranslator();
  11509. }
  11510. /**
  11511. * Get the Presence Verifier implementation.
  11512. *
  11513. * @return \Illuminate\Validation\PresenceVerifierInterface
  11514. * @static
  11515. */
  11516. public static function getPresenceVerifier(){
  11517. //Method inherited from \Illuminate\Validation\Factory
  11518. return \Illuminate\Validation\Factory::getPresenceVerifier();
  11519. }
  11520. /**
  11521. * Set the Presence Verifier implementation.
  11522. *
  11523. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11524. * @return void
  11525. * @static
  11526. */
  11527. public static function setPresenceVerifier($presenceVerifier){
  11528. //Method inherited from \Illuminate\Validation\Factory
  11529. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  11530. }
  11531. }
  11532. class View extends \Illuminate\Support\Facades\View{
  11533. /**
  11534. * Create a new view factory instance.
  11535. *
  11536. * @param \Illuminate\View\Engines\EngineResolver $engines
  11537. * @param \Illuminate\View\ViewFinderInterface $finder
  11538. * @param \Illuminate\Events\Dispatcher $events
  11539. * @return void
  11540. * @static
  11541. */
  11542. public static function __construct($engines, $finder, $events){
  11543. //Method inherited from \Illuminate\View\Factory
  11544. \Illuminate\View\Factory::__construct($engines, $finder, $events);
  11545. }
  11546. /**
  11547. * Get the evaluated view contents for the given view.
  11548. *
  11549. * @param string $view
  11550. * @param array $data
  11551. * @param array $mergeData
  11552. * @return \Illuminate\View\View
  11553. * @static
  11554. */
  11555. public static function make($view, $data = array(), $mergeData = array()){
  11556. //Method inherited from \Illuminate\View\Factory
  11557. return \Illuminate\View\Factory::make($view, $data, $mergeData);
  11558. }
  11559. /**
  11560. * Get the evaluated view contents for a named view.
  11561. *
  11562. * @param string $view
  11563. * @param mixed $data
  11564. * @return \Illuminate\View\View
  11565. * @static
  11566. */
  11567. public static function of($view, $data = array()){
  11568. //Method inherited from \Illuminate\View\Factory
  11569. return \Illuminate\View\Factory::of($view, $data);
  11570. }
  11571. /**
  11572. * Register a named view.
  11573. *
  11574. * @param string $view
  11575. * @param string $name
  11576. * @return void
  11577. * @static
  11578. */
  11579. public static function name($view, $name){
  11580. //Method inherited from \Illuminate\View\Factory
  11581. \Illuminate\View\Factory::name($view, $name);
  11582. }
  11583. /**
  11584. * Determine if a given view exists.
  11585. *
  11586. * @param string $view
  11587. * @return bool
  11588. * @static
  11589. */
  11590. public static function exists($view){
  11591. //Method inherited from \Illuminate\View\Factory
  11592. return \Illuminate\View\Factory::exists($view);
  11593. }
  11594. /**
  11595. * Get the rendered contents of a partial from a loop.
  11596. *
  11597. * @param string $view
  11598. * @param array $data
  11599. * @param string $iterator
  11600. * @param string $empty
  11601. * @return string
  11602. * @static
  11603. */
  11604. public static function renderEach($view, $data, $iterator, $empty = 'raw|'){
  11605. //Method inherited from \Illuminate\View\Factory
  11606. return \Illuminate\View\Factory::renderEach($view, $data, $iterator, $empty);
  11607. }
  11608. /**
  11609. * Add a piece of shared data to the environment.
  11610. *
  11611. * @param string $key
  11612. * @param mixed $value
  11613. * @return void
  11614. * @static
  11615. */
  11616. public static function share($key, $value = null){
  11617. //Method inherited from \Illuminate\View\Factory
  11618. \Illuminate\View\Factory::share($key, $value);
  11619. }
  11620. /**
  11621. * Register a view creator event.
  11622. *
  11623. * @param array|string $views
  11624. * @param \Closure|string $callback
  11625. * @return array
  11626. * @static
  11627. */
  11628. public static function creator($views, $callback){
  11629. //Method inherited from \Illuminate\View\Factory
  11630. return \Illuminate\View\Factory::creator($views, $callback);
  11631. }
  11632. /**
  11633. * Register multiple view composers via an array.
  11634. *
  11635. * @param array $composers
  11636. * @return array
  11637. * @static
  11638. */
  11639. public static function composers($composers){
  11640. //Method inherited from \Illuminate\View\Factory
  11641. return \Illuminate\View\Factory::composers($composers);
  11642. }
  11643. /**
  11644. * Register a view composer event.
  11645. *
  11646. * @param array|string $views
  11647. * @param \Closure|string $callback
  11648. * @return array
  11649. * @static
  11650. */
  11651. public static function composer($views, $callback, $priority = null){
  11652. //Method inherited from \Illuminate\View\Factory
  11653. return \Illuminate\View\Factory::composer($views, $callback, $priority);
  11654. }
  11655. /**
  11656. * Call the composer for a given view.
  11657. *
  11658. * @param \Illuminate\View\View $view
  11659. * @return void
  11660. * @static
  11661. */
  11662. public static function callComposer($view){
  11663. //Method inherited from \Illuminate\View\Factory
  11664. \Illuminate\View\Factory::callComposer($view);
  11665. }
  11666. /**
  11667. * Call the creator for a given view.
  11668. *
  11669. * @param \Illuminate\View\View $view
  11670. * @return void
  11671. * @static
  11672. */
  11673. public static function callCreator($view){
  11674. //Method inherited from \Illuminate\View\Factory
  11675. \Illuminate\View\Factory::callCreator($view);
  11676. }
  11677. /**
  11678. * Start injecting content into a section.
  11679. *
  11680. * @param string $section
  11681. * @param string $content
  11682. * @return void
  11683. * @static
  11684. */
  11685. public static function startSection($section, $content = ''){
  11686. //Method inherited from \Illuminate\View\Factory
  11687. \Illuminate\View\Factory::startSection($section, $content);
  11688. }
  11689. /**
  11690. * Inject inline content into a section.
  11691. *
  11692. * @param string $section
  11693. * @param string $content
  11694. * @return void
  11695. * @static
  11696. */
  11697. public static function inject($section, $content){
  11698. //Method inherited from \Illuminate\View\Factory
  11699. \Illuminate\View\Factory::inject($section, $content);
  11700. }
  11701. /**
  11702. * Stop injecting content into a section and return its contents.
  11703. *
  11704. * @return string
  11705. * @static
  11706. */
  11707. public static function yieldSection(){
  11708. //Method inherited from \Illuminate\View\Factory
  11709. return \Illuminate\View\Factory::yieldSection();
  11710. }
  11711. /**
  11712. * Stop injecting content into a section.
  11713. *
  11714. * @param bool $overwrite
  11715. * @return string
  11716. * @static
  11717. */
  11718. public static function stopSection($overwrite = false){
  11719. //Method inherited from \Illuminate\View\Factory
  11720. return \Illuminate\View\Factory::stopSection($overwrite);
  11721. }
  11722. /**
  11723. * Stop injecting content into a section and append it.
  11724. *
  11725. * @return string
  11726. * @static
  11727. */
  11728. public static function appendSection(){
  11729. //Method inherited from \Illuminate\View\Factory
  11730. return \Illuminate\View\Factory::appendSection();
  11731. }
  11732. /**
  11733. * Get the string contents of a section.
  11734. *
  11735. * @param string $section
  11736. * @param string $default
  11737. * @return string
  11738. * @static
  11739. */
  11740. public static function yieldContent($section, $default = ''){
  11741. //Method inherited from \Illuminate\View\Factory
  11742. return \Illuminate\View\Factory::yieldContent($section, $default);
  11743. }
  11744. /**
  11745. * Flush all of the section contents.
  11746. *
  11747. * @return void
  11748. * @static
  11749. */
  11750. public static function flushSections(){
  11751. //Method inherited from \Illuminate\View\Factory
  11752. \Illuminate\View\Factory::flushSections();
  11753. }
  11754. /**
  11755. * Flush all of the section contents if done rendering.
  11756. *
  11757. * @return void
  11758. * @static
  11759. */
  11760. public static function flushSectionsIfDoneRendering(){
  11761. //Method inherited from \Illuminate\View\Factory
  11762. \Illuminate\View\Factory::flushSectionsIfDoneRendering();
  11763. }
  11764. /**
  11765. * Increment the rendering counter.
  11766. *
  11767. * @return void
  11768. * @static
  11769. */
  11770. public static function incrementRender(){
  11771. //Method inherited from \Illuminate\View\Factory
  11772. \Illuminate\View\Factory::incrementRender();
  11773. }
  11774. /**
  11775. * Decrement the rendering counter.
  11776. *
  11777. * @return void
  11778. * @static
  11779. */
  11780. public static function decrementRender(){
  11781. //Method inherited from \Illuminate\View\Factory
  11782. \Illuminate\View\Factory::decrementRender();
  11783. }
  11784. /**
  11785. * Check if there are no active render operations.
  11786. *
  11787. * @return bool
  11788. * @static
  11789. */
  11790. public static function doneRendering(){
  11791. //Method inherited from \Illuminate\View\Factory
  11792. return \Illuminate\View\Factory::doneRendering();
  11793. }
  11794. /**
  11795. * Add a location to the array of view locations.
  11796. *
  11797. * @param string $location
  11798. * @return void
  11799. * @static
  11800. */
  11801. public static function addLocation($location){
  11802. //Method inherited from \Illuminate\View\Factory
  11803. \Illuminate\View\Factory::addLocation($location);
  11804. }
  11805. /**
  11806. * Add a new namespace to the loader.
  11807. *
  11808. * @param string $namespace
  11809. * @param string|array $hints
  11810. * @return void
  11811. * @static
  11812. */
  11813. public static function addNamespace($namespace, $hints){
  11814. //Method inherited from \Illuminate\View\Factory
  11815. \Illuminate\View\Factory::addNamespace($namespace, $hints);
  11816. }
  11817. /**
  11818. * Prepend a new namespace to the loader.
  11819. *
  11820. * @param string $namespace
  11821. * @param string|array $hints
  11822. * @return void
  11823. * @static
  11824. */
  11825. public static function prependNamespace($namespace, $hints){
  11826. //Method inherited from \Illuminate\View\Factory
  11827. \Illuminate\View\Factory::prependNamespace($namespace, $hints);
  11828. }
  11829. /**
  11830. * Register a valid view extension and its engine.
  11831. *
  11832. * @param string $extension
  11833. * @param string $engine
  11834. * @param Closure $resolver
  11835. * @return void
  11836. * @static
  11837. */
  11838. public static function addExtension($extension, $engine, $resolver = null){
  11839. //Method inherited from \Illuminate\View\Factory
  11840. \Illuminate\View\Factory::addExtension($extension, $engine, $resolver);
  11841. }
  11842. /**
  11843. * Get the extension to engine bindings.
  11844. *
  11845. * @return array
  11846. * @static
  11847. */
  11848. public static function getExtensions(){
  11849. //Method inherited from \Illuminate\View\Factory
  11850. return \Illuminate\View\Factory::getExtensions();
  11851. }
  11852. /**
  11853. * Get the engine resolver instance.
  11854. *
  11855. * @return \Illuminate\View\Engines\EngineResolver
  11856. * @static
  11857. */
  11858. public static function getEngineResolver(){
  11859. //Method inherited from \Illuminate\View\Factory
  11860. return \Illuminate\View\Factory::getEngineResolver();
  11861. }
  11862. /**
  11863. * Get the view finder instance.
  11864. *
  11865. * @return \Illuminate\View\ViewFinderInterface
  11866. * @static
  11867. */
  11868. public static function getFinder(){
  11869. //Method inherited from \Illuminate\View\Factory
  11870. return \Illuminate\View\Factory::getFinder();
  11871. }
  11872. /**
  11873. * Set the view finder instance.
  11874. *
  11875. * @return void
  11876. * @static
  11877. */
  11878. public static function setFinder($finder){
  11879. //Method inherited from \Illuminate\View\Factory
  11880. \Illuminate\View\Factory::setFinder($finder);
  11881. }
  11882. /**
  11883. * Get the event dispatcher instance.
  11884. *
  11885. * @return \Illuminate\Events\Dispatcher
  11886. * @static
  11887. */
  11888. public static function getDispatcher(){
  11889. //Method inherited from \Illuminate\View\Factory
  11890. return \Illuminate\View\Factory::getDispatcher();
  11891. }
  11892. /**
  11893. * Set the event dispatcher instance.
  11894. *
  11895. * @param \Illuminate\Events\Dispatcher
  11896. * @return void
  11897. * @static
  11898. */
  11899. public static function setDispatcher($events){
  11900. //Method inherited from \Illuminate\View\Factory
  11901. \Illuminate\View\Factory::setDispatcher($events);
  11902. }
  11903. /**
  11904. * Get the IoC container instance.
  11905. *
  11906. * @return \Illuminate\Container\Container
  11907. * @static
  11908. */
  11909. public static function getContainer(){
  11910. //Method inherited from \Illuminate\View\Factory
  11911. return \Illuminate\View\Factory::getContainer();
  11912. }
  11913. /**
  11914. * Set the IoC container instance.
  11915. *
  11916. * @param \Illuminate\Container\Container $container
  11917. * @return void
  11918. * @static
  11919. */
  11920. public static function setContainer($container){
  11921. //Method inherited from \Illuminate\View\Factory
  11922. \Illuminate\View\Factory::setContainer($container);
  11923. }
  11924. /**
  11925. * Get an item from the shared data.
  11926. *
  11927. * @param string $key
  11928. * @param mixed $default
  11929. * @return mixed
  11930. * @static
  11931. */
  11932. public static function shared($key, $default = null){
  11933. //Method inherited from \Illuminate\View\Factory
  11934. return \Illuminate\View\Factory::shared($key, $default);
  11935. }
  11936. /**
  11937. * Get all of the shared data for the environment.
  11938. *
  11939. * @return array
  11940. * @static
  11941. */
  11942. public static function getShared(){
  11943. //Method inherited from \Illuminate\View\Factory
  11944. return \Illuminate\View\Factory::getShared();
  11945. }
  11946. /**
  11947. * Get the entire array of sections.
  11948. *
  11949. * @return array
  11950. * @static
  11951. */
  11952. public static function getSections(){
  11953. //Method inherited from \Illuminate\View\Factory
  11954. return \Illuminate\View\Factory::getSections();
  11955. }
  11956. /**
  11957. * Get all of the registered named views in environment.
  11958. *
  11959. * @return array
  11960. * @static
  11961. */
  11962. public static function getNames(){
  11963. //Method inherited from \Illuminate\View\Factory
  11964. return \Illuminate\View\Factory::getNames();
  11965. }
  11966. }
  11967. }