this repo has no description
1<?php
2/* @noinspection ALL */
3// @formatter:off
4// phpcs:ignoreFile
5
6/**
7 * A helper file for Laravel, to provide autocomplete information to your IDE
8 * Generated for Laravel 12.35.1.
9 *
10 * This file should not be included in your code, only analyzed by your IDE!
11 *
12 * @author Barry vd. Heuvel <barryvdh@gmail.com>
13 * @see https://github.com/barryvdh/laravel-ide-helper
14 */
15namespace Illuminate\Support\Facades {
16 /**
17 * @see \Illuminate\Foundation\Application
18 */
19 class App {
20 /**
21 * Begin configuring a new Laravel application instance.
22 *
23 * @param string|null $basePath
24 * @return \Illuminate\Foundation\Configuration\ApplicationBuilder
25 * @static
26 */
27 public static function configure($basePath = null)
28 {
29 return \Illuminate\Foundation\Application::configure($basePath);
30 }
31
32 /**
33 * Infer the application's base directory from the environment.
34 *
35 * @return string
36 * @static
37 */
38 public static function inferBasePath()
39 {
40 return \Illuminate\Foundation\Application::inferBasePath();
41 }
42
43 /**
44 * Get the version number of the application.
45 *
46 * @return string
47 * @static
48 */
49 public static function version()
50 {
51 /** @var \Illuminate\Foundation\Application $instance */
52 return $instance->version();
53 }
54
55 /**
56 * Run the given array of bootstrap classes.
57 *
58 * @param string[] $bootstrappers
59 * @return void
60 * @static
61 */
62 public static function bootstrapWith($bootstrappers)
63 {
64 /** @var \Illuminate\Foundation\Application $instance */
65 $instance->bootstrapWith($bootstrappers);
66 }
67
68 /**
69 * Register a callback to run after loading the environment.
70 *
71 * @param \Closure $callback
72 * @return void
73 * @static
74 */
75 public static function afterLoadingEnvironment($callback)
76 {
77 /** @var \Illuminate\Foundation\Application $instance */
78 $instance->afterLoadingEnvironment($callback);
79 }
80
81 /**
82 * Register a callback to run before a bootstrapper.
83 *
84 * @param string $bootstrapper
85 * @param \Closure $callback
86 * @return void
87 * @static
88 */
89 public static function beforeBootstrapping($bootstrapper, $callback)
90 {
91 /** @var \Illuminate\Foundation\Application $instance */
92 $instance->beforeBootstrapping($bootstrapper, $callback);
93 }
94
95 /**
96 * Register a callback to run after a bootstrapper.
97 *
98 * @param string $bootstrapper
99 * @param \Closure $callback
100 * @return void
101 * @static
102 */
103 public static function afterBootstrapping($bootstrapper, $callback)
104 {
105 /** @var \Illuminate\Foundation\Application $instance */
106 $instance->afterBootstrapping($bootstrapper, $callback);
107 }
108
109 /**
110 * Determine if the application has been bootstrapped before.
111 *
112 * @return bool
113 * @static
114 */
115 public static function hasBeenBootstrapped()
116 {
117 /** @var \Illuminate\Foundation\Application $instance */
118 return $instance->hasBeenBootstrapped();
119 }
120
121 /**
122 * Set the base path for the application.
123 *
124 * @param string $basePath
125 * @return \Illuminate\Foundation\Application
126 * @static
127 */
128 public static function setBasePath($basePath)
129 {
130 /** @var \Illuminate\Foundation\Application $instance */
131 return $instance->setBasePath($basePath);
132 }
133
134 /**
135 * Get the path to the application "app" directory.
136 *
137 * @param string $path
138 * @return string
139 * @static
140 */
141 public static function path($path = '')
142 {
143 /** @var \Illuminate\Foundation\Application $instance */
144 return $instance->path($path);
145 }
146
147 /**
148 * Set the application directory.
149 *
150 * @param string $path
151 * @return \Illuminate\Foundation\Application
152 * @static
153 */
154 public static function useAppPath($path)
155 {
156 /** @var \Illuminate\Foundation\Application $instance */
157 return $instance->useAppPath($path);
158 }
159
160 /**
161 * Get the base path of the Laravel installation.
162 *
163 * @param string $path
164 * @return string
165 * @static
166 */
167 public static function basePath($path = '')
168 {
169 /** @var \Illuminate\Foundation\Application $instance */
170 return $instance->basePath($path);
171 }
172
173 /**
174 * Get the path to the bootstrap directory.
175 *
176 * @param string $path
177 * @return string
178 * @static
179 */
180 public static function bootstrapPath($path = '')
181 {
182 /** @var \Illuminate\Foundation\Application $instance */
183 return $instance->bootstrapPath($path);
184 }
185
186 /**
187 * Get the path to the service provider list in the bootstrap directory.
188 *
189 * @return string
190 * @static
191 */
192 public static function getBootstrapProvidersPath()
193 {
194 /** @var \Illuminate\Foundation\Application $instance */
195 return $instance->getBootstrapProvidersPath();
196 }
197
198 /**
199 * Set the bootstrap file directory.
200 *
201 * @param string $path
202 * @return \Illuminate\Foundation\Application
203 * @static
204 */
205 public static function useBootstrapPath($path)
206 {
207 /** @var \Illuminate\Foundation\Application $instance */
208 return $instance->useBootstrapPath($path);
209 }
210
211 /**
212 * Get the path to the application configuration files.
213 *
214 * @param string $path
215 * @return string
216 * @static
217 */
218 public static function configPath($path = '')
219 {
220 /** @var \Illuminate\Foundation\Application $instance */
221 return $instance->configPath($path);
222 }
223
224 /**
225 * Set the configuration directory.
226 *
227 * @param string $path
228 * @return \Illuminate\Foundation\Application
229 * @static
230 */
231 public static function useConfigPath($path)
232 {
233 /** @var \Illuminate\Foundation\Application $instance */
234 return $instance->useConfigPath($path);
235 }
236
237 /**
238 * Get the path to the database directory.
239 *
240 * @param string $path
241 * @return string
242 * @static
243 */
244 public static function databasePath($path = '')
245 {
246 /** @var \Illuminate\Foundation\Application $instance */
247 return $instance->databasePath($path);
248 }
249
250 /**
251 * Set the database directory.
252 *
253 * @param string $path
254 * @return \Illuminate\Foundation\Application
255 * @static
256 */
257 public static function useDatabasePath($path)
258 {
259 /** @var \Illuminate\Foundation\Application $instance */
260 return $instance->useDatabasePath($path);
261 }
262
263 /**
264 * Get the path to the language files.
265 *
266 * @param string $path
267 * @return string
268 * @static
269 */
270 public static function langPath($path = '')
271 {
272 /** @var \Illuminate\Foundation\Application $instance */
273 return $instance->langPath($path);
274 }
275
276 /**
277 * Set the language file directory.
278 *
279 * @param string $path
280 * @return \Illuminate\Foundation\Application
281 * @static
282 */
283 public static function useLangPath($path)
284 {
285 /** @var \Illuminate\Foundation\Application $instance */
286 return $instance->useLangPath($path);
287 }
288
289 /**
290 * Get the path to the public / web directory.
291 *
292 * @param string $path
293 * @return string
294 * @static
295 */
296 public static function publicPath($path = '')
297 {
298 /** @var \Illuminate\Foundation\Application $instance */
299 return $instance->publicPath($path);
300 }
301
302 /**
303 * Set the public / web directory.
304 *
305 * @param string $path
306 * @return \Illuminate\Foundation\Application
307 * @static
308 */
309 public static function usePublicPath($path)
310 {
311 /** @var \Illuminate\Foundation\Application $instance */
312 return $instance->usePublicPath($path);
313 }
314
315 /**
316 * Get the path to the storage directory.
317 *
318 * @param string $path
319 * @return string
320 * @static
321 */
322 public static function storagePath($path = '')
323 {
324 /** @var \Illuminate\Foundation\Application $instance */
325 return $instance->storagePath($path);
326 }
327
328 /**
329 * Set the storage directory.
330 *
331 * @param string $path
332 * @return \Illuminate\Foundation\Application
333 * @static
334 */
335 public static function useStoragePath($path)
336 {
337 /** @var \Illuminate\Foundation\Application $instance */
338 return $instance->useStoragePath($path);
339 }
340
341 /**
342 * Get the path to the resources directory.
343 *
344 * @param string $path
345 * @return string
346 * @static
347 */
348 public static function resourcePath($path = '')
349 {
350 /** @var \Illuminate\Foundation\Application $instance */
351 return $instance->resourcePath($path);
352 }
353
354 /**
355 * Get the path to the views directory.
356 *
357 * This method returns the first configured path in the array of view paths.
358 *
359 * @param string $path
360 * @return string
361 * @static
362 */
363 public static function viewPath($path = '')
364 {
365 /** @var \Illuminate\Foundation\Application $instance */
366 return $instance->viewPath($path);
367 }
368
369 /**
370 * Join the given paths together.
371 *
372 * @param string $basePath
373 * @param string $path
374 * @return string
375 * @static
376 */
377 public static function joinPaths($basePath, $path = '')
378 {
379 /** @var \Illuminate\Foundation\Application $instance */
380 return $instance->joinPaths($basePath, $path);
381 }
382
383 /**
384 * Get the path to the environment file directory.
385 *
386 * @return string
387 * @static
388 */
389 public static function environmentPath()
390 {
391 /** @var \Illuminate\Foundation\Application $instance */
392 return $instance->environmentPath();
393 }
394
395 /**
396 * Set the directory for the environment file.
397 *
398 * @param string $path
399 * @return \Illuminate\Foundation\Application
400 * @static
401 */
402 public static function useEnvironmentPath($path)
403 {
404 /** @var \Illuminate\Foundation\Application $instance */
405 return $instance->useEnvironmentPath($path);
406 }
407
408 /**
409 * Set the environment file to be loaded during bootstrapping.
410 *
411 * @param string $file
412 * @return \Illuminate\Foundation\Application
413 * @static
414 */
415 public static function loadEnvironmentFrom($file)
416 {
417 /** @var \Illuminate\Foundation\Application $instance */
418 return $instance->loadEnvironmentFrom($file);
419 }
420
421 /**
422 * Get the environment file the application is using.
423 *
424 * @return string
425 * @static
426 */
427 public static function environmentFile()
428 {
429 /** @var \Illuminate\Foundation\Application $instance */
430 return $instance->environmentFile();
431 }
432
433 /**
434 * Get the fully qualified path to the environment file.
435 *
436 * @return string
437 * @static
438 */
439 public static function environmentFilePath()
440 {
441 /** @var \Illuminate\Foundation\Application $instance */
442 return $instance->environmentFilePath();
443 }
444
445 /**
446 * Get or check the current application environment.
447 *
448 * @param string|array $environments
449 * @return string|bool
450 * @static
451 */
452 public static function environment(...$environments)
453 {
454 /** @var \Illuminate\Foundation\Application $instance */
455 return $instance->environment(...$environments);
456 }
457
458 /**
459 * Determine if the application is in the local environment.
460 *
461 * @return bool
462 * @static
463 */
464 public static function isLocal()
465 {
466 /** @var \Illuminate\Foundation\Application $instance */
467 return $instance->isLocal();
468 }
469
470 /**
471 * Determine if the application is in the production environment.
472 *
473 * @return bool
474 * @static
475 */
476 public static function isProduction()
477 {
478 /** @var \Illuminate\Foundation\Application $instance */
479 return $instance->isProduction();
480 }
481
482 /**
483 * Detect the application's current environment.
484 *
485 * @param \Closure $callback
486 * @return string
487 * @static
488 */
489 public static function detectEnvironment($callback)
490 {
491 /** @var \Illuminate\Foundation\Application $instance */
492 return $instance->detectEnvironment($callback);
493 }
494
495 /**
496 * Determine if the application is running in the console.
497 *
498 * @return bool
499 * @static
500 */
501 public static function runningInConsole()
502 {
503 /** @var \Illuminate\Foundation\Application $instance */
504 return $instance->runningInConsole();
505 }
506
507 /**
508 * Determine if the application is running any of the given console commands.
509 *
510 * @param string|array $commands
511 * @return bool
512 * @static
513 */
514 public static function runningConsoleCommand(...$commands)
515 {
516 /** @var \Illuminate\Foundation\Application $instance */
517 return $instance->runningConsoleCommand(...$commands);
518 }
519
520 /**
521 * Determine if the application is running unit tests.
522 *
523 * @return bool
524 * @static
525 */
526 public static function runningUnitTests()
527 {
528 /** @var \Illuminate\Foundation\Application $instance */
529 return $instance->runningUnitTests();
530 }
531
532 /**
533 * Determine if the application is running with debug mode enabled.
534 *
535 * @return bool
536 * @static
537 */
538 public static function hasDebugModeEnabled()
539 {
540 /** @var \Illuminate\Foundation\Application $instance */
541 return $instance->hasDebugModeEnabled();
542 }
543
544 /**
545 * Register a new registered listener.
546 *
547 * @param callable $callback
548 * @return void
549 * @static
550 */
551 public static function registered($callback)
552 {
553 /** @var \Illuminate\Foundation\Application $instance */
554 $instance->registered($callback);
555 }
556
557 /**
558 * Register all of the configured providers.
559 *
560 * @return void
561 * @static
562 */
563 public static function registerConfiguredProviders()
564 {
565 /** @var \Illuminate\Foundation\Application $instance */
566 $instance->registerConfiguredProviders();
567 }
568
569 /**
570 * Register a service provider with the application.
571 *
572 * @param \Illuminate\Support\ServiceProvider|string $provider
573 * @param bool $force
574 * @return \Illuminate\Support\ServiceProvider
575 * @static
576 */
577 public static function register($provider, $force = false)
578 {
579 /** @var \Illuminate\Foundation\Application $instance */
580 return $instance->register($provider, $force);
581 }
582
583 /**
584 * Get the registered service provider instance if it exists.
585 *
586 * @param \Illuminate\Support\ServiceProvider|string $provider
587 * @return \Illuminate\Support\ServiceProvider|null
588 * @static
589 */
590 public static function getProvider($provider)
591 {
592 /** @var \Illuminate\Foundation\Application $instance */
593 return $instance->getProvider($provider);
594 }
595
596 /**
597 * Get the registered service provider instances if any exist.
598 *
599 * @param \Illuminate\Support\ServiceProvider|string $provider
600 * @return array
601 * @static
602 */
603 public static function getProviders($provider)
604 {
605 /** @var \Illuminate\Foundation\Application $instance */
606 return $instance->getProviders($provider);
607 }
608
609 /**
610 * Resolve a service provider instance from the class name.
611 *
612 * @param string $provider
613 * @return \Illuminate\Support\ServiceProvider
614 * @static
615 */
616 public static function resolveProvider($provider)
617 {
618 /** @var \Illuminate\Foundation\Application $instance */
619 return $instance->resolveProvider($provider);
620 }
621
622 /**
623 * Load and boot all of the remaining deferred providers.
624 *
625 * @return void
626 * @static
627 */
628 public static function loadDeferredProviders()
629 {
630 /** @var \Illuminate\Foundation\Application $instance */
631 $instance->loadDeferredProviders();
632 }
633
634 /**
635 * Load the provider for a deferred service.
636 *
637 * @param string $service
638 * @return void
639 * @static
640 */
641 public static function loadDeferredProvider($service)
642 {
643 /** @var \Illuminate\Foundation\Application $instance */
644 $instance->loadDeferredProvider($service);
645 }
646
647 /**
648 * Register a deferred provider and service.
649 *
650 * @param string $provider
651 * @param string|null $service
652 * @return void
653 * @static
654 */
655 public static function registerDeferredProvider($provider, $service = null)
656 {
657 /** @var \Illuminate\Foundation\Application $instance */
658 $instance->registerDeferredProvider($provider, $service);
659 }
660
661 /**
662 * Resolve the given type from the container.
663 *
664 * @template TClass of object
665 * @param string|class-string<TClass> $abstract
666 * @param array $parameters
667 * @return ($abstract is class-string<TClass> ? TClass : mixed)
668 * @throws \Illuminate\Contracts\Container\BindingResolutionException
669 * @static
670 */
671 public static function make($abstract, $parameters = [])
672 {
673 /** @var \Illuminate\Foundation\Application $instance */
674 return $instance->make($abstract, $parameters);
675 }
676
677 /**
678 * Determine if the given abstract type has been bound.
679 *
680 * @param string $abstract
681 * @return bool
682 * @static
683 */
684 public static function bound($abstract)
685 {
686 /** @var \Illuminate\Foundation\Application $instance */
687 return $instance->bound($abstract);
688 }
689
690 /**
691 * Determine if the application has booted.
692 *
693 * @return bool
694 * @static
695 */
696 public static function isBooted()
697 {
698 /** @var \Illuminate\Foundation\Application $instance */
699 return $instance->isBooted();
700 }
701
702 /**
703 * Boot the application's service providers.
704 *
705 * @return void
706 * @static
707 */
708 public static function boot()
709 {
710 /** @var \Illuminate\Foundation\Application $instance */
711 $instance->boot();
712 }
713
714 /**
715 * Register a new boot listener.
716 *
717 * @param callable $callback
718 * @return void
719 * @static
720 */
721 public static function booting($callback)
722 {
723 /** @var \Illuminate\Foundation\Application $instance */
724 $instance->booting($callback);
725 }
726
727 /**
728 * Register a new "booted" listener.
729 *
730 * @param callable $callback
731 * @return void
732 * @static
733 */
734 public static function booted($callback)
735 {
736 /** @var \Illuminate\Foundation\Application $instance */
737 $instance->booted($callback);
738 }
739
740 /**
741 * {@inheritdoc}
742 *
743 * @return \Symfony\Component\HttpFoundation\Response
744 * @static
745 */
746 public static function handle($request, $type = 1, $catch = true)
747 {
748 /** @var \Illuminate\Foundation\Application $instance */
749 return $instance->handle($request, $type, $catch);
750 }
751
752 /**
753 * Handle the incoming HTTP request and send the response to the browser.
754 *
755 * @param \Illuminate\Http\Request $request
756 * @return void
757 * @static
758 */
759 public static function handleRequest($request)
760 {
761 /** @var \Illuminate\Foundation\Application $instance */
762 $instance->handleRequest($request);
763 }
764
765 /**
766 * Handle the incoming Artisan command.
767 *
768 * @param \Symfony\Component\Console\Input\InputInterface $input
769 * @return int
770 * @static
771 */
772 public static function handleCommand($input)
773 {
774 /** @var \Illuminate\Foundation\Application $instance */
775 return $instance->handleCommand($input);
776 }
777
778 /**
779 * Determine if the framework's base configuration should be merged.
780 *
781 * @return bool
782 * @static
783 */
784 public static function shouldMergeFrameworkConfiguration()
785 {
786 /** @var \Illuminate\Foundation\Application $instance */
787 return $instance->shouldMergeFrameworkConfiguration();
788 }
789
790 /**
791 * Indicate that the framework's base configuration should not be merged.
792 *
793 * @return \Illuminate\Foundation\Application
794 * @static
795 */
796 public static function dontMergeFrameworkConfiguration()
797 {
798 /** @var \Illuminate\Foundation\Application $instance */
799 return $instance->dontMergeFrameworkConfiguration();
800 }
801
802 /**
803 * Determine if middleware has been disabled for the application.
804 *
805 * @return bool
806 * @static
807 */
808 public static function shouldSkipMiddleware()
809 {
810 /** @var \Illuminate\Foundation\Application $instance */
811 return $instance->shouldSkipMiddleware();
812 }
813
814 /**
815 * Get the path to the cached services.php file.
816 *
817 * @return string
818 * @static
819 */
820 public static function getCachedServicesPath()
821 {
822 /** @var \Illuminate\Foundation\Application $instance */
823 return $instance->getCachedServicesPath();
824 }
825
826 /**
827 * Get the path to the cached packages.php file.
828 *
829 * @return string
830 * @static
831 */
832 public static function getCachedPackagesPath()
833 {
834 /** @var \Illuminate\Foundation\Application $instance */
835 return $instance->getCachedPackagesPath();
836 }
837
838 /**
839 * Determine if the application configuration is cached.
840 *
841 * @return bool
842 * @static
843 */
844 public static function configurationIsCached()
845 {
846 /** @var \Illuminate\Foundation\Application $instance */
847 return $instance->configurationIsCached();
848 }
849
850 /**
851 * Get the path to the configuration cache file.
852 *
853 * @return string
854 * @static
855 */
856 public static function getCachedConfigPath()
857 {
858 /** @var \Illuminate\Foundation\Application $instance */
859 return $instance->getCachedConfigPath();
860 }
861
862 /**
863 * Determine if the application routes are cached.
864 *
865 * @return bool
866 * @static
867 */
868 public static function routesAreCached()
869 {
870 /** @var \Illuminate\Foundation\Application $instance */
871 return $instance->routesAreCached();
872 }
873
874 /**
875 * Get the path to the routes cache file.
876 *
877 * @return string
878 * @static
879 */
880 public static function getCachedRoutesPath()
881 {
882 /** @var \Illuminate\Foundation\Application $instance */
883 return $instance->getCachedRoutesPath();
884 }
885
886 /**
887 * Determine if the application events are cached.
888 *
889 * @return bool
890 * @static
891 */
892 public static function eventsAreCached()
893 {
894 /** @var \Illuminate\Foundation\Application $instance */
895 return $instance->eventsAreCached();
896 }
897
898 /**
899 * Get the path to the events cache file.
900 *
901 * @return string
902 * @static
903 */
904 public static function getCachedEventsPath()
905 {
906 /** @var \Illuminate\Foundation\Application $instance */
907 return $instance->getCachedEventsPath();
908 }
909
910 /**
911 * Add new prefix to list of absolute path prefixes.
912 *
913 * @param string $prefix
914 * @return \Illuminate\Foundation\Application
915 * @static
916 */
917 public static function addAbsoluteCachePathPrefix($prefix)
918 {
919 /** @var \Illuminate\Foundation\Application $instance */
920 return $instance->addAbsoluteCachePathPrefix($prefix);
921 }
922
923 /**
924 * Get an instance of the maintenance mode manager implementation.
925 *
926 * @return \Illuminate\Contracts\Foundation\MaintenanceMode
927 * @static
928 */
929 public static function maintenanceMode()
930 {
931 /** @var \Illuminate\Foundation\Application $instance */
932 return $instance->maintenanceMode();
933 }
934
935 /**
936 * Determine if the application is currently down for maintenance.
937 *
938 * @return bool
939 * @static
940 */
941 public static function isDownForMaintenance()
942 {
943 /** @var \Illuminate\Foundation\Application $instance */
944 return $instance->isDownForMaintenance();
945 }
946
947 /**
948 * Throw an HttpException with the given data.
949 *
950 * @param int $code
951 * @param string $message
952 * @param array $headers
953 * @return never
954 * @throws \Symfony\Component\HttpKernel\Exception\HttpException
955 * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
956 * @static
957 */
958 public static function abort($code, $message = '', $headers = [])
959 {
960 /** @var \Illuminate\Foundation\Application $instance */
961 return $instance->abort($code, $message, $headers);
962 }
963
964 /**
965 * Register a terminating callback with the application.
966 *
967 * @param callable|string $callback
968 * @return \Illuminate\Foundation\Application
969 * @static
970 */
971 public static function terminating($callback)
972 {
973 /** @var \Illuminate\Foundation\Application $instance */
974 return $instance->terminating($callback);
975 }
976
977 /**
978 * Terminate the application.
979 *
980 * @return void
981 * @static
982 */
983 public static function terminate()
984 {
985 /** @var \Illuminate\Foundation\Application $instance */
986 $instance->terminate();
987 }
988
989 /**
990 * Get the service providers that have been loaded.
991 *
992 * @return array<string, bool>
993 * @static
994 */
995 public static function getLoadedProviders()
996 {
997 /** @var \Illuminate\Foundation\Application $instance */
998 return $instance->getLoadedProviders();
999 }
1000
1001 /**
1002 * Determine if the given service provider is loaded.
1003 *
1004 * @param string $provider
1005 * @return bool
1006 * @static
1007 */
1008 public static function providerIsLoaded($provider)
1009 {
1010 /** @var \Illuminate\Foundation\Application $instance */
1011 return $instance->providerIsLoaded($provider);
1012 }
1013
1014 /**
1015 * Get the application's deferred services.
1016 *
1017 * @return array
1018 * @static
1019 */
1020 public static function getDeferredServices()
1021 {
1022 /** @var \Illuminate\Foundation\Application $instance */
1023 return $instance->getDeferredServices();
1024 }
1025
1026 /**
1027 * Set the application's deferred services.
1028 *
1029 * @param array $services
1030 * @return void
1031 * @static
1032 */
1033 public static function setDeferredServices($services)
1034 {
1035 /** @var \Illuminate\Foundation\Application $instance */
1036 $instance->setDeferredServices($services);
1037 }
1038
1039 /**
1040 * Determine if the given service is a deferred service.
1041 *
1042 * @param string $service
1043 * @return bool
1044 * @static
1045 */
1046 public static function isDeferredService($service)
1047 {
1048 /** @var \Illuminate\Foundation\Application $instance */
1049 return $instance->isDeferredService($service);
1050 }
1051
1052 /**
1053 * Add an array of services to the application's deferred services.
1054 *
1055 * @param array $services
1056 * @return void
1057 * @static
1058 */
1059 public static function addDeferredServices($services)
1060 {
1061 /** @var \Illuminate\Foundation\Application $instance */
1062 $instance->addDeferredServices($services);
1063 }
1064
1065 /**
1066 * Remove an array of services from the application's deferred services.
1067 *
1068 * @param array $services
1069 * @return void
1070 * @static
1071 */
1072 public static function removeDeferredServices($services)
1073 {
1074 /** @var \Illuminate\Foundation\Application $instance */
1075 $instance->removeDeferredServices($services);
1076 }
1077
1078 /**
1079 * Configure the real-time facade namespace.
1080 *
1081 * @param string $namespace
1082 * @return void
1083 * @static
1084 */
1085 public static function provideFacades($namespace)
1086 {
1087 /** @var \Illuminate\Foundation\Application $instance */
1088 $instance->provideFacades($namespace);
1089 }
1090
1091 /**
1092 * Get the current application locale.
1093 *
1094 * @return string
1095 * @static
1096 */
1097 public static function getLocale()
1098 {
1099 /** @var \Illuminate\Foundation\Application $instance */
1100 return $instance->getLocale();
1101 }
1102
1103 /**
1104 * Get the current application locale.
1105 *
1106 * @return string
1107 * @static
1108 */
1109 public static function currentLocale()
1110 {
1111 /** @var \Illuminate\Foundation\Application $instance */
1112 return $instance->currentLocale();
1113 }
1114
1115 /**
1116 * Get the current application fallback locale.
1117 *
1118 * @return string
1119 * @static
1120 */
1121 public static function getFallbackLocale()
1122 {
1123 /** @var \Illuminate\Foundation\Application $instance */
1124 return $instance->getFallbackLocale();
1125 }
1126
1127 /**
1128 * Set the current application locale.
1129 *
1130 * @param string $locale
1131 * @return void
1132 * @static
1133 */
1134 public static function setLocale($locale)
1135 {
1136 /** @var \Illuminate\Foundation\Application $instance */
1137 $instance->setLocale($locale);
1138 }
1139
1140 /**
1141 * Set the current application fallback locale.
1142 *
1143 * @param string $fallbackLocale
1144 * @return void
1145 * @static
1146 */
1147 public static function setFallbackLocale($fallbackLocale)
1148 {
1149 /** @var \Illuminate\Foundation\Application $instance */
1150 $instance->setFallbackLocale($fallbackLocale);
1151 }
1152
1153 /**
1154 * Determine if the application locale is the given locale.
1155 *
1156 * @param string $locale
1157 * @return bool
1158 * @static
1159 */
1160 public static function isLocale($locale)
1161 {
1162 /** @var \Illuminate\Foundation\Application $instance */
1163 return $instance->isLocale($locale);
1164 }
1165
1166 /**
1167 * Register the core class aliases in the container.
1168 *
1169 * @return void
1170 * @static
1171 */
1172 public static function registerCoreContainerAliases()
1173 {
1174 /** @var \Illuminate\Foundation\Application $instance */
1175 $instance->registerCoreContainerAliases();
1176 }
1177
1178 /**
1179 * Flush the container of all bindings and resolved instances.
1180 *
1181 * @return void
1182 * @static
1183 */
1184 public static function flush()
1185 {
1186 /** @var \Illuminate\Foundation\Application $instance */
1187 $instance->flush();
1188 }
1189
1190 /**
1191 * Get the application namespace.
1192 *
1193 * @return string
1194 * @throws \RuntimeException
1195 * @static
1196 */
1197 public static function getNamespace()
1198 {
1199 /** @var \Illuminate\Foundation\Application $instance */
1200 return $instance->getNamespace();
1201 }
1202
1203 /**
1204 * Define a contextual binding.
1205 *
1206 * @param array|string $concrete
1207 * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
1208 * @static
1209 */
1210 public static function when($concrete)
1211 {
1212 //Method inherited from \Illuminate\Container\Container
1213 /** @var \Illuminate\Foundation\Application $instance */
1214 return $instance->when($concrete);
1215 }
1216
1217 /**
1218 * Define a contextual binding based on an attribute.
1219 *
1220 * @param string $attribute
1221 * @param \Closure $handler
1222 * @return void
1223 * @static
1224 */
1225 public static function whenHasAttribute($attribute, $handler)
1226 {
1227 //Method inherited from \Illuminate\Container\Container
1228 /** @var \Illuminate\Foundation\Application $instance */
1229 $instance->whenHasAttribute($attribute, $handler);
1230 }
1231
1232 /**
1233 * Returns true if the container can return an entry for the given identifier.
1234 *
1235 * Returns false otherwise.
1236 *
1237 * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
1238 * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
1239 *
1240 * @return bool
1241 * @param string $id Identifier of the entry to look for.
1242 * @return bool
1243 * @static
1244 */
1245 public static function has($id)
1246 {
1247 //Method inherited from \Illuminate\Container\Container
1248 /** @var \Illuminate\Foundation\Application $instance */
1249 return $instance->has($id);
1250 }
1251
1252 /**
1253 * Determine if the given abstract type has been resolved.
1254 *
1255 * @param string $abstract
1256 * @return bool
1257 * @static
1258 */
1259 public static function resolved($abstract)
1260 {
1261 //Method inherited from \Illuminate\Container\Container
1262 /** @var \Illuminate\Foundation\Application $instance */
1263 return $instance->resolved($abstract);
1264 }
1265
1266 /**
1267 * Determine if a given type is shared.
1268 *
1269 * @param string $abstract
1270 * @return bool
1271 * @static
1272 */
1273 public static function isShared($abstract)
1274 {
1275 //Method inherited from \Illuminate\Container\Container
1276 /** @var \Illuminate\Foundation\Application $instance */
1277 return $instance->isShared($abstract);
1278 }
1279
1280 /**
1281 * Determine if a given string is an alias.
1282 *
1283 * @param string $name
1284 * @return bool
1285 * @static
1286 */
1287 public static function isAlias($name)
1288 {
1289 //Method inherited from \Illuminate\Container\Container
1290 /** @var \Illuminate\Foundation\Application $instance */
1291 return $instance->isAlias($name);
1292 }
1293
1294 /**
1295 * Register a binding with the container.
1296 *
1297 * @param \Closure|string $abstract
1298 * @param \Closure|string|null $concrete
1299 * @param bool $shared
1300 * @return void
1301 * @throws \TypeError
1302 * @throws ReflectionException
1303 * @static
1304 */
1305 public static function bind($abstract, $concrete = null, $shared = false)
1306 {
1307 //Method inherited from \Illuminate\Container\Container
1308 /** @var \Illuminate\Foundation\Application $instance */
1309 $instance->bind($abstract, $concrete, $shared);
1310 }
1311
1312 /**
1313 * Determine if the container has a method binding.
1314 *
1315 * @param string $method
1316 * @return bool
1317 * @static
1318 */
1319 public static function hasMethodBinding($method)
1320 {
1321 //Method inherited from \Illuminate\Container\Container
1322 /** @var \Illuminate\Foundation\Application $instance */
1323 return $instance->hasMethodBinding($method);
1324 }
1325
1326 /**
1327 * Bind a callback to resolve with Container::call.
1328 *
1329 * @param array|string $method
1330 * @param \Closure $callback
1331 * @return void
1332 * @static
1333 */
1334 public static function bindMethod($method, $callback)
1335 {
1336 //Method inherited from \Illuminate\Container\Container
1337 /** @var \Illuminate\Foundation\Application $instance */
1338 $instance->bindMethod($method, $callback);
1339 }
1340
1341 /**
1342 * Get the method binding for the given method.
1343 *
1344 * @param string $method
1345 * @param mixed $instance
1346 * @return mixed
1347 * @static
1348 */
1349 public static function callMethodBinding($method, $instance)
1350 {
1351 //Method inherited from \Illuminate\Container\Container
1352 /** @var \Illuminate\Foundation\Application $instance */
1353 return $instance->callMethodBinding($method, $instance);
1354 }
1355
1356 /**
1357 * Add a contextual binding to the container.
1358 *
1359 * @param string $concrete
1360 * @param \Closure|string $abstract
1361 * @param \Closure|string $implementation
1362 * @return void
1363 * @static
1364 */
1365 public static function addContextualBinding($concrete, $abstract, $implementation)
1366 {
1367 //Method inherited from \Illuminate\Container\Container
1368 /** @var \Illuminate\Foundation\Application $instance */
1369 $instance->addContextualBinding($concrete, $abstract, $implementation);
1370 }
1371
1372 /**
1373 * Register a binding if it hasn't already been registered.
1374 *
1375 * @param \Closure|string $abstract
1376 * @param \Closure|string|null $concrete
1377 * @param bool $shared
1378 * @return void
1379 * @static
1380 */
1381 public static function bindIf($abstract, $concrete = null, $shared = false)
1382 {
1383 //Method inherited from \Illuminate\Container\Container
1384 /** @var \Illuminate\Foundation\Application $instance */
1385 $instance->bindIf($abstract, $concrete, $shared);
1386 }
1387
1388 /**
1389 * Register a shared binding in the container.
1390 *
1391 * @param \Closure|string $abstract
1392 * @param \Closure|string|null $concrete
1393 * @return void
1394 * @static
1395 */
1396 public static function singleton($abstract, $concrete = null)
1397 {
1398 //Method inherited from \Illuminate\Container\Container
1399 /** @var \Illuminate\Foundation\Application $instance */
1400 $instance->singleton($abstract, $concrete);
1401 }
1402
1403 /**
1404 * Register a shared binding if it hasn't already been registered.
1405 *
1406 * @param \Closure|string $abstract
1407 * @param \Closure|string|null $concrete
1408 * @return void
1409 * @static
1410 */
1411 public static function singletonIf($abstract, $concrete = null)
1412 {
1413 //Method inherited from \Illuminate\Container\Container
1414 /** @var \Illuminate\Foundation\Application $instance */
1415 $instance->singletonIf($abstract, $concrete);
1416 }
1417
1418 /**
1419 * Register a scoped binding in the container.
1420 *
1421 * @param \Closure|string $abstract
1422 * @param \Closure|string|null $concrete
1423 * @return void
1424 * @static
1425 */
1426 public static function scoped($abstract, $concrete = null)
1427 {
1428 //Method inherited from \Illuminate\Container\Container
1429 /** @var \Illuminate\Foundation\Application $instance */
1430 $instance->scoped($abstract, $concrete);
1431 }
1432
1433 /**
1434 * Register a scoped binding if it hasn't already been registered.
1435 *
1436 * @param \Closure|string $abstract
1437 * @param \Closure|string|null $concrete
1438 * @return void
1439 * @static
1440 */
1441 public static function scopedIf($abstract, $concrete = null)
1442 {
1443 //Method inherited from \Illuminate\Container\Container
1444 /** @var \Illuminate\Foundation\Application $instance */
1445 $instance->scopedIf($abstract, $concrete);
1446 }
1447
1448 /**
1449 * "Extend" an abstract type in the container.
1450 *
1451 * @param string $abstract
1452 * @param \Closure $closure
1453 * @return void
1454 * @throws \InvalidArgumentException
1455 * @static
1456 */
1457 public static function extend($abstract, $closure)
1458 {
1459 //Method inherited from \Illuminate\Container\Container
1460 /** @var \Illuminate\Foundation\Application $instance */
1461 $instance->extend($abstract, $closure);
1462 }
1463
1464 /**
1465 * Register an existing instance as shared in the container.
1466 *
1467 * @template TInstance of mixed
1468 * @param string $abstract
1469 * @param TInstance $instance
1470 * @return TInstance
1471 * @static
1472 */
1473 public static function instance($abstract, $instance)
1474 {
1475 //Method inherited from \Illuminate\Container\Container
1476 /** @var \Illuminate\Foundation\Application $instance */
1477 return $instance->instance($abstract, $instance);
1478 }
1479
1480 /**
1481 * Assign a set of tags to a given binding.
1482 *
1483 * @param array|string $abstracts
1484 * @param mixed $tags
1485 * @return void
1486 * @static
1487 */
1488 public static function tag($abstracts, $tags)
1489 {
1490 //Method inherited from \Illuminate\Container\Container
1491 /** @var \Illuminate\Foundation\Application $instance */
1492 $instance->tag($abstracts, $tags);
1493 }
1494
1495 /**
1496 * Resolve all of the bindings for a given tag.
1497 *
1498 * @param string $tag
1499 * @return iterable
1500 * @static
1501 */
1502 public static function tagged($tag)
1503 {
1504 //Method inherited from \Illuminate\Container\Container
1505 /** @var \Illuminate\Foundation\Application $instance */
1506 return $instance->tagged($tag);
1507 }
1508
1509 /**
1510 * Alias a type to a different name.
1511 *
1512 * @param string $abstract
1513 * @param string $alias
1514 * @return void
1515 * @throws \LogicException
1516 * @static
1517 */
1518 public static function alias($abstract, $alias)
1519 {
1520 //Method inherited from \Illuminate\Container\Container
1521 /** @var \Illuminate\Foundation\Application $instance */
1522 $instance->alias($abstract, $alias);
1523 }
1524
1525 /**
1526 * Bind a new callback to an abstract's rebind event.
1527 *
1528 * @param string $abstract
1529 * @param \Closure $callback
1530 * @return mixed
1531 * @static
1532 */
1533 public static function rebinding($abstract, $callback)
1534 {
1535 //Method inherited from \Illuminate\Container\Container
1536 /** @var \Illuminate\Foundation\Application $instance */
1537 return $instance->rebinding($abstract, $callback);
1538 }
1539
1540 /**
1541 * Refresh an instance on the given target and method.
1542 *
1543 * @param string $abstract
1544 * @param mixed $target
1545 * @param string $method
1546 * @return mixed
1547 * @static
1548 */
1549 public static function refresh($abstract, $target, $method)
1550 {
1551 //Method inherited from \Illuminate\Container\Container
1552 /** @var \Illuminate\Foundation\Application $instance */
1553 return $instance->refresh($abstract, $target, $method);
1554 }
1555
1556 /**
1557 * Wrap the given closure such that its dependencies will be injected when executed.
1558 *
1559 * @param \Closure $callback
1560 * @param array $parameters
1561 * @return \Closure
1562 * @static
1563 */
1564 public static function wrap($callback, $parameters = [])
1565 {
1566 //Method inherited from \Illuminate\Container\Container
1567 /** @var \Illuminate\Foundation\Application $instance */
1568 return $instance->wrap($callback, $parameters);
1569 }
1570
1571 /**
1572 * Call the given Closure / class@method and inject its dependencies.
1573 *
1574 * @param callable|string $callback
1575 * @param array<string, mixed> $parameters
1576 * @param string|null $defaultMethod
1577 * @return mixed
1578 * @throws \InvalidArgumentException
1579 * @static
1580 */
1581 public static function call($callback, $parameters = [], $defaultMethod = null)
1582 {
1583 //Method inherited from \Illuminate\Container\Container
1584 /** @var \Illuminate\Foundation\Application $instance */
1585 return $instance->call($callback, $parameters, $defaultMethod);
1586 }
1587
1588 /**
1589 * Get a closure to resolve the given type from the container.
1590 *
1591 * @template TClass of object
1592 * @param string|class-string<TClass> $abstract
1593 * @return ($abstract is class-string<TClass> ? \Closure(): TClass : \Closure(): mixed)
1594 * @static
1595 */
1596 public static function factory($abstract)
1597 {
1598 //Method inherited from \Illuminate\Container\Container
1599 /** @var \Illuminate\Foundation\Application $instance */
1600 return $instance->factory($abstract);
1601 }
1602
1603 /**
1604 * An alias function name for make().
1605 *
1606 * @template TClass of object
1607 * @param string|class-string<TClass>|callable $abstract
1608 * @param array $parameters
1609 * @return ($abstract is class-string<TClass> ? TClass : mixed)
1610 * @throws \Illuminate\Contracts\Container\BindingResolutionException
1611 * @static
1612 */
1613 public static function makeWith($abstract, $parameters = [])
1614 {
1615 //Method inherited from \Illuminate\Container\Container
1616 /** @var \Illuminate\Foundation\Application $instance */
1617 return $instance->makeWith($abstract, $parameters);
1618 }
1619
1620 /**
1621 * {@inheritdoc}
1622 *
1623 * @template TClass of object
1624 * @param string|class-string<TClass> $id
1625 * @return ($id is class-string<TClass> ? TClass : mixed)
1626 * @static
1627 */
1628 public static function get($id)
1629 {
1630 //Method inherited from \Illuminate\Container\Container
1631 /** @var \Illuminate\Foundation\Application $instance */
1632 return $instance->get($id);
1633 }
1634
1635 /**
1636 * Instantiate a concrete instance of the given type.
1637 *
1638 * @template TClass of object
1639 * @param \Closure(static, array): TClass|class-string<TClass> $concrete
1640 * @return TClass
1641 * @throws \Illuminate\Contracts\Container\BindingResolutionException
1642 * @throws \Illuminate\Contracts\Container\CircularDependencyException
1643 * @static
1644 */
1645 public static function build($concrete)
1646 {
1647 //Method inherited from \Illuminate\Container\Container
1648 /** @var \Illuminate\Foundation\Application $instance */
1649 return $instance->build($concrete);
1650 }
1651
1652 /**
1653 * Resolve a dependency based on an attribute.
1654 *
1655 * @param \ReflectionAttribute $attribute
1656 * @return mixed
1657 * @static
1658 */
1659 public static function resolveFromAttribute($attribute)
1660 {
1661 //Method inherited from \Illuminate\Container\Container
1662 /** @var \Illuminate\Foundation\Application $instance */
1663 return $instance->resolveFromAttribute($attribute);
1664 }
1665
1666 /**
1667 * Register a new before resolving callback for all types.
1668 *
1669 * @param \Closure|string $abstract
1670 * @param \Closure|null $callback
1671 * @return void
1672 * @static
1673 */
1674 public static function beforeResolving($abstract, $callback = null)
1675 {
1676 //Method inherited from \Illuminate\Container\Container
1677 /** @var \Illuminate\Foundation\Application $instance */
1678 $instance->beforeResolving($abstract, $callback);
1679 }
1680
1681 /**
1682 * Register a new resolving callback.
1683 *
1684 * @param \Closure|string $abstract
1685 * @param \Closure|null $callback
1686 * @return void
1687 * @static
1688 */
1689 public static function resolving($abstract, $callback = null)
1690 {
1691 //Method inherited from \Illuminate\Container\Container
1692 /** @var \Illuminate\Foundation\Application $instance */
1693 $instance->resolving($abstract, $callback);
1694 }
1695
1696 /**
1697 * Register a new after resolving callback for all types.
1698 *
1699 * @param \Closure|string $abstract
1700 * @param \Closure|null $callback
1701 * @return void
1702 * @static
1703 */
1704 public static function afterResolving($abstract, $callback = null)
1705 {
1706 //Method inherited from \Illuminate\Container\Container
1707 /** @var \Illuminate\Foundation\Application $instance */
1708 $instance->afterResolving($abstract, $callback);
1709 }
1710
1711 /**
1712 * Register a new after resolving attribute callback for all types.
1713 *
1714 * @param string $attribute
1715 * @param \Closure $callback
1716 * @return void
1717 * @static
1718 */
1719 public static function afterResolvingAttribute($attribute, $callback)
1720 {
1721 //Method inherited from \Illuminate\Container\Container
1722 /** @var \Illuminate\Foundation\Application $instance */
1723 $instance->afterResolvingAttribute($attribute, $callback);
1724 }
1725
1726 /**
1727 * Fire all of the after resolving attribute callbacks.
1728 *
1729 * @param \ReflectionAttribute[] $attributes
1730 * @param mixed $object
1731 * @return void
1732 * @static
1733 */
1734 public static function fireAfterResolvingAttributeCallbacks($attributes, $object)
1735 {
1736 //Method inherited from \Illuminate\Container\Container
1737 /** @var \Illuminate\Foundation\Application $instance */
1738 $instance->fireAfterResolvingAttributeCallbacks($attributes, $object);
1739 }
1740
1741 /**
1742 * Get the name of the binding the container is currently resolving.
1743 *
1744 * @return class-string|string|null
1745 * @static
1746 */
1747 public static function currentlyResolving()
1748 {
1749 //Method inherited from \Illuminate\Container\Container
1750 /** @var \Illuminate\Foundation\Application $instance */
1751 return $instance->currentlyResolving();
1752 }
1753
1754 /**
1755 * Get the container's bindings.
1756 *
1757 * @return array
1758 * @static
1759 */
1760 public static function getBindings()
1761 {
1762 //Method inherited from \Illuminate\Container\Container
1763 /** @var \Illuminate\Foundation\Application $instance */
1764 return $instance->getBindings();
1765 }
1766
1767 /**
1768 * Get the alias for an abstract if available.
1769 *
1770 * @param string $abstract
1771 * @return string
1772 * @static
1773 */
1774 public static function getAlias($abstract)
1775 {
1776 //Method inherited from \Illuminate\Container\Container
1777 /** @var \Illuminate\Foundation\Application $instance */
1778 return $instance->getAlias($abstract);
1779 }
1780
1781 /**
1782 * Remove all of the extender callbacks for a given type.
1783 *
1784 * @param string $abstract
1785 * @return void
1786 * @static
1787 */
1788 public static function forgetExtenders($abstract)
1789 {
1790 //Method inherited from \Illuminate\Container\Container
1791 /** @var \Illuminate\Foundation\Application $instance */
1792 $instance->forgetExtenders($abstract);
1793 }
1794
1795 /**
1796 * Remove a resolved instance from the instance cache.
1797 *
1798 * @param string $abstract
1799 * @return void
1800 * @static
1801 */
1802 public static function forgetInstance($abstract)
1803 {
1804 //Method inherited from \Illuminate\Container\Container
1805 /** @var \Illuminate\Foundation\Application $instance */
1806 $instance->forgetInstance($abstract);
1807 }
1808
1809 /**
1810 * Clear all of the instances from the container.
1811 *
1812 * @return void
1813 * @static
1814 */
1815 public static function forgetInstances()
1816 {
1817 //Method inherited from \Illuminate\Container\Container
1818 /** @var \Illuminate\Foundation\Application $instance */
1819 $instance->forgetInstances();
1820 }
1821
1822 /**
1823 * Clear all of the scoped instances from the container.
1824 *
1825 * @return void
1826 * @static
1827 */
1828 public static function forgetScopedInstances()
1829 {
1830 //Method inherited from \Illuminate\Container\Container
1831 /** @var \Illuminate\Foundation\Application $instance */
1832 $instance->forgetScopedInstances();
1833 }
1834
1835 /**
1836 * Set the callback which determines the current container environment.
1837 *
1838 * @param (callable(array<int, string>|string): bool|string)|null $callback
1839 * @return void
1840 * @static
1841 */
1842 public static function resolveEnvironmentUsing($callback)
1843 {
1844 //Method inherited from \Illuminate\Container\Container
1845 /** @var \Illuminate\Foundation\Application $instance */
1846 $instance->resolveEnvironmentUsing($callback);
1847 }
1848
1849 /**
1850 * Determine the environment for the container.
1851 *
1852 * @param array<int, string>|string $environments
1853 * @return bool
1854 * @static
1855 */
1856 public static function currentEnvironmentIs($environments)
1857 {
1858 //Method inherited from \Illuminate\Container\Container
1859 /** @var \Illuminate\Foundation\Application $instance */
1860 return $instance->currentEnvironmentIs($environments);
1861 }
1862
1863 /**
1864 * Get the globally available instance of the container.
1865 *
1866 * @return static
1867 * @static
1868 */
1869 public static function getInstance()
1870 {
1871 //Method inherited from \Illuminate\Container\Container
1872 return \Illuminate\Foundation\Application::getInstance();
1873 }
1874
1875 /**
1876 * Set the shared instance of the container.
1877 *
1878 * @param \Illuminate\Contracts\Container\Container|null $container
1879 * @return \Illuminate\Contracts\Container\Container|static
1880 * @static
1881 */
1882 public static function setInstance($container = null)
1883 {
1884 //Method inherited from \Illuminate\Container\Container
1885 return \Illuminate\Foundation\Application::setInstance($container);
1886 }
1887
1888 /**
1889 * Determine if a given offset exists.
1890 *
1891 * @param string $key
1892 * @return bool
1893 * @static
1894 */
1895 public static function offsetExists($key)
1896 {
1897 //Method inherited from \Illuminate\Container\Container
1898 /** @var \Illuminate\Foundation\Application $instance */
1899 return $instance->offsetExists($key);
1900 }
1901
1902 /**
1903 * Get the value at a given offset.
1904 *
1905 * @param string $key
1906 * @return mixed
1907 * @static
1908 */
1909 public static function offsetGet($key)
1910 {
1911 //Method inherited from \Illuminate\Container\Container
1912 /** @var \Illuminate\Foundation\Application $instance */
1913 return $instance->offsetGet($key);
1914 }
1915
1916 /**
1917 * Set the value at a given offset.
1918 *
1919 * @param string $key
1920 * @param mixed $value
1921 * @return void
1922 * @static
1923 */
1924 public static function offsetSet($key, $value)
1925 {
1926 //Method inherited from \Illuminate\Container\Container
1927 /** @var \Illuminate\Foundation\Application $instance */
1928 $instance->offsetSet($key, $value);
1929 }
1930
1931 /**
1932 * Unset the value at a given offset.
1933 *
1934 * @param string $key
1935 * @return void
1936 * @static
1937 */
1938 public static function offsetUnset($key)
1939 {
1940 //Method inherited from \Illuminate\Container\Container
1941 /** @var \Illuminate\Foundation\Application $instance */
1942 $instance->offsetUnset($key);
1943 }
1944
1945 /**
1946 * Register a custom macro.
1947 *
1948 * @param string $name
1949 * @param object|callable $macro
1950 * @param-closure-this static $macro
1951 * @return void
1952 * @static
1953 */
1954 public static function macro($name, $macro)
1955 {
1956 \Illuminate\Foundation\Application::macro($name, $macro);
1957 }
1958
1959 /**
1960 * Mix another object into the class.
1961 *
1962 * @param object $mixin
1963 * @param bool $replace
1964 * @return void
1965 * @throws \ReflectionException
1966 * @static
1967 */
1968 public static function mixin($mixin, $replace = true)
1969 {
1970 \Illuminate\Foundation\Application::mixin($mixin, $replace);
1971 }
1972
1973 /**
1974 * Checks if macro is registered.
1975 *
1976 * @param string $name
1977 * @return bool
1978 * @static
1979 */
1980 public static function hasMacro($name)
1981 {
1982 return \Illuminate\Foundation\Application::hasMacro($name);
1983 }
1984
1985 /**
1986 * Flush the existing macros.
1987 *
1988 * @return void
1989 * @static
1990 */
1991 public static function flushMacros()
1992 {
1993 \Illuminate\Foundation\Application::flushMacros();
1994 }
1995
1996 }
1997 /**
1998 * @see \Illuminate\Foundation\Console\Kernel
1999 */
2000 class Artisan {
2001 /**
2002 * Re-route the Symfony command events to their Laravel counterparts.
2003 *
2004 * @internal
2005 * @return \Illuminate\Foundation\Console\Kernel
2006 * @static
2007 */
2008 public static function rerouteSymfonyCommandEvents()
2009 {
2010 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2011 return $instance->rerouteSymfonyCommandEvents();
2012 }
2013
2014 /**
2015 * Run the console application.
2016 *
2017 * @param \Symfony\Component\Console\Input\InputInterface $input
2018 * @param \Symfony\Component\Console\Output\OutputInterface|null $output
2019 * @return int
2020 * @static
2021 */
2022 public static function handle($input, $output = null)
2023 {
2024 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2025 return $instance->handle($input, $output);
2026 }
2027
2028 /**
2029 * Terminate the application.
2030 *
2031 * @param \Symfony\Component\Console\Input\InputInterface $input
2032 * @param int $status
2033 * @return void
2034 * @static
2035 */
2036 public static function terminate($input, $status)
2037 {
2038 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2039 $instance->terminate($input, $status);
2040 }
2041
2042 /**
2043 * Register a callback to be invoked when the command lifecycle duration exceeds a given amount of time.
2044 *
2045 * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
2046 * @param callable $handler
2047 * @return void
2048 * @static
2049 */
2050 public static function whenCommandLifecycleIsLongerThan($threshold, $handler)
2051 {
2052 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2053 $instance->whenCommandLifecycleIsLongerThan($threshold, $handler);
2054 }
2055
2056 /**
2057 * When the command being handled started.
2058 *
2059 * @return \Illuminate\Support\Carbon|null
2060 * @static
2061 */
2062 public static function commandStartedAt()
2063 {
2064 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2065 return $instance->commandStartedAt();
2066 }
2067
2068 /**
2069 * Resolve a console schedule instance.
2070 *
2071 * @return \Illuminate\Console\Scheduling\Schedule
2072 * @static
2073 */
2074 public static function resolveConsoleSchedule()
2075 {
2076 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2077 return $instance->resolveConsoleSchedule();
2078 }
2079
2080 /**
2081 * Register a Closure based command with the application.
2082 *
2083 * @param string $signature
2084 * @param \Closure $callback
2085 * @return \Illuminate\Foundation\Console\ClosureCommand
2086 * @static
2087 */
2088 public static function command($signature, $callback)
2089 {
2090 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2091 return $instance->command($signature, $callback);
2092 }
2093
2094 /**
2095 * Register the given command with the console application.
2096 *
2097 * @param \Symfony\Component\Console\Command\Command $command
2098 * @return void
2099 * @static
2100 */
2101 public static function registerCommand($command)
2102 {
2103 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2104 $instance->registerCommand($command);
2105 }
2106
2107 /**
2108 * Run an Artisan console command by name.
2109 *
2110 * @param \Symfony\Component\Console\Command\Command|string $command
2111 * @param array $parameters
2112 * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
2113 * @return int
2114 * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
2115 * @static
2116 */
2117 public static function call($command, $parameters = [], $outputBuffer = null)
2118 {
2119 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2120 return $instance->call($command, $parameters, $outputBuffer);
2121 }
2122
2123 /**
2124 * Queue the given console command.
2125 *
2126 * @param string $command
2127 * @param array $parameters
2128 * @return \Illuminate\Foundation\Bus\PendingDispatch
2129 * @static
2130 */
2131 public static function queue($command, $parameters = [])
2132 {
2133 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2134 return $instance->queue($command, $parameters);
2135 }
2136
2137 /**
2138 * Get all of the commands registered with the console.
2139 *
2140 * @return array
2141 * @static
2142 */
2143 public static function all()
2144 {
2145 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2146 return $instance->all();
2147 }
2148
2149 /**
2150 * Get the output for the last run command.
2151 *
2152 * @return string
2153 * @static
2154 */
2155 public static function output()
2156 {
2157 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2158 return $instance->output();
2159 }
2160
2161 /**
2162 * Bootstrap the application for artisan commands.
2163 *
2164 * @return void
2165 * @static
2166 */
2167 public static function bootstrap()
2168 {
2169 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2170 $instance->bootstrap();
2171 }
2172
2173 /**
2174 * Bootstrap the application without booting service providers.
2175 *
2176 * @return void
2177 * @static
2178 */
2179 public static function bootstrapWithoutBootingProviders()
2180 {
2181 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2182 $instance->bootstrapWithoutBootingProviders();
2183 }
2184
2185 /**
2186 * Set the Artisan application instance.
2187 *
2188 * @param \Illuminate\Console\Application|null $artisan
2189 * @return void
2190 * @static
2191 */
2192 public static function setArtisan($artisan)
2193 {
2194 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2195 $instance->setArtisan($artisan);
2196 }
2197
2198 /**
2199 * Set the Artisan commands provided by the application.
2200 *
2201 * @param array $commands
2202 * @return \Illuminate\Foundation\Console\Kernel
2203 * @static
2204 */
2205 public static function addCommands($commands)
2206 {
2207 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2208 return $instance->addCommands($commands);
2209 }
2210
2211 /**
2212 * Set the paths that should have their Artisan commands automatically discovered.
2213 *
2214 * @param array $paths
2215 * @return \Illuminate\Foundation\Console\Kernel
2216 * @static
2217 */
2218 public static function addCommandPaths($paths)
2219 {
2220 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2221 return $instance->addCommandPaths($paths);
2222 }
2223
2224 /**
2225 * Set the paths that should have their Artisan "routes" automatically discovered.
2226 *
2227 * @param array $paths
2228 * @return \Illuminate\Foundation\Console\Kernel
2229 * @static
2230 */
2231 public static function addCommandRoutePaths($paths)
2232 {
2233 /** @var \Illuminate\Foundation\Console\Kernel $instance */
2234 return $instance->addCommandRoutePaths($paths);
2235 }
2236
2237 }
2238 /**
2239 * @see \Illuminate\Auth\AuthManager
2240 * @see \Illuminate\Auth\SessionGuard
2241 */
2242 class Auth {
2243 /**
2244 * Attempt to get the guard from the local cache.
2245 *
2246 * @param string|null $name
2247 * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
2248 * @static
2249 */
2250 public static function guard($name = null)
2251 {
2252 /** @var \Illuminate\Auth\AuthManager $instance */
2253 return $instance->guard($name);
2254 }
2255
2256 /**
2257 * Create a session based authentication guard.
2258 *
2259 * @param string $name
2260 * @param array $config
2261 * @return \Illuminate\Auth\SessionGuard
2262 * @static
2263 */
2264 public static function createSessionDriver($name, $config)
2265 {
2266 /** @var \Illuminate\Auth\AuthManager $instance */
2267 return $instance->createSessionDriver($name, $config);
2268 }
2269
2270 /**
2271 * Create a token based authentication guard.
2272 *
2273 * @param string $name
2274 * @param array $config
2275 * @return \Illuminate\Auth\TokenGuard
2276 * @static
2277 */
2278 public static function createTokenDriver($name, $config)
2279 {
2280 /** @var \Illuminate\Auth\AuthManager $instance */
2281 return $instance->createTokenDriver($name, $config);
2282 }
2283
2284 /**
2285 * Get the default authentication driver name.
2286 *
2287 * @return string
2288 * @static
2289 */
2290 public static function getDefaultDriver()
2291 {
2292 /** @var \Illuminate\Auth\AuthManager $instance */
2293 return $instance->getDefaultDriver();
2294 }
2295
2296 /**
2297 * Set the default guard driver the factory should serve.
2298 *
2299 * @param string $name
2300 * @return void
2301 * @static
2302 */
2303 public static function shouldUse($name)
2304 {
2305 /** @var \Illuminate\Auth\AuthManager $instance */
2306 $instance->shouldUse($name);
2307 }
2308
2309 /**
2310 * Set the default authentication driver name.
2311 *
2312 * @param string $name
2313 * @return void
2314 * @static
2315 */
2316 public static function setDefaultDriver($name)
2317 {
2318 /** @var \Illuminate\Auth\AuthManager $instance */
2319 $instance->setDefaultDriver($name);
2320 }
2321
2322 /**
2323 * Register a new callback based request guard.
2324 *
2325 * @param string $driver
2326 * @param callable $callback
2327 * @return \Illuminate\Auth\AuthManager
2328 * @static
2329 */
2330 public static function viaRequest($driver, $callback)
2331 {
2332 /** @var \Illuminate\Auth\AuthManager $instance */
2333 return $instance->viaRequest($driver, $callback);
2334 }
2335
2336 /**
2337 * Get the user resolver callback.
2338 *
2339 * @return \Closure
2340 * @static
2341 */
2342 public static function userResolver()
2343 {
2344 /** @var \Illuminate\Auth\AuthManager $instance */
2345 return $instance->userResolver();
2346 }
2347
2348 /**
2349 * Set the callback to be used to resolve users.
2350 *
2351 * @param \Closure $userResolver
2352 * @return \Illuminate\Auth\AuthManager
2353 * @static
2354 */
2355 public static function resolveUsersUsing($userResolver)
2356 {
2357 /** @var \Illuminate\Auth\AuthManager $instance */
2358 return $instance->resolveUsersUsing($userResolver);
2359 }
2360
2361 /**
2362 * Register a custom driver creator Closure.
2363 *
2364 * @param string $driver
2365 * @param \Closure $callback
2366 * @return \Illuminate\Auth\AuthManager
2367 * @static
2368 */
2369 public static function extend($driver, $callback)
2370 {
2371 /** @var \Illuminate\Auth\AuthManager $instance */
2372 return $instance->extend($driver, $callback);
2373 }
2374
2375 /**
2376 * Register a custom provider creator Closure.
2377 *
2378 * @param string $name
2379 * @param \Closure $callback
2380 * @return \Illuminate\Auth\AuthManager
2381 * @static
2382 */
2383 public static function provider($name, $callback)
2384 {
2385 /** @var \Illuminate\Auth\AuthManager $instance */
2386 return $instance->provider($name, $callback);
2387 }
2388
2389 /**
2390 * Determines if any guards have already been resolved.
2391 *
2392 * @return bool
2393 * @static
2394 */
2395 public static function hasResolvedGuards()
2396 {
2397 /** @var \Illuminate\Auth\AuthManager $instance */
2398 return $instance->hasResolvedGuards();
2399 }
2400
2401 /**
2402 * Forget all of the resolved guard instances.
2403 *
2404 * @return \Illuminate\Auth\AuthManager
2405 * @static
2406 */
2407 public static function forgetGuards()
2408 {
2409 /** @var \Illuminate\Auth\AuthManager $instance */
2410 return $instance->forgetGuards();
2411 }
2412
2413 /**
2414 * Set the application instance used by the manager.
2415 *
2416 * @param \Illuminate\Contracts\Foundation\Application $app
2417 * @return \Illuminate\Auth\AuthManager
2418 * @static
2419 */
2420 public static function setApplication($app)
2421 {
2422 /** @var \Illuminate\Auth\AuthManager $instance */
2423 return $instance->setApplication($app);
2424 }
2425
2426 /**
2427 * Create the user provider implementation for the driver.
2428 *
2429 * @param string|null $provider
2430 * @return \Illuminate\Contracts\Auth\UserProvider|null
2431 * @throws \InvalidArgumentException
2432 * @static
2433 */
2434 public static function createUserProvider($provider = null)
2435 {
2436 /** @var \Illuminate\Auth\AuthManager $instance */
2437 return $instance->createUserProvider($provider);
2438 }
2439
2440 /**
2441 * Get the default user provider name.
2442 *
2443 * @return string
2444 * @static
2445 */
2446 public static function getDefaultUserProvider()
2447 {
2448 /** @var \Illuminate\Auth\AuthManager $instance */
2449 return $instance->getDefaultUserProvider();
2450 }
2451
2452 /**
2453 * Get the currently authenticated user.
2454 *
2455 * @return \App\Models\User|null
2456 * @static
2457 */
2458 public static function user()
2459 {
2460 /** @var \Illuminate\Auth\SessionGuard $instance */
2461 return $instance->user();
2462 }
2463
2464 /**
2465 * Get the ID for the currently authenticated user.
2466 *
2467 * @return int|string|null
2468 * @static
2469 */
2470 public static function id()
2471 {
2472 /** @var \Illuminate\Auth\SessionGuard $instance */
2473 return $instance->id();
2474 }
2475
2476 /**
2477 * Log a user into the application without sessions or cookies.
2478 *
2479 * @param array $credentials
2480 * @return bool
2481 * @static
2482 */
2483 public static function once($credentials = [])
2484 {
2485 /** @var \Illuminate\Auth\SessionGuard $instance */
2486 return $instance->once($credentials);
2487 }
2488
2489 /**
2490 * Log the given user ID into the application without sessions or cookies.
2491 *
2492 * @param mixed $id
2493 * @return \App\Models\User|false
2494 * @static
2495 */
2496 public static function onceUsingId($id)
2497 {
2498 /** @var \Illuminate\Auth\SessionGuard $instance */
2499 return $instance->onceUsingId($id);
2500 }
2501
2502 /**
2503 * Validate a user's credentials.
2504 *
2505 * @param array $credentials
2506 * @return bool
2507 * @static
2508 */
2509 public static function validate($credentials = [])
2510 {
2511 /** @var \Illuminate\Auth\SessionGuard $instance */
2512 return $instance->validate($credentials);
2513 }
2514
2515 /**
2516 * Attempt to authenticate using HTTP Basic Auth.
2517 *
2518 * @param string $field
2519 * @param array $extraConditions
2520 * @return \Symfony\Component\HttpFoundation\Response|null
2521 * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
2522 * @static
2523 */
2524 public static function basic($field = 'email', $extraConditions = [])
2525 {
2526 /** @var \Illuminate\Auth\SessionGuard $instance */
2527 return $instance->basic($field, $extraConditions);
2528 }
2529
2530 /**
2531 * Perform a stateless HTTP Basic login attempt.
2532 *
2533 * @param string $field
2534 * @param array $extraConditions
2535 * @return \Symfony\Component\HttpFoundation\Response|null
2536 * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
2537 * @static
2538 */
2539 public static function onceBasic($field = 'email', $extraConditions = [])
2540 {
2541 /** @var \Illuminate\Auth\SessionGuard $instance */
2542 return $instance->onceBasic($field, $extraConditions);
2543 }
2544
2545 /**
2546 * Attempt to authenticate a user using the given credentials.
2547 *
2548 * @param array $credentials
2549 * @param bool $remember
2550 * @return bool
2551 * @static
2552 */
2553 public static function attempt($credentials = [], $remember = false)
2554 {
2555 /** @var \Illuminate\Auth\SessionGuard $instance */
2556 return $instance->attempt($credentials, $remember);
2557 }
2558
2559 /**
2560 * Attempt to authenticate a user with credentials and additional callbacks.
2561 *
2562 * @param array $credentials
2563 * @param array|callable|null $callbacks
2564 * @param bool $remember
2565 * @return bool
2566 * @static
2567 */
2568 public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
2569 {
2570 /** @var \Illuminate\Auth\SessionGuard $instance */
2571 return $instance->attemptWhen($credentials, $callbacks, $remember);
2572 }
2573
2574 /**
2575 * Log the given user ID into the application.
2576 *
2577 * @param mixed $id
2578 * @param bool $remember
2579 * @return \App\Models\User|false
2580 * @static
2581 */
2582 public static function loginUsingId($id, $remember = false)
2583 {
2584 /** @var \Illuminate\Auth\SessionGuard $instance */
2585 return $instance->loginUsingId($id, $remember);
2586 }
2587
2588 /**
2589 * Log a user into the application.
2590 *
2591 * @param \Illuminate\Contracts\Auth\Authenticatable $user
2592 * @param bool $remember
2593 * @return void
2594 * @static
2595 */
2596 public static function login($user, $remember = false)
2597 {
2598 /** @var \Illuminate\Auth\SessionGuard $instance */
2599 $instance->login($user, $remember);
2600 }
2601
2602 /**
2603 * Log the user out of the application.
2604 *
2605 * @return void
2606 * @static
2607 */
2608 public static function logout()
2609 {
2610 /** @var \Illuminate\Auth\SessionGuard $instance */
2611 $instance->logout();
2612 }
2613
2614 /**
2615 * Log the user out of the application on their current device only.
2616 *
2617 * This method does not cycle the "remember" token.
2618 *
2619 * @return void
2620 * @static
2621 */
2622 public static function logoutCurrentDevice()
2623 {
2624 /** @var \Illuminate\Auth\SessionGuard $instance */
2625 $instance->logoutCurrentDevice();
2626 }
2627
2628 /**
2629 * Invalidate other sessions for the current user.
2630 *
2631 * The application must be using the AuthenticateSession middleware.
2632 *
2633 * @param string $password
2634 * @return \App\Models\User|null
2635 * @throws \Illuminate\Auth\AuthenticationException
2636 * @static
2637 */
2638 public static function logoutOtherDevices($password)
2639 {
2640 /** @var \Illuminate\Auth\SessionGuard $instance */
2641 return $instance->logoutOtherDevices($password);
2642 }
2643
2644 /**
2645 * Register an authentication attempt event listener.
2646 *
2647 * @param mixed $callback
2648 * @return void
2649 * @static
2650 */
2651 public static function attempting($callback)
2652 {
2653 /** @var \Illuminate\Auth\SessionGuard $instance */
2654 $instance->attempting($callback);
2655 }
2656
2657 /**
2658 * Get the last user we attempted to authenticate.
2659 *
2660 * @return \App\Models\User
2661 * @static
2662 */
2663 public static function getLastAttempted()
2664 {
2665 /** @var \Illuminate\Auth\SessionGuard $instance */
2666 return $instance->getLastAttempted();
2667 }
2668
2669 /**
2670 * Get a unique identifier for the auth session value.
2671 *
2672 * @return string
2673 * @static
2674 */
2675 public static function getName()
2676 {
2677 /** @var \Illuminate\Auth\SessionGuard $instance */
2678 return $instance->getName();
2679 }
2680
2681 /**
2682 * Get the name of the cookie used to store the "recaller".
2683 *
2684 * @return string
2685 * @static
2686 */
2687 public static function getRecallerName()
2688 {
2689 /** @var \Illuminate\Auth\SessionGuard $instance */
2690 return $instance->getRecallerName();
2691 }
2692
2693 /**
2694 * Determine if the user was authenticated via "remember me" cookie.
2695 *
2696 * @return bool
2697 * @static
2698 */
2699 public static function viaRemember()
2700 {
2701 /** @var \Illuminate\Auth\SessionGuard $instance */
2702 return $instance->viaRemember();
2703 }
2704
2705 /**
2706 * Set the number of minutes the remember me cookie should be valid for.
2707 *
2708 * @param int $minutes
2709 * @return \Illuminate\Auth\SessionGuard
2710 * @static
2711 */
2712 public static function setRememberDuration($minutes)
2713 {
2714 /** @var \Illuminate\Auth\SessionGuard $instance */
2715 return $instance->setRememberDuration($minutes);
2716 }
2717
2718 /**
2719 * Get the cookie creator instance used by the guard.
2720 *
2721 * @return \Illuminate\Contracts\Cookie\QueueingFactory
2722 * @throws \RuntimeException
2723 * @static
2724 */
2725 public static function getCookieJar()
2726 {
2727 /** @var \Illuminate\Auth\SessionGuard $instance */
2728 return $instance->getCookieJar();
2729 }
2730
2731 /**
2732 * Set the cookie creator instance used by the guard.
2733 *
2734 * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
2735 * @return void
2736 * @static
2737 */
2738 public static function setCookieJar($cookie)
2739 {
2740 /** @var \Illuminate\Auth\SessionGuard $instance */
2741 $instance->setCookieJar($cookie);
2742 }
2743
2744 /**
2745 * Get the event dispatcher instance.
2746 *
2747 * @return \Illuminate\Contracts\Events\Dispatcher
2748 * @static
2749 */
2750 public static function getDispatcher()
2751 {
2752 /** @var \Illuminate\Auth\SessionGuard $instance */
2753 return $instance->getDispatcher();
2754 }
2755
2756 /**
2757 * Set the event dispatcher instance.
2758 *
2759 * @param \Illuminate\Contracts\Events\Dispatcher $events
2760 * @return void
2761 * @static
2762 */
2763 public static function setDispatcher($events)
2764 {
2765 /** @var \Illuminate\Auth\SessionGuard $instance */
2766 $instance->setDispatcher($events);
2767 }
2768
2769 /**
2770 * Get the session store used by the guard.
2771 *
2772 * @return \Illuminate\Contracts\Session\Session
2773 * @static
2774 */
2775 public static function getSession()
2776 {
2777 /** @var \Illuminate\Auth\SessionGuard $instance */
2778 return $instance->getSession();
2779 }
2780
2781 /**
2782 * Return the currently cached user.
2783 *
2784 * @return \App\Models\User|null
2785 * @static
2786 */
2787 public static function getUser()
2788 {
2789 /** @var \Illuminate\Auth\SessionGuard $instance */
2790 return $instance->getUser();
2791 }
2792
2793 /**
2794 * Set the current user.
2795 *
2796 * @param \Illuminate\Contracts\Auth\Authenticatable $user
2797 * @return \Illuminate\Auth\SessionGuard
2798 * @static
2799 */
2800 public static function setUser($user)
2801 {
2802 /** @var \Illuminate\Auth\SessionGuard $instance */
2803 return $instance->setUser($user);
2804 }
2805
2806 /**
2807 * Get the current request instance.
2808 *
2809 * @return \Symfony\Component\HttpFoundation\Request
2810 * @static
2811 */
2812 public static function getRequest()
2813 {
2814 /** @var \Illuminate\Auth\SessionGuard $instance */
2815 return $instance->getRequest();
2816 }
2817
2818 /**
2819 * Set the current request instance.
2820 *
2821 * @param \Symfony\Component\HttpFoundation\Request $request
2822 * @return \Illuminate\Auth\SessionGuard
2823 * @static
2824 */
2825 public static function setRequest($request)
2826 {
2827 /** @var \Illuminate\Auth\SessionGuard $instance */
2828 return $instance->setRequest($request);
2829 }
2830
2831 /**
2832 * Get the timebox instance used by the guard.
2833 *
2834 * @return \Illuminate\Support\Timebox
2835 * @static
2836 */
2837 public static function getTimebox()
2838 {
2839 /** @var \Illuminate\Auth\SessionGuard $instance */
2840 return $instance->getTimebox();
2841 }
2842
2843 /**
2844 * Determine if the current user is authenticated. If not, throw an exception.
2845 *
2846 * @return \App\Models\User
2847 * @throws \Illuminate\Auth\AuthenticationException
2848 * @static
2849 */
2850 public static function authenticate()
2851 {
2852 /** @var \Illuminate\Auth\SessionGuard $instance */
2853 return $instance->authenticate();
2854 }
2855
2856 /**
2857 * Determine if the guard has a user instance.
2858 *
2859 * @return bool
2860 * @static
2861 */
2862 public static function hasUser()
2863 {
2864 /** @var \Illuminate\Auth\SessionGuard $instance */
2865 return $instance->hasUser();
2866 }
2867
2868 /**
2869 * Determine if the current user is authenticated.
2870 *
2871 * @return bool
2872 * @static
2873 */
2874 public static function check()
2875 {
2876 /** @var \Illuminate\Auth\SessionGuard $instance */
2877 return $instance->check();
2878 }
2879
2880 /**
2881 * Determine if the current user is a guest.
2882 *
2883 * @return bool
2884 * @static
2885 */
2886 public static function guest()
2887 {
2888 /** @var \Illuminate\Auth\SessionGuard $instance */
2889 return $instance->guest();
2890 }
2891
2892 /**
2893 * Forget the current user.
2894 *
2895 * @return \Illuminate\Auth\SessionGuard
2896 * @static
2897 */
2898 public static function forgetUser()
2899 {
2900 /** @var \Illuminate\Auth\SessionGuard $instance */
2901 return $instance->forgetUser();
2902 }
2903
2904 /**
2905 * Get the user provider used by the guard.
2906 *
2907 * @return \Illuminate\Contracts\Auth\UserProvider
2908 * @static
2909 */
2910 public static function getProvider()
2911 {
2912 /** @var \Illuminate\Auth\SessionGuard $instance */
2913 return $instance->getProvider();
2914 }
2915
2916 /**
2917 * Set the user provider used by the guard.
2918 *
2919 * @param \Illuminate\Contracts\Auth\UserProvider $provider
2920 * @return void
2921 * @static
2922 */
2923 public static function setProvider($provider)
2924 {
2925 /** @var \Illuminate\Auth\SessionGuard $instance */
2926 $instance->setProvider($provider);
2927 }
2928
2929 /**
2930 * Register a custom macro.
2931 *
2932 * @param string $name
2933 * @param object|callable $macro
2934 * @param-closure-this static $macro
2935 * @return void
2936 * @static
2937 */
2938 public static function macro($name, $macro)
2939 {
2940 \Illuminate\Auth\SessionGuard::macro($name, $macro);
2941 }
2942
2943 /**
2944 * Mix another object into the class.
2945 *
2946 * @param object $mixin
2947 * @param bool $replace
2948 * @return void
2949 * @throws \ReflectionException
2950 * @static
2951 */
2952 public static function mixin($mixin, $replace = true)
2953 {
2954 \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
2955 }
2956
2957 /**
2958 * Checks if macro is registered.
2959 *
2960 * @param string $name
2961 * @return bool
2962 * @static
2963 */
2964 public static function hasMacro($name)
2965 {
2966 return \Illuminate\Auth\SessionGuard::hasMacro($name);
2967 }
2968
2969 /**
2970 * Flush the existing macros.
2971 *
2972 * @return void
2973 * @static
2974 */
2975 public static function flushMacros()
2976 {
2977 \Illuminate\Auth\SessionGuard::flushMacros();
2978 }
2979
2980 }
2981 /**
2982 * @see \Illuminate\View\Compilers\BladeCompiler
2983 */
2984 class Blade {
2985 /**
2986 * Compile the view at the given path.
2987 *
2988 * @param string|null $path
2989 * @return void
2990 * @static
2991 */
2992 public static function compile($path = null)
2993 {
2994 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
2995 $instance->compile($path);
2996 }
2997
2998 /**
2999 * Get the path currently being compiled.
3000 *
3001 * @return string
3002 * @static
3003 */
3004 public static function getPath()
3005 {
3006 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3007 return $instance->getPath();
3008 }
3009
3010 /**
3011 * Set the path currently being compiled.
3012 *
3013 * @param string $path
3014 * @return void
3015 * @static
3016 */
3017 public static function setPath($path)
3018 {
3019 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3020 $instance->setPath($path);
3021 }
3022
3023 /**
3024 * Compile the given Blade template contents.
3025 *
3026 * @param string $value
3027 * @return string
3028 * @static
3029 */
3030 public static function compileString($value)
3031 {
3032 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3033 return $instance->compileString($value);
3034 }
3035
3036 /**
3037 * Evaluate and render a Blade string to HTML.
3038 *
3039 * @param string $string
3040 * @param array $data
3041 * @param bool $deleteCachedView
3042 * @return string
3043 * @static
3044 */
3045 public static function render($string, $data = [], $deleteCachedView = false)
3046 {
3047 return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
3048 }
3049
3050 /**
3051 * Render a component instance to HTML.
3052 *
3053 * @param \Illuminate\View\Component $component
3054 * @return string
3055 * @static
3056 */
3057 public static function renderComponent($component)
3058 {
3059 return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
3060 }
3061
3062 /**
3063 * Strip the parentheses from the given expression.
3064 *
3065 * @param string $expression
3066 * @return string
3067 * @static
3068 */
3069 public static function stripParentheses($expression)
3070 {
3071 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3072 return $instance->stripParentheses($expression);
3073 }
3074
3075 /**
3076 * Register a custom Blade compiler.
3077 *
3078 * @param callable $compiler
3079 * @return void
3080 * @static
3081 */
3082 public static function extend($compiler)
3083 {
3084 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3085 $instance->extend($compiler);
3086 }
3087
3088 /**
3089 * Get the extensions used by the compiler.
3090 *
3091 * @return array
3092 * @static
3093 */
3094 public static function getExtensions()
3095 {
3096 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3097 return $instance->getExtensions();
3098 }
3099
3100 /**
3101 * Register an "if" statement directive.
3102 *
3103 * @param string $name
3104 * @param callable $callback
3105 * @return void
3106 * @static
3107 */
3108 public static function if($name, $callback)
3109 {
3110 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3111 $instance->if($name, $callback);
3112 }
3113
3114 /**
3115 * Check the result of a condition.
3116 *
3117 * @param string $name
3118 * @param mixed $parameters
3119 * @return bool
3120 * @static
3121 */
3122 public static function check($name, ...$parameters)
3123 {
3124 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3125 return $instance->check($name, ...$parameters);
3126 }
3127
3128 /**
3129 * Register a class-based component alias directive.
3130 *
3131 * @param string $class
3132 * @param string|null $alias
3133 * @param string $prefix
3134 * @return void
3135 * @static
3136 */
3137 public static function component($class, $alias = null, $prefix = '')
3138 {
3139 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3140 $instance->component($class, $alias, $prefix);
3141 }
3142
3143 /**
3144 * Register an array of class-based components.
3145 *
3146 * @param array $components
3147 * @param string $prefix
3148 * @return void
3149 * @static
3150 */
3151 public static function components($components, $prefix = '')
3152 {
3153 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3154 $instance->components($components, $prefix);
3155 }
3156
3157 /**
3158 * Get the registered class component aliases.
3159 *
3160 * @return array
3161 * @static
3162 */
3163 public static function getClassComponentAliases()
3164 {
3165 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3166 return $instance->getClassComponentAliases();
3167 }
3168
3169 /**
3170 * Register a new anonymous component path.
3171 *
3172 * @param string $path
3173 * @param string|null $prefix
3174 * @return void
3175 * @static
3176 */
3177 public static function anonymousComponentPath($path, $prefix = null)
3178 {
3179 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3180 $instance->anonymousComponentPath($path, $prefix);
3181 }
3182
3183 /**
3184 * Register an anonymous component namespace.
3185 *
3186 * @param string $directory
3187 * @param string|null $prefix
3188 * @return void
3189 * @static
3190 */
3191 public static function anonymousComponentNamespace($directory, $prefix = null)
3192 {
3193 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3194 $instance->anonymousComponentNamespace($directory, $prefix);
3195 }
3196
3197 /**
3198 * Register a class-based component namespace.
3199 *
3200 * @param string $namespace
3201 * @param string $prefix
3202 * @return void
3203 * @static
3204 */
3205 public static function componentNamespace($namespace, $prefix)
3206 {
3207 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3208 $instance->componentNamespace($namespace, $prefix);
3209 }
3210
3211 /**
3212 * Get the registered anonymous component paths.
3213 *
3214 * @return array
3215 * @static
3216 */
3217 public static function getAnonymousComponentPaths()
3218 {
3219 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3220 return $instance->getAnonymousComponentPaths();
3221 }
3222
3223 /**
3224 * Get the registered anonymous component namespaces.
3225 *
3226 * @return array
3227 * @static
3228 */
3229 public static function getAnonymousComponentNamespaces()
3230 {
3231 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3232 return $instance->getAnonymousComponentNamespaces();
3233 }
3234
3235 /**
3236 * Get the registered class component namespaces.
3237 *
3238 * @return array
3239 * @static
3240 */
3241 public static function getClassComponentNamespaces()
3242 {
3243 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3244 return $instance->getClassComponentNamespaces();
3245 }
3246
3247 /**
3248 * Register a component alias directive.
3249 *
3250 * @param string $path
3251 * @param string|null $alias
3252 * @return void
3253 * @static
3254 */
3255 public static function aliasComponent($path, $alias = null)
3256 {
3257 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3258 $instance->aliasComponent($path, $alias);
3259 }
3260
3261 /**
3262 * Register an include alias directive.
3263 *
3264 * @param string $path
3265 * @param string|null $alias
3266 * @return void
3267 * @static
3268 */
3269 public static function include($path, $alias = null)
3270 {
3271 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3272 $instance->include($path, $alias);
3273 }
3274
3275 /**
3276 * Register an include alias directive.
3277 *
3278 * @param string $path
3279 * @param string|null $alias
3280 * @return void
3281 * @static
3282 */
3283 public static function aliasInclude($path, $alias = null)
3284 {
3285 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3286 $instance->aliasInclude($path, $alias);
3287 }
3288
3289 /**
3290 * Register a handler for custom directives, binding the handler to the compiler.
3291 *
3292 * @param string $name
3293 * @param callable $handler
3294 * @return void
3295 * @throws \InvalidArgumentException
3296 * @static
3297 */
3298 public static function bindDirective($name, $handler)
3299 {
3300 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3301 $instance->bindDirective($name, $handler);
3302 }
3303
3304 /**
3305 * Register a handler for custom directives.
3306 *
3307 * @param string $name
3308 * @param callable $handler
3309 * @param bool $bind
3310 * @return void
3311 * @throws \InvalidArgumentException
3312 * @static
3313 */
3314 public static function directive($name, $handler, $bind = false)
3315 {
3316 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3317 $instance->directive($name, $handler, $bind);
3318 }
3319
3320 /**
3321 * Get the list of custom directives.
3322 *
3323 * @return array
3324 * @static
3325 */
3326 public static function getCustomDirectives()
3327 {
3328 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3329 return $instance->getCustomDirectives();
3330 }
3331
3332 /**
3333 * Indicate that the following callable should be used to prepare strings for compilation.
3334 *
3335 * @param callable $callback
3336 * @return \Illuminate\View\Compilers\BladeCompiler
3337 * @static
3338 */
3339 public static function prepareStringsForCompilationUsing($callback)
3340 {
3341 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3342 return $instance->prepareStringsForCompilationUsing($callback);
3343 }
3344
3345 /**
3346 * Register a new precompiler.
3347 *
3348 * @param callable $precompiler
3349 * @return void
3350 * @static
3351 */
3352 public static function precompiler($precompiler)
3353 {
3354 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3355 $instance->precompiler($precompiler);
3356 }
3357
3358 /**
3359 * Execute the given callback using a custom echo format.
3360 *
3361 * @param string $format
3362 * @param callable $callback
3363 * @return string
3364 * @static
3365 */
3366 public static function usingEchoFormat($format, $callback)
3367 {
3368 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3369 return $instance->usingEchoFormat($format, $callback);
3370 }
3371
3372 /**
3373 * Set the echo format to be used by the compiler.
3374 *
3375 * @param string $format
3376 * @return void
3377 * @static
3378 */
3379 public static function setEchoFormat($format)
3380 {
3381 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3382 $instance->setEchoFormat($format);
3383 }
3384
3385 /**
3386 * Set the "echo" format to double encode entities.
3387 *
3388 * @return void
3389 * @static
3390 */
3391 public static function withDoubleEncoding()
3392 {
3393 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3394 $instance->withDoubleEncoding();
3395 }
3396
3397 /**
3398 * Set the "echo" format to not double encode entities.
3399 *
3400 * @return void
3401 * @static
3402 */
3403 public static function withoutDoubleEncoding()
3404 {
3405 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3406 $instance->withoutDoubleEncoding();
3407 }
3408
3409 /**
3410 * Indicate that component tags should not be compiled.
3411 *
3412 * @return void
3413 * @static
3414 */
3415 public static function withoutComponentTags()
3416 {
3417 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3418 $instance->withoutComponentTags();
3419 }
3420
3421 /**
3422 * Get the path to the compiled version of a view.
3423 *
3424 * @param string $path
3425 * @return string
3426 * @static
3427 */
3428 public static function getCompiledPath($path)
3429 {
3430 //Method inherited from \Illuminate\View\Compilers\Compiler
3431 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3432 return $instance->getCompiledPath($path);
3433 }
3434
3435 /**
3436 * Determine if the view at the given path is expired.
3437 *
3438 * @param string $path
3439 * @return bool
3440 * @throws \ErrorException
3441 * @static
3442 */
3443 public static function isExpired($path)
3444 {
3445 //Method inherited from \Illuminate\View\Compilers\Compiler
3446 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3447 return $instance->isExpired($path);
3448 }
3449
3450 /**
3451 * Get a new component hash for a component name.
3452 *
3453 * @param string $component
3454 * @return string
3455 * @static
3456 */
3457 public static function newComponentHash($component)
3458 {
3459 return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
3460 }
3461
3462 /**
3463 * Compile a class component opening.
3464 *
3465 * @param string $component
3466 * @param string $alias
3467 * @param string $data
3468 * @param string $hash
3469 * @return string
3470 * @static
3471 */
3472 public static function compileClassComponentOpening($component, $alias, $data, $hash)
3473 {
3474 return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
3475 }
3476
3477 /**
3478 * Compile the end-component statements into valid PHP.
3479 *
3480 * @return string
3481 * @static
3482 */
3483 public static function compileEndComponentClass()
3484 {
3485 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3486 return $instance->compileEndComponentClass();
3487 }
3488
3489 /**
3490 * Sanitize the given component attribute value.
3491 *
3492 * @param mixed $value
3493 * @return mixed
3494 * @static
3495 */
3496 public static function sanitizeComponentAttribute($value)
3497 {
3498 return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
3499 }
3500
3501 /**
3502 * Compile an end-once block into valid PHP.
3503 *
3504 * @return string
3505 * @static
3506 */
3507 public static function compileEndOnce()
3508 {
3509 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3510 return $instance->compileEndOnce();
3511 }
3512
3513 /**
3514 * Add a handler to be executed before echoing a given class.
3515 *
3516 * @param string|callable $class
3517 * @param callable|null $handler
3518 * @return void
3519 * @static
3520 */
3521 public static function stringable($class, $handler = null)
3522 {
3523 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3524 $instance->stringable($class, $handler);
3525 }
3526
3527 /**
3528 * Compile Blade echos into valid PHP.
3529 *
3530 * @param string $value
3531 * @return string
3532 * @static
3533 */
3534 public static function compileEchos($value)
3535 {
3536 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3537 return $instance->compileEchos($value);
3538 }
3539
3540 /**
3541 * Apply the echo handler for the value if it exists.
3542 *
3543 * @param string $value
3544 * @return string
3545 * @static
3546 */
3547 public static function applyEchoHandler($value)
3548 {
3549 /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
3550 return $instance->applyEchoHandler($value);
3551 }
3552
3553 }
3554 /**
3555 * @method static mixed auth(\Illuminate\Http\Request $request)
3556 * @method static mixed validAuthenticationResponse(\Illuminate\Http\Request $request, mixed $result)
3557 * @method static void broadcast(array $channels, string $event, array $payload = [])
3558 * @method static array|null resolveAuthenticatedUser(\Illuminate\Http\Request $request)
3559 * @method static void resolveAuthenticatedUserUsing(\Closure $callback)
3560 * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(\Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string $channel, callable|string $callback, array $options = [])
3561 * @method static \Illuminate\Support\Collection getChannels()
3562 * @see \Illuminate\Broadcasting\BroadcastManager
3563 * @see \Illuminate\Broadcasting\Broadcasters\Broadcaster
3564 */
3565 class Broadcast {
3566 /**
3567 * Register the routes for handling broadcast channel authentication and sockets.
3568 *
3569 * @param array|null $attributes
3570 * @return void
3571 * @static
3572 */
3573 public static function routes($attributes = null)
3574 {
3575 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3576 $instance->routes($attributes);
3577 }
3578
3579 /**
3580 * Register the routes for handling broadcast user authentication.
3581 *
3582 * @param array|null $attributes
3583 * @return void
3584 * @static
3585 */
3586 public static function userRoutes($attributes = null)
3587 {
3588 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3589 $instance->userRoutes($attributes);
3590 }
3591
3592 /**
3593 * Register the routes for handling broadcast authentication and sockets.
3594 *
3595 * Alias of "routes" method.
3596 *
3597 * @param array|null $attributes
3598 * @return void
3599 * @static
3600 */
3601 public static function channelRoutes($attributes = null)
3602 {
3603 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3604 $instance->channelRoutes($attributes);
3605 }
3606
3607 /**
3608 * Get the socket ID for the given request.
3609 *
3610 * @param \Illuminate\Http\Request|null $request
3611 * @return string|null
3612 * @static
3613 */
3614 public static function socket($request = null)
3615 {
3616 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3617 return $instance->socket($request);
3618 }
3619
3620 /**
3621 * Begin sending an anonymous broadcast to the given channels.
3622 *
3623 * @static
3624 */
3625 public static function on($channels)
3626 {
3627 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3628 return $instance->on($channels);
3629 }
3630
3631 /**
3632 * Begin sending an anonymous broadcast to the given private channels.
3633 *
3634 * @static
3635 */
3636 public static function private($channel)
3637 {
3638 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3639 return $instance->private($channel);
3640 }
3641
3642 /**
3643 * Begin sending an anonymous broadcast to the given presence channels.
3644 *
3645 * @static
3646 */
3647 public static function presence($channel)
3648 {
3649 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3650 return $instance->presence($channel);
3651 }
3652
3653 /**
3654 * Begin broadcasting an event.
3655 *
3656 * @param mixed $event
3657 * @return \Illuminate\Broadcasting\PendingBroadcast
3658 * @static
3659 */
3660 public static function event($event = null)
3661 {
3662 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3663 return $instance->event($event);
3664 }
3665
3666 /**
3667 * Queue the given event for broadcast.
3668 *
3669 * @param mixed $event
3670 * @return void
3671 * @static
3672 */
3673 public static function queue($event)
3674 {
3675 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3676 $instance->queue($event);
3677 }
3678
3679 /**
3680 * Get a driver instance.
3681 *
3682 * @param string|null $driver
3683 * @return mixed
3684 * @static
3685 */
3686 public static function connection($driver = null)
3687 {
3688 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3689 return $instance->connection($driver);
3690 }
3691
3692 /**
3693 * Get a driver instance.
3694 *
3695 * @param string|null $name
3696 * @return mixed
3697 * @static
3698 */
3699 public static function driver($name = null)
3700 {
3701 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3702 return $instance->driver($name);
3703 }
3704
3705 /**
3706 * Get a Pusher instance for the given configuration.
3707 *
3708 * @param array $config
3709 * @return \Pusher\Pusher
3710 * @static
3711 */
3712 public static function pusher($config)
3713 {
3714 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3715 return $instance->pusher($config);
3716 }
3717
3718 /**
3719 * Get an Ably instance for the given configuration.
3720 *
3721 * @param array $config
3722 * @return \Ably\AblyRest
3723 * @static
3724 */
3725 public static function ably($config)
3726 {
3727 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3728 return $instance->ably($config);
3729 }
3730
3731 /**
3732 * Get the default driver name.
3733 *
3734 * @return string
3735 * @static
3736 */
3737 public static function getDefaultDriver()
3738 {
3739 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3740 return $instance->getDefaultDriver();
3741 }
3742
3743 /**
3744 * Set the default driver name.
3745 *
3746 * @param string $name
3747 * @return void
3748 * @static
3749 */
3750 public static function setDefaultDriver($name)
3751 {
3752 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3753 $instance->setDefaultDriver($name);
3754 }
3755
3756 /**
3757 * Disconnect the given disk and remove from local cache.
3758 *
3759 * @param string|null $name
3760 * @return void
3761 * @static
3762 */
3763 public static function purge($name = null)
3764 {
3765 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3766 $instance->purge($name);
3767 }
3768
3769 /**
3770 * Register a custom driver creator Closure.
3771 *
3772 * @param string $driver
3773 * @param \Closure $callback
3774 * @return \Illuminate\Broadcasting\BroadcastManager
3775 * @static
3776 */
3777 public static function extend($driver, $callback)
3778 {
3779 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3780 return $instance->extend($driver, $callback);
3781 }
3782
3783 /**
3784 * Get the application instance used by the manager.
3785 *
3786 * @return \Illuminate\Contracts\Foundation\Application
3787 * @static
3788 */
3789 public static function getApplication()
3790 {
3791 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3792 return $instance->getApplication();
3793 }
3794
3795 /**
3796 * Set the application instance used by the manager.
3797 *
3798 * @param \Illuminate\Contracts\Foundation\Application $app
3799 * @return \Illuminate\Broadcasting\BroadcastManager
3800 * @static
3801 */
3802 public static function setApplication($app)
3803 {
3804 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3805 return $instance->setApplication($app);
3806 }
3807
3808 /**
3809 * Forget all of the resolved driver instances.
3810 *
3811 * @return \Illuminate\Broadcasting\BroadcastManager
3812 * @static
3813 */
3814 public static function forgetDrivers()
3815 {
3816 /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
3817 return $instance->forgetDrivers();
3818 }
3819
3820 }
3821 /**
3822 * @see \Illuminate\Bus\Dispatcher
3823 * @see \Illuminate\Support\Testing\Fakes\BusFake
3824 */
3825 class Bus {
3826 /**
3827 * Dispatch a command to its appropriate handler.
3828 *
3829 * @param mixed $command
3830 * @return mixed
3831 * @static
3832 */
3833 public static function dispatch($command)
3834 {
3835 /** @var \Illuminate\Bus\Dispatcher $instance */
3836 return $instance->dispatch($command);
3837 }
3838
3839 /**
3840 * Dispatch a command to its appropriate handler in the current process.
3841 *
3842 * Queueable jobs will be dispatched to the "sync" queue.
3843 *
3844 * @param mixed $command
3845 * @param mixed $handler
3846 * @return mixed
3847 * @static
3848 */
3849 public static function dispatchSync($command, $handler = null)
3850 {
3851 /** @var \Illuminate\Bus\Dispatcher $instance */
3852 return $instance->dispatchSync($command, $handler);
3853 }
3854
3855 /**
3856 * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
3857 *
3858 * @param mixed $command
3859 * @param mixed $handler
3860 * @return mixed
3861 * @static
3862 */
3863 public static function dispatchNow($command, $handler = null)
3864 {
3865 /** @var \Illuminate\Bus\Dispatcher $instance */
3866 return $instance->dispatchNow($command, $handler);
3867 }
3868
3869 /**
3870 * Attempt to find the batch with the given ID.
3871 *
3872 * @return \Illuminate\Bus\Batch|null
3873 * @static
3874 */
3875 public static function findBatch($batchId)
3876 {
3877 /** @var \Illuminate\Bus\Dispatcher $instance */
3878 return $instance->findBatch($batchId);
3879 }
3880
3881 /**
3882 * Create a new batch of queueable jobs.
3883 *
3884 * @param \Illuminate\Support\Collection|mixed $jobs
3885 * @return \Illuminate\Bus\PendingBatch
3886 * @static
3887 */
3888 public static function batch($jobs)
3889 {
3890 /** @var \Illuminate\Bus\Dispatcher $instance */
3891 return $instance->batch($jobs);
3892 }
3893
3894 /**
3895 * Create a new chain of queueable jobs.
3896 *
3897 * @param \Illuminate\Support\Collection|array|null $jobs
3898 * @return \Illuminate\Foundation\Bus\PendingChain
3899 * @static
3900 */
3901 public static function chain($jobs = null)
3902 {
3903 /** @var \Illuminate\Bus\Dispatcher $instance */
3904 return $instance->chain($jobs);
3905 }
3906
3907 /**
3908 * Determine if the given command has a handler.
3909 *
3910 * @param mixed $command
3911 * @return bool
3912 * @static
3913 */
3914 public static function hasCommandHandler($command)
3915 {
3916 /** @var \Illuminate\Bus\Dispatcher $instance */
3917 return $instance->hasCommandHandler($command);
3918 }
3919
3920 /**
3921 * Retrieve the handler for a command.
3922 *
3923 * @param mixed $command
3924 * @return mixed
3925 * @static
3926 */
3927 public static function getCommandHandler($command)
3928 {
3929 /** @var \Illuminate\Bus\Dispatcher $instance */
3930 return $instance->getCommandHandler($command);
3931 }
3932
3933 /**
3934 * Dispatch a command to its appropriate handler behind a queue.
3935 *
3936 * @param mixed $command
3937 * @return mixed
3938 * @throws \RuntimeException
3939 * @static
3940 */
3941 public static function dispatchToQueue($command)
3942 {
3943 /** @var \Illuminate\Bus\Dispatcher $instance */
3944 return $instance->dispatchToQueue($command);
3945 }
3946
3947 /**
3948 * Dispatch a command to its appropriate handler after the current process.
3949 *
3950 * @param mixed $command
3951 * @param mixed $handler
3952 * @return void
3953 * @static
3954 */
3955 public static function dispatchAfterResponse($command, $handler = null)
3956 {
3957 /** @var \Illuminate\Bus\Dispatcher $instance */
3958 $instance->dispatchAfterResponse($command, $handler);
3959 }
3960
3961 /**
3962 * Set the pipes through which commands should be piped before dispatching.
3963 *
3964 * @return \Illuminate\Bus\Dispatcher
3965 * @static
3966 */
3967 public static function pipeThrough($pipes)
3968 {
3969 /** @var \Illuminate\Bus\Dispatcher $instance */
3970 return $instance->pipeThrough($pipes);
3971 }
3972
3973 /**
3974 * Map a command to a handler.
3975 *
3976 * @return \Illuminate\Bus\Dispatcher
3977 * @static
3978 */
3979 public static function map($map)
3980 {
3981 /** @var \Illuminate\Bus\Dispatcher $instance */
3982 return $instance->map($map);
3983 }
3984
3985 /**
3986 * Allow dispatching after responses.
3987 *
3988 * @return \Illuminate\Bus\Dispatcher
3989 * @static
3990 */
3991 public static function withDispatchingAfterResponses()
3992 {
3993 /** @var \Illuminate\Bus\Dispatcher $instance */
3994 return $instance->withDispatchingAfterResponses();
3995 }
3996
3997 /**
3998 * Disable dispatching after responses.
3999 *
4000 * @return \Illuminate\Bus\Dispatcher
4001 * @static
4002 */
4003 public static function withoutDispatchingAfterResponses()
4004 {
4005 /** @var \Illuminate\Bus\Dispatcher $instance */
4006 return $instance->withoutDispatchingAfterResponses();
4007 }
4008
4009 /**
4010 * Specify the jobs that should be dispatched instead of faked.
4011 *
4012 * @param array|string $jobsToDispatch
4013 * @return \Illuminate\Support\Testing\Fakes\BusFake
4014 * @static
4015 */
4016 public static function except($jobsToDispatch)
4017 {
4018 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4019 return $instance->except($jobsToDispatch);
4020 }
4021
4022 /**
4023 * Assert if a job was dispatched based on a truth-test callback.
4024 *
4025 * @param string|\Closure $command
4026 * @param callable|int|null $callback
4027 * @return void
4028 * @static
4029 */
4030 public static function assertDispatched($command, $callback = null)
4031 {
4032 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4033 $instance->assertDispatched($command, $callback);
4034 }
4035
4036 /**
4037 * Assert if a job was pushed exactly once.
4038 *
4039 * @param string|\Closure $command
4040 * @param int $times
4041 * @return void
4042 * @static
4043 */
4044 public static function assertDispatchedOnce($command)
4045 {
4046 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4047 $instance->assertDispatchedOnce($command);
4048 }
4049
4050 /**
4051 * Assert if a job was pushed a number of times.
4052 *
4053 * @param string|\Closure $command
4054 * @param int $times
4055 * @return void
4056 * @static
4057 */
4058 public static function assertDispatchedTimes($command, $times = 1)
4059 {
4060 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4061 $instance->assertDispatchedTimes($command, $times);
4062 }
4063
4064 /**
4065 * Determine if a job was dispatched based on a truth-test callback.
4066 *
4067 * @param string|\Closure $command
4068 * @param callable|null $callback
4069 * @return void
4070 * @static
4071 */
4072 public static function assertNotDispatched($command, $callback = null)
4073 {
4074 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4075 $instance->assertNotDispatched($command, $callback);
4076 }
4077
4078 /**
4079 * Assert that no jobs were dispatched.
4080 *
4081 * @return void
4082 * @static
4083 */
4084 public static function assertNothingDispatched()
4085 {
4086 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4087 $instance->assertNothingDispatched();
4088 }
4089
4090 /**
4091 * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
4092 *
4093 * @param string|\Closure $command
4094 * @param callable|int|null $callback
4095 * @return void
4096 * @static
4097 */
4098 public static function assertDispatchedSync($command, $callback = null)
4099 {
4100 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4101 $instance->assertDispatchedSync($command, $callback);
4102 }
4103
4104 /**
4105 * Assert if a job was pushed synchronously a number of times.
4106 *
4107 * @param string|\Closure $command
4108 * @param int $times
4109 * @return void
4110 * @static
4111 */
4112 public static function assertDispatchedSyncTimes($command, $times = 1)
4113 {
4114 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4115 $instance->assertDispatchedSyncTimes($command, $times);
4116 }
4117
4118 /**
4119 * Determine if a job was dispatched based on a truth-test callback.
4120 *
4121 * @param string|\Closure $command
4122 * @param callable|null $callback
4123 * @return void
4124 * @static
4125 */
4126 public static function assertNotDispatchedSync($command, $callback = null)
4127 {
4128 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4129 $instance->assertNotDispatchedSync($command, $callback);
4130 }
4131
4132 /**
4133 * Assert if a job was dispatched after the response was sent based on a truth-test callback.
4134 *
4135 * @param string|\Closure $command
4136 * @param callable|int|null $callback
4137 * @return void
4138 * @static
4139 */
4140 public static function assertDispatchedAfterResponse($command, $callback = null)
4141 {
4142 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4143 $instance->assertDispatchedAfterResponse($command, $callback);
4144 }
4145
4146 /**
4147 * Assert if a job was pushed after the response was sent a number of times.
4148 *
4149 * @param string|\Closure $command
4150 * @param int $times
4151 * @return void
4152 * @static
4153 */
4154 public static function assertDispatchedAfterResponseTimes($command, $times = 1)
4155 {
4156 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4157 $instance->assertDispatchedAfterResponseTimes($command, $times);
4158 }
4159
4160 /**
4161 * Determine if a job was dispatched based on a truth-test callback.
4162 *
4163 * @param string|\Closure $command
4164 * @param callable|null $callback
4165 * @return void
4166 * @static
4167 */
4168 public static function assertNotDispatchedAfterResponse($command, $callback = null)
4169 {
4170 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4171 $instance->assertNotDispatchedAfterResponse($command, $callback);
4172 }
4173
4174 /**
4175 * Assert if a chain of jobs was dispatched.
4176 *
4177 * @param array $expectedChain
4178 * @return void
4179 * @static
4180 */
4181 public static function assertChained($expectedChain)
4182 {
4183 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4184 $instance->assertChained($expectedChain);
4185 }
4186
4187 /**
4188 * Assert no chained jobs was dispatched.
4189 *
4190 * @return void
4191 * @static
4192 */
4193 public static function assertNothingChained()
4194 {
4195 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4196 $instance->assertNothingChained();
4197 }
4198
4199 /**
4200 * Assert if a job was dispatched with an empty chain based on a truth-test callback.
4201 *
4202 * @param string|\Closure $command
4203 * @param callable|null $callback
4204 * @return void
4205 * @static
4206 */
4207 public static function assertDispatchedWithoutChain($command, $callback = null)
4208 {
4209 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4210 $instance->assertDispatchedWithoutChain($command, $callback);
4211 }
4212
4213 /**
4214 * Create a new assertion about a chained batch.
4215 *
4216 * @param \Closure $callback
4217 * @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest
4218 * @static
4219 */
4220 public static function chainedBatch($callback)
4221 {
4222 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4223 return $instance->chainedBatch($callback);
4224 }
4225
4226 /**
4227 * Assert if a batch was dispatched based on a truth-test callback.
4228 *
4229 * @param callable $callback
4230 * @return void
4231 * @static
4232 */
4233 public static function assertBatched($callback)
4234 {
4235 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4236 $instance->assertBatched($callback);
4237 }
4238
4239 /**
4240 * Assert the number of batches that have been dispatched.
4241 *
4242 * @param int $count
4243 * @return void
4244 * @static
4245 */
4246 public static function assertBatchCount($count)
4247 {
4248 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4249 $instance->assertBatchCount($count);
4250 }
4251
4252 /**
4253 * Assert that no batched jobs were dispatched.
4254 *
4255 * @return void
4256 * @static
4257 */
4258 public static function assertNothingBatched()
4259 {
4260 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4261 $instance->assertNothingBatched();
4262 }
4263
4264 /**
4265 * Assert that no jobs were dispatched, chained, or batched.
4266 *
4267 * @return void
4268 * @static
4269 */
4270 public static function assertNothingPlaced()
4271 {
4272 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4273 $instance->assertNothingPlaced();
4274 }
4275
4276 /**
4277 * Get all of the jobs matching a truth-test callback.
4278 *
4279 * @param string $command
4280 * @param callable|null $callback
4281 * @return \Illuminate\Support\Collection
4282 * @static
4283 */
4284 public static function dispatched($command, $callback = null)
4285 {
4286 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4287 return $instance->dispatched($command, $callback);
4288 }
4289
4290 /**
4291 * Get all of the jobs dispatched synchronously matching a truth-test callback.
4292 *
4293 * @param string $command
4294 * @param callable|null $callback
4295 * @return \Illuminate\Support\Collection
4296 * @static
4297 */
4298 public static function dispatchedSync($command, $callback = null)
4299 {
4300 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4301 return $instance->dispatchedSync($command, $callback);
4302 }
4303
4304 /**
4305 * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
4306 *
4307 * @param string $command
4308 * @param callable|null $callback
4309 * @return \Illuminate\Support\Collection
4310 * @static
4311 */
4312 public static function dispatchedAfterResponse($command, $callback = null)
4313 {
4314 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4315 return $instance->dispatchedAfterResponse($command, $callback);
4316 }
4317
4318 /**
4319 * Get all of the pending batches matching a truth-test callback.
4320 *
4321 * @param callable $callback
4322 * @return \Illuminate\Support\Collection
4323 * @static
4324 */
4325 public static function batched($callback)
4326 {
4327 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4328 return $instance->batched($callback);
4329 }
4330
4331 /**
4332 * Determine if there are any stored commands for a given class.
4333 *
4334 * @param string $command
4335 * @return bool
4336 * @static
4337 */
4338 public static function hasDispatched($command)
4339 {
4340 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4341 return $instance->hasDispatched($command);
4342 }
4343
4344 /**
4345 * Determine if there are any stored commands for a given class.
4346 *
4347 * @param string $command
4348 * @return bool
4349 * @static
4350 */
4351 public static function hasDispatchedSync($command)
4352 {
4353 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4354 return $instance->hasDispatchedSync($command);
4355 }
4356
4357 /**
4358 * Determine if there are any stored commands for a given class.
4359 *
4360 * @param string $command
4361 * @return bool
4362 * @static
4363 */
4364 public static function hasDispatchedAfterResponse($command)
4365 {
4366 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4367 return $instance->hasDispatchedAfterResponse($command);
4368 }
4369
4370 /**
4371 * Dispatch an empty job batch for testing.
4372 *
4373 * @param string $name
4374 * @return \Illuminate\Bus\Batch
4375 * @static
4376 */
4377 public static function dispatchFakeBatch($name = '')
4378 {
4379 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4380 return $instance->dispatchFakeBatch($name);
4381 }
4382
4383 /**
4384 * Record the fake pending batch dispatch.
4385 *
4386 * @param \Illuminate\Bus\PendingBatch $pendingBatch
4387 * @return \Illuminate\Bus\Batch
4388 * @static
4389 */
4390 public static function recordPendingBatch($pendingBatch)
4391 {
4392 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4393 return $instance->recordPendingBatch($pendingBatch);
4394 }
4395
4396 /**
4397 * Specify if commands should be serialized and restored when being batched.
4398 *
4399 * @param bool $serializeAndRestore
4400 * @return \Illuminate\Support\Testing\Fakes\BusFake
4401 * @static
4402 */
4403 public static function serializeAndRestore($serializeAndRestore = true)
4404 {
4405 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4406 return $instance->serializeAndRestore($serializeAndRestore);
4407 }
4408
4409 /**
4410 * Get the batches that have been dispatched.
4411 *
4412 * @return array
4413 * @static
4414 */
4415 public static function dispatchedBatches()
4416 {
4417 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
4418 return $instance->dispatchedBatches();
4419 }
4420
4421 }
4422 /**
4423 * @see \Illuminate\Cache\CacheManager
4424 * @see \Illuminate\Cache\Repository
4425 */
4426 class Cache {
4427 /**
4428 * Get a cache store instance by name, wrapped in a repository.
4429 *
4430 * @param string|null $name
4431 * @return \Illuminate\Contracts\Cache\Repository
4432 * @static
4433 */
4434 public static function store($name = null)
4435 {
4436 /** @var \Illuminate\Cache\CacheManager $instance */
4437 return $instance->store($name);
4438 }
4439
4440 /**
4441 * Get a cache driver instance.
4442 *
4443 * @param string|null $driver
4444 * @return \Illuminate\Contracts\Cache\Repository
4445 * @static
4446 */
4447 public static function driver($driver = null)
4448 {
4449 /** @var \Illuminate\Cache\CacheManager $instance */
4450 return $instance->driver($driver);
4451 }
4452
4453 /**
4454 * Get a memoized cache driver instance.
4455 *
4456 * @param string|null $driver
4457 * @return \Illuminate\Contracts\Cache\Repository
4458 * @static
4459 */
4460 public static function memo($driver = null)
4461 {
4462 /** @var \Illuminate\Cache\CacheManager $instance */
4463 return $instance->memo($driver);
4464 }
4465
4466 /**
4467 * Resolve the given store.
4468 *
4469 * @param string $name
4470 * @return \Illuminate\Contracts\Cache\Repository
4471 * @throws \InvalidArgumentException
4472 * @static
4473 */
4474 public static function resolve($name)
4475 {
4476 /** @var \Illuminate\Cache\CacheManager $instance */
4477 return $instance->resolve($name);
4478 }
4479
4480 /**
4481 * Build a cache repository with the given configuration.
4482 *
4483 * @param array $config
4484 * @return \Illuminate\Cache\Repository
4485 * @static
4486 */
4487 public static function build($config)
4488 {
4489 /** @var \Illuminate\Cache\CacheManager $instance */
4490 return $instance->build($config);
4491 }
4492
4493 /**
4494 * Create a new cache repository with the given implementation.
4495 *
4496 * @param \Illuminate\Contracts\Cache\Store $store
4497 * @param array $config
4498 * @return \Illuminate\Cache\Repository
4499 * @static
4500 */
4501 public static function repository($store, $config = [])
4502 {
4503 /** @var \Illuminate\Cache\CacheManager $instance */
4504 return $instance->repository($store, $config);
4505 }
4506
4507 /**
4508 * Re-set the event dispatcher on all resolved cache repositories.
4509 *
4510 * @return void
4511 * @static
4512 */
4513 public static function refreshEventDispatcher()
4514 {
4515 /** @var \Illuminate\Cache\CacheManager $instance */
4516 $instance->refreshEventDispatcher();
4517 }
4518
4519 /**
4520 * Get the default cache driver name.
4521 *
4522 * @return string
4523 * @static
4524 */
4525 public static function getDefaultDriver()
4526 {
4527 /** @var \Illuminate\Cache\CacheManager $instance */
4528 return $instance->getDefaultDriver();
4529 }
4530
4531 /**
4532 * Set the default cache driver name.
4533 *
4534 * @param string $name
4535 * @return void
4536 * @static
4537 */
4538 public static function setDefaultDriver($name)
4539 {
4540 /** @var \Illuminate\Cache\CacheManager $instance */
4541 $instance->setDefaultDriver($name);
4542 }
4543
4544 /**
4545 * Unset the given driver instances.
4546 *
4547 * @param array|string|null $name
4548 * @return \Illuminate\Cache\CacheManager
4549 * @static
4550 */
4551 public static function forgetDriver($name = null)
4552 {
4553 /** @var \Illuminate\Cache\CacheManager $instance */
4554 return $instance->forgetDriver($name);
4555 }
4556
4557 /**
4558 * Disconnect the given driver and remove from local cache.
4559 *
4560 * @param string|null $name
4561 * @return void
4562 * @static
4563 */
4564 public static function purge($name = null)
4565 {
4566 /** @var \Illuminate\Cache\CacheManager $instance */
4567 $instance->purge($name);
4568 }
4569
4570 /**
4571 * Register a custom driver creator Closure.
4572 *
4573 * @param string $driver
4574 * @param \Closure $callback
4575 * @param-closure-this $this $callback
4576 * @return \Illuminate\Cache\CacheManager
4577 * @static
4578 */
4579 public static function extend($driver, $callback)
4580 {
4581 /** @var \Illuminate\Cache\CacheManager $instance */
4582 return $instance->extend($driver, $callback);
4583 }
4584
4585 /**
4586 * Set the application instance used by the manager.
4587 *
4588 * @param \Illuminate\Contracts\Foundation\Application $app
4589 * @return \Illuminate\Cache\CacheManager
4590 * @static
4591 */
4592 public static function setApplication($app)
4593 {
4594 /** @var \Illuminate\Cache\CacheManager $instance */
4595 return $instance->setApplication($app);
4596 }
4597
4598 /**
4599 * Determine if an item exists in the cache.
4600 *
4601 * @param array|string $key
4602 * @return bool
4603 * @static
4604 */
4605 public static function has($key)
4606 {
4607 /** @var \Illuminate\Cache\Repository $instance */
4608 return $instance->has($key);
4609 }
4610
4611 /**
4612 * Determine if an item doesn't exist in the cache.
4613 *
4614 * @param string $key
4615 * @return bool
4616 * @static
4617 */
4618 public static function missing($key)
4619 {
4620 /** @var \Illuminate\Cache\Repository $instance */
4621 return $instance->missing($key);
4622 }
4623
4624 /**
4625 * Retrieve an item from the cache by key.
4626 *
4627 * @param array|string $key
4628 * @param mixed $default
4629 * @return mixed
4630 * @static
4631 */
4632 public static function get($key, $default = null)
4633 {
4634 /** @var \Illuminate\Cache\Repository $instance */
4635 return $instance->get($key, $default);
4636 }
4637
4638 /**
4639 * Retrieve multiple items from the cache by key.
4640 *
4641 * Items not found in the cache will have a null value.
4642 *
4643 * @param array $keys
4644 * @return array
4645 * @static
4646 */
4647 public static function many($keys)
4648 {
4649 /** @var \Illuminate\Cache\Repository $instance */
4650 return $instance->many($keys);
4651 }
4652
4653 /**
4654 * Obtains multiple cache items by their unique keys.
4655 *
4656 * @return iterable
4657 * @param iterable<string> $keys A list of keys that can be obtained in a single operation.
4658 * @param mixed $default Default value to return for keys that do not exist.
4659 * @return iterable<string, mixed> A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
4660 * @throws \Psr\SimpleCache\InvalidArgumentException
4661 * MUST be thrown if $keys is neither an array nor a Traversable,
4662 * or if any of the $keys are not a legal value.
4663 * @static
4664 */
4665 public static function getMultiple($keys, $default = null)
4666 {
4667 /** @var \Illuminate\Cache\Repository $instance */
4668 return $instance->getMultiple($keys, $default);
4669 }
4670
4671 /**
4672 * Retrieve an item from the cache and delete it.
4673 *
4674 * @param array|string $key
4675 * @param mixed $default
4676 * @return mixed
4677 * @static
4678 */
4679 public static function pull($key, $default = null)
4680 {
4681 /** @var \Illuminate\Cache\Repository $instance */
4682 return $instance->pull($key, $default);
4683 }
4684
4685 /**
4686 * Store an item in the cache.
4687 *
4688 * @param array|string $key
4689 * @param mixed $value
4690 * @param \DateTimeInterface|\DateInterval|int|null $ttl
4691 * @return bool
4692 * @static
4693 */
4694 public static function put($key, $value, $ttl = null)
4695 {
4696 /** @var \Illuminate\Cache\Repository $instance */
4697 return $instance->put($key, $value, $ttl);
4698 }
4699
4700 /**
4701 * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
4702 *
4703 * @return bool
4704 * @param string $key The key of the item to store.
4705 * @param mixed $value The value of the item to store, must be serializable.
4706 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
4707 * the driver supports TTL then the library may set a default value
4708 * for it or let the driver take care of that.
4709 * @return bool True on success and false on failure.
4710 * @throws \Psr\SimpleCache\InvalidArgumentException
4711 * MUST be thrown if the $key string is not a legal value.
4712 * @static
4713 */
4714 public static function set($key, $value, $ttl = null)
4715 {
4716 /** @var \Illuminate\Cache\Repository $instance */
4717 return $instance->set($key, $value, $ttl);
4718 }
4719
4720 /**
4721 * Store multiple items in the cache for a given number of seconds.
4722 *
4723 * @param array $values
4724 * @param \DateTimeInterface|\DateInterval|int|null $ttl
4725 * @return bool
4726 * @static
4727 */
4728 public static function putMany($values, $ttl = null)
4729 {
4730 /** @var \Illuminate\Cache\Repository $instance */
4731 return $instance->putMany($values, $ttl);
4732 }
4733
4734 /**
4735 * Persists a set of key => value pairs in the cache, with an optional TTL.
4736 *
4737 * @return bool
4738 * @param iterable $values A list of key => value pairs for a multiple-set operation.
4739 * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
4740 * the driver supports TTL then the library may set a default value
4741 * for it or let the driver take care of that.
4742 * @return bool True on success and false on failure.
4743 * @throws \Psr\SimpleCache\InvalidArgumentException
4744 * MUST be thrown if $values is neither an array nor a Traversable,
4745 * or if any of the $values are not a legal value.
4746 * @static
4747 */
4748 public static function setMultiple($values, $ttl = null)
4749 {
4750 /** @var \Illuminate\Cache\Repository $instance */
4751 return $instance->setMultiple($values, $ttl);
4752 }
4753
4754 /**
4755 * Store an item in the cache if the key does not exist.
4756 *
4757 * @param string $key
4758 * @param mixed $value
4759 * @param \DateTimeInterface|\DateInterval|int|null $ttl
4760 * @return bool
4761 * @static
4762 */
4763 public static function add($key, $value, $ttl = null)
4764 {
4765 /** @var \Illuminate\Cache\Repository $instance */
4766 return $instance->add($key, $value, $ttl);
4767 }
4768
4769 /**
4770 * Increment the value of an item in the cache.
4771 *
4772 * @param string $key
4773 * @param mixed $value
4774 * @return int|bool
4775 * @static
4776 */
4777 public static function increment($key, $value = 1)
4778 {
4779 /** @var \Illuminate\Cache\Repository $instance */
4780 return $instance->increment($key, $value);
4781 }
4782
4783 /**
4784 * Decrement the value of an item in the cache.
4785 *
4786 * @param string $key
4787 * @param mixed $value
4788 * @return int|bool
4789 * @static
4790 */
4791 public static function decrement($key, $value = 1)
4792 {
4793 /** @var \Illuminate\Cache\Repository $instance */
4794 return $instance->decrement($key, $value);
4795 }
4796
4797 /**
4798 * Store an item in the cache indefinitely.
4799 *
4800 * @param string $key
4801 * @param mixed $value
4802 * @return bool
4803 * @static
4804 */
4805 public static function forever($key, $value)
4806 {
4807 /** @var \Illuminate\Cache\Repository $instance */
4808 return $instance->forever($key, $value);
4809 }
4810
4811 /**
4812 * Get an item from the cache, or execute the given Closure and store the result.
4813 *
4814 * @template TCacheValue
4815 * @param string $key
4816 * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
4817 * @param \Closure(): TCacheValue $callback
4818 * @return TCacheValue
4819 * @static
4820 */
4821 public static function remember($key, $ttl, $callback)
4822 {
4823 /** @var \Illuminate\Cache\Repository $instance */
4824 return $instance->remember($key, $ttl, $callback);
4825 }
4826
4827 /**
4828 * Get an item from the cache, or execute the given Closure and store the result forever.
4829 *
4830 * @template TCacheValue
4831 * @param string $key
4832 * @param \Closure(): TCacheValue $callback
4833 * @return TCacheValue
4834 * @static
4835 */
4836 public static function sear($key, $callback)
4837 {
4838 /** @var \Illuminate\Cache\Repository $instance */
4839 return $instance->sear($key, $callback);
4840 }
4841
4842 /**
4843 * Get an item from the cache, or execute the given Closure and store the result forever.
4844 *
4845 * @template TCacheValue
4846 * @param string $key
4847 * @param \Closure(): TCacheValue $callback
4848 * @return TCacheValue
4849 * @static
4850 */
4851 public static function rememberForever($key, $callback)
4852 {
4853 /** @var \Illuminate\Cache\Repository $instance */
4854 return $instance->rememberForever($key, $callback);
4855 }
4856
4857 /**
4858 * Retrieve an item from the cache by key, refreshing it in the background if it is stale.
4859 *
4860 * @template TCacheValue
4861 * @param string $key
4862 * @param array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl
4863 * @param (callable(): TCacheValue) $callback
4864 * @param array{ seconds?: int, owner?: string }|null $lock
4865 * @param bool $alwaysDefer
4866 * @return TCacheValue
4867 * @static
4868 */
4869 public static function flexible($key, $ttl, $callback, $lock = null, $alwaysDefer = false)
4870 {
4871 /** @var \Illuminate\Cache\Repository $instance */
4872 return $instance->flexible($key, $ttl, $callback, $lock, $alwaysDefer);
4873 }
4874
4875 /**
4876 * Remove an item from the cache.
4877 *
4878 * @param string $key
4879 * @return bool
4880 * @static
4881 */
4882 public static function forget($key)
4883 {
4884 /** @var \Illuminate\Cache\Repository $instance */
4885 return $instance->forget($key);
4886 }
4887
4888 /**
4889 * Delete an item from the cache by its unique key.
4890 *
4891 * @return bool
4892 * @param string $key The unique cache key of the item to delete.
4893 * @return bool True if the item was successfully removed. False if there was an error.
4894 * @throws \Psr\SimpleCache\InvalidArgumentException
4895 * MUST be thrown if the $key string is not a legal value.
4896 * @static
4897 */
4898 public static function delete($key)
4899 {
4900 /** @var \Illuminate\Cache\Repository $instance */
4901 return $instance->delete($key);
4902 }
4903
4904 /**
4905 * Deletes multiple cache items in a single operation.
4906 *
4907 * @return bool
4908 * @param iterable<string> $keys A list of string-based keys to be deleted.
4909 * @return bool True if the items were successfully removed. False if there was an error.
4910 * @throws \Psr\SimpleCache\InvalidArgumentException
4911 * MUST be thrown if $keys is neither an array nor a Traversable,
4912 * or if any of the $keys are not a legal value.
4913 * @static
4914 */
4915 public static function deleteMultiple($keys)
4916 {
4917 /** @var \Illuminate\Cache\Repository $instance */
4918 return $instance->deleteMultiple($keys);
4919 }
4920
4921 /**
4922 * Wipes clean the entire cache's keys.
4923 *
4924 * @return bool
4925 * @return bool True on success and false on failure.
4926 * @static
4927 */
4928 public static function clear()
4929 {
4930 /** @var \Illuminate\Cache\Repository $instance */
4931 return $instance->clear();
4932 }
4933
4934 /**
4935 * Begin executing a new tags operation if the store supports it.
4936 *
4937 * @param mixed $names
4938 * @return \Illuminate\Cache\TaggedCache
4939 * @throws \BadMethodCallException
4940 * @static
4941 */
4942 public static function tags($names)
4943 {
4944 /** @var \Illuminate\Cache\Repository $instance */
4945 return $instance->tags($names);
4946 }
4947
4948 /**
4949 * Get the name of the cache store.
4950 *
4951 * @return string|null
4952 * @static
4953 */
4954 public static function getName()
4955 {
4956 /** @var \Illuminate\Cache\Repository $instance */
4957 return $instance->getName();
4958 }
4959
4960 /**
4961 * Determine if the current store supports tags.
4962 *
4963 * @return bool
4964 * @static
4965 */
4966 public static function supportsTags()
4967 {
4968 /** @var \Illuminate\Cache\Repository $instance */
4969 return $instance->supportsTags();
4970 }
4971
4972 /**
4973 * Get the default cache time.
4974 *
4975 * @return int|null
4976 * @static
4977 */
4978 public static function getDefaultCacheTime()
4979 {
4980 /** @var \Illuminate\Cache\Repository $instance */
4981 return $instance->getDefaultCacheTime();
4982 }
4983
4984 /**
4985 * Set the default cache time in seconds.
4986 *
4987 * @param int|null $seconds
4988 * @return \Illuminate\Cache\Repository
4989 * @static
4990 */
4991 public static function setDefaultCacheTime($seconds)
4992 {
4993 /** @var \Illuminate\Cache\Repository $instance */
4994 return $instance->setDefaultCacheTime($seconds);
4995 }
4996
4997 /**
4998 * Get the cache store implementation.
4999 *
5000 * @return \Illuminate\Contracts\Cache\Store
5001 * @static
5002 */
5003 public static function getStore()
5004 {
5005 /** @var \Illuminate\Cache\Repository $instance */
5006 return $instance->getStore();
5007 }
5008
5009 /**
5010 * Set the cache store implementation.
5011 *
5012 * @param \Illuminate\Contracts\Cache\Store $store
5013 * @return static
5014 * @static
5015 */
5016 public static function setStore($store)
5017 {
5018 /** @var \Illuminate\Cache\Repository $instance */
5019 return $instance->setStore($store);
5020 }
5021
5022 /**
5023 * Get the event dispatcher instance.
5024 *
5025 * @return \Illuminate\Contracts\Events\Dispatcher|null
5026 * @static
5027 */
5028 public static function getEventDispatcher()
5029 {
5030 /** @var \Illuminate\Cache\Repository $instance */
5031 return $instance->getEventDispatcher();
5032 }
5033
5034 /**
5035 * Set the event dispatcher instance.
5036 *
5037 * @param \Illuminate\Contracts\Events\Dispatcher $events
5038 * @return void
5039 * @static
5040 */
5041 public static function setEventDispatcher($events)
5042 {
5043 /** @var \Illuminate\Cache\Repository $instance */
5044 $instance->setEventDispatcher($events);
5045 }
5046
5047 /**
5048 * Determine if a cached value exists.
5049 *
5050 * @param string $key
5051 * @return bool
5052 * @static
5053 */
5054 public static function offsetExists($key)
5055 {
5056 /** @var \Illuminate\Cache\Repository $instance */
5057 return $instance->offsetExists($key);
5058 }
5059
5060 /**
5061 * Retrieve an item from the cache by key.
5062 *
5063 * @param string $key
5064 * @return mixed
5065 * @static
5066 */
5067 public static function offsetGet($key)
5068 {
5069 /** @var \Illuminate\Cache\Repository $instance */
5070 return $instance->offsetGet($key);
5071 }
5072
5073 /**
5074 * Store an item in the cache for the default time.
5075 *
5076 * @param string $key
5077 * @param mixed $value
5078 * @return void
5079 * @static
5080 */
5081 public static function offsetSet($key, $value)
5082 {
5083 /** @var \Illuminate\Cache\Repository $instance */
5084 $instance->offsetSet($key, $value);
5085 }
5086
5087 /**
5088 * Remove an item from the cache.
5089 *
5090 * @param string $key
5091 * @return void
5092 * @static
5093 */
5094 public static function offsetUnset($key)
5095 {
5096 /** @var \Illuminate\Cache\Repository $instance */
5097 $instance->offsetUnset($key);
5098 }
5099
5100 /**
5101 * Register a custom macro.
5102 *
5103 * @param string $name
5104 * @param object|callable $macro
5105 * @param-closure-this static $macro
5106 * @return void
5107 * @static
5108 */
5109 public static function macro($name, $macro)
5110 {
5111 \Illuminate\Cache\Repository::macro($name, $macro);
5112 }
5113
5114 /**
5115 * Mix another object into the class.
5116 *
5117 * @param object $mixin
5118 * @param bool $replace
5119 * @return void
5120 * @throws \ReflectionException
5121 * @static
5122 */
5123 public static function mixin($mixin, $replace = true)
5124 {
5125 \Illuminate\Cache\Repository::mixin($mixin, $replace);
5126 }
5127
5128 /**
5129 * Checks if macro is registered.
5130 *
5131 * @param string $name
5132 * @return bool
5133 * @static
5134 */
5135 public static function hasMacro($name)
5136 {
5137 return \Illuminate\Cache\Repository::hasMacro($name);
5138 }
5139
5140 /**
5141 * Flush the existing macros.
5142 *
5143 * @return void
5144 * @static
5145 */
5146 public static function flushMacros()
5147 {
5148 \Illuminate\Cache\Repository::flushMacros();
5149 }
5150
5151 /**
5152 * Dynamically handle calls to the class.
5153 *
5154 * @param string $method
5155 * @param array $parameters
5156 * @return mixed
5157 * @throws \BadMethodCallException
5158 * @static
5159 */
5160 public static function macroCall($method, $parameters)
5161 {
5162 /** @var \Illuminate\Cache\Repository $instance */
5163 return $instance->macroCall($method, $parameters);
5164 }
5165
5166 /**
5167 * Get a lock instance.
5168 *
5169 * @param string $name
5170 * @param int $seconds
5171 * @param string|null $owner
5172 * @return \Illuminate\Contracts\Cache\Lock
5173 * @static
5174 */
5175 public static function lock($name, $seconds = 0, $owner = null)
5176 {
5177 /** @var \Illuminate\Cache\DatabaseStore $instance */
5178 return $instance->lock($name, $seconds, $owner);
5179 }
5180
5181 /**
5182 * Restore a lock instance using the owner identifier.
5183 *
5184 * @param string $name
5185 * @param string $owner
5186 * @return \Illuminate\Contracts\Cache\Lock
5187 * @static
5188 */
5189 public static function restoreLock($name, $owner)
5190 {
5191 /** @var \Illuminate\Cache\DatabaseStore $instance */
5192 return $instance->restoreLock($name, $owner);
5193 }
5194
5195 /**
5196 * Remove an item from the cache if it is expired.
5197 *
5198 * @param string $key
5199 * @return bool
5200 * @static
5201 */
5202 public static function forgetIfExpired($key)
5203 {
5204 /** @var \Illuminate\Cache\DatabaseStore $instance */
5205 return $instance->forgetIfExpired($key);
5206 }
5207
5208 /**
5209 * Remove all items from the cache.
5210 *
5211 * @return bool
5212 * @static
5213 */
5214 public static function flush()
5215 {
5216 /** @var \Illuminate\Cache\DatabaseStore $instance */
5217 return $instance->flush();
5218 }
5219
5220 /**
5221 * Get the underlying database connection.
5222 *
5223 * @return \Illuminate\Database\MariaDbConnection
5224 * @static
5225 */
5226 public static function getConnection()
5227 {
5228 /** @var \Illuminate\Cache\DatabaseStore $instance */
5229 return $instance->getConnection();
5230 }
5231
5232 /**
5233 * Set the underlying database connection.
5234 *
5235 * @param \Illuminate\Database\ConnectionInterface $connection
5236 * @return \Illuminate\Cache\DatabaseStore
5237 * @static
5238 */
5239 public static function setConnection($connection)
5240 {
5241 /** @var \Illuminate\Cache\DatabaseStore $instance */
5242 return $instance->setConnection($connection);
5243 }
5244
5245 /**
5246 * Get the connection used to manage locks.
5247 *
5248 * @return \Illuminate\Database\MariaDbConnection
5249 * @static
5250 */
5251 public static function getLockConnection()
5252 {
5253 /** @var \Illuminate\Cache\DatabaseStore $instance */
5254 return $instance->getLockConnection();
5255 }
5256
5257 /**
5258 * Specify the connection that should be used to manage locks.
5259 *
5260 * @param \Illuminate\Database\ConnectionInterface $connection
5261 * @return \Illuminate\Cache\DatabaseStore
5262 * @static
5263 */
5264 public static function setLockConnection($connection)
5265 {
5266 /** @var \Illuminate\Cache\DatabaseStore $instance */
5267 return $instance->setLockConnection($connection);
5268 }
5269
5270 /**
5271 * Get the cache key prefix.
5272 *
5273 * @return string
5274 * @static
5275 */
5276 public static function getPrefix()
5277 {
5278 /** @var \Illuminate\Cache\DatabaseStore $instance */
5279 return $instance->getPrefix();
5280 }
5281
5282 /**
5283 * Set the cache key prefix.
5284 *
5285 * @param string $prefix
5286 * @return void
5287 * @static
5288 */
5289 public static function setPrefix($prefix)
5290 {
5291 /** @var \Illuminate\Cache\DatabaseStore $instance */
5292 $instance->setPrefix($prefix);
5293 }
5294
5295 }
5296 /**
5297 * @method static array run(\Closure|array $tasks)
5298 * @method static \Illuminate\Support\Defer\DeferredCallback defer(\Closure|array $tasks)
5299 * @see \Illuminate\Concurrency\ConcurrencyManager
5300 */
5301 class Concurrency {
5302 /**
5303 * Get a driver instance by name.
5304 *
5305 * @param string|null $name
5306 * @return mixed
5307 * @static
5308 */
5309 public static function driver($name = null)
5310 {
5311 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5312 return $instance->driver($name);
5313 }
5314
5315 /**
5316 * Create an instance of the process concurrency driver.
5317 *
5318 * @param array $config
5319 * @return \Illuminate\Concurrency\ProcessDriver
5320 * @static
5321 */
5322 public static function createProcessDriver($config)
5323 {
5324 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5325 return $instance->createProcessDriver($config);
5326 }
5327
5328 /**
5329 * Create an instance of the fork concurrency driver.
5330 *
5331 * @param array $config
5332 * @return \Illuminate\Concurrency\ForkDriver
5333 * @throws \RuntimeException
5334 * @static
5335 */
5336 public static function createForkDriver($config)
5337 {
5338 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5339 return $instance->createForkDriver($config);
5340 }
5341
5342 /**
5343 * Create an instance of the sync concurrency driver.
5344 *
5345 * @param array $config
5346 * @return \Illuminate\Concurrency\SyncDriver
5347 * @static
5348 */
5349 public static function createSyncDriver($config)
5350 {
5351 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5352 return $instance->createSyncDriver($config);
5353 }
5354
5355 /**
5356 * Get the default instance name.
5357 *
5358 * @return string
5359 * @static
5360 */
5361 public static function getDefaultInstance()
5362 {
5363 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5364 return $instance->getDefaultInstance();
5365 }
5366
5367 /**
5368 * Set the default instance name.
5369 *
5370 * @param string $name
5371 * @return void
5372 * @static
5373 */
5374 public static function setDefaultInstance($name)
5375 {
5376 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5377 $instance->setDefaultInstance($name);
5378 }
5379
5380 /**
5381 * Get the instance specific configuration.
5382 *
5383 * @param string $name
5384 * @return array
5385 * @static
5386 */
5387 public static function getInstanceConfig($name)
5388 {
5389 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5390 return $instance->getInstanceConfig($name);
5391 }
5392
5393 /**
5394 * Get an instance by name.
5395 *
5396 * @param string|null $name
5397 * @return mixed
5398 * @static
5399 */
5400 public static function instance($name = null)
5401 {
5402 //Method inherited from \Illuminate\Support\MultipleInstanceManager
5403 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5404 return $instance->instance($name);
5405 }
5406
5407 /**
5408 * Unset the given instances.
5409 *
5410 * @param array|string|null $name
5411 * @return \Illuminate\Concurrency\ConcurrencyManager
5412 * @static
5413 */
5414 public static function forgetInstance($name = null)
5415 {
5416 //Method inherited from \Illuminate\Support\MultipleInstanceManager
5417 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5418 return $instance->forgetInstance($name);
5419 }
5420
5421 /**
5422 * Disconnect the given instance and remove from local cache.
5423 *
5424 * @param string|null $name
5425 * @return void
5426 * @static
5427 */
5428 public static function purge($name = null)
5429 {
5430 //Method inherited from \Illuminate\Support\MultipleInstanceManager
5431 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5432 $instance->purge($name);
5433 }
5434
5435 /**
5436 * Register a custom instance creator Closure.
5437 *
5438 * @param string $name
5439 * @param \Closure $callback
5440 * @param-closure-this $this $callback
5441 * @return \Illuminate\Concurrency\ConcurrencyManager
5442 * @static
5443 */
5444 public static function extend($name, $callback)
5445 {
5446 //Method inherited from \Illuminate\Support\MultipleInstanceManager
5447 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5448 return $instance->extend($name, $callback);
5449 }
5450
5451 /**
5452 * Set the application instance used by the manager.
5453 *
5454 * @param \Illuminate\Contracts\Foundation\Application $app
5455 * @return \Illuminate\Concurrency\ConcurrencyManager
5456 * @static
5457 */
5458 public static function setApplication($app)
5459 {
5460 //Method inherited from \Illuminate\Support\MultipleInstanceManager
5461 /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
5462 return $instance->setApplication($app);
5463 }
5464
5465 }
5466 /**
5467 * @see \Illuminate\Config\Repository
5468 */
5469 class Config {
5470 /**
5471 * Determine if the given configuration value exists.
5472 *
5473 * @param string $key
5474 * @return bool
5475 * @static
5476 */
5477 public static function has($key)
5478 {
5479 /** @var \Illuminate\Config\Repository $instance */
5480 return $instance->has($key);
5481 }
5482
5483 /**
5484 * Get the specified configuration value.
5485 *
5486 * @param array|string $key
5487 * @param mixed $default
5488 * @return mixed
5489 * @static
5490 */
5491 public static function get($key, $default = null)
5492 {
5493 /** @var \Illuminate\Config\Repository $instance */
5494 return $instance->get($key, $default);
5495 }
5496
5497 /**
5498 * Get many configuration values.
5499 *
5500 * @param array<string|int,mixed> $keys
5501 * @return array<string,mixed>
5502 * @static
5503 */
5504 public static function getMany($keys)
5505 {
5506 /** @var \Illuminate\Config\Repository $instance */
5507 return $instance->getMany($keys);
5508 }
5509
5510 /**
5511 * Get the specified string configuration value.
5512 *
5513 * @param string $key
5514 * @param (\Closure():(string|null))|string|null $default
5515 * @return string
5516 * @static
5517 */
5518 public static function string($key, $default = null)
5519 {
5520 /** @var \Illuminate\Config\Repository $instance */
5521 return $instance->string($key, $default);
5522 }
5523
5524 /**
5525 * Get the specified integer configuration value.
5526 *
5527 * @param string $key
5528 * @param (\Closure():(int|null))|int|null $default
5529 * @return int
5530 * @static
5531 */
5532 public static function integer($key, $default = null)
5533 {
5534 /** @var \Illuminate\Config\Repository $instance */
5535 return $instance->integer($key, $default);
5536 }
5537
5538 /**
5539 * Get the specified float configuration value.
5540 *
5541 * @param string $key
5542 * @param (\Closure():(float|null))|float|null $default
5543 * @return float
5544 * @static
5545 */
5546 public static function float($key, $default = null)
5547 {
5548 /** @var \Illuminate\Config\Repository $instance */
5549 return $instance->float($key, $default);
5550 }
5551
5552 /**
5553 * Get the specified boolean configuration value.
5554 *
5555 * @param string $key
5556 * @param (\Closure():(bool|null))|bool|null $default
5557 * @return bool
5558 * @static
5559 */
5560 public static function boolean($key, $default = null)
5561 {
5562 /** @var \Illuminate\Config\Repository $instance */
5563 return $instance->boolean($key, $default);
5564 }
5565
5566 /**
5567 * Get the specified array configuration value.
5568 *
5569 * @param string $key
5570 * @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default
5571 * @return array<array-key, mixed>
5572 * @static
5573 */
5574 public static function array($key, $default = null)
5575 {
5576 /** @var \Illuminate\Config\Repository $instance */
5577 return $instance->array($key, $default);
5578 }
5579
5580 /**
5581 * Get the specified array configuration value as a collection.
5582 *
5583 * @param string $key
5584 * @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default
5585 * @return Collection<array-key, mixed>
5586 * @static
5587 */
5588 public static function collection($key, $default = null)
5589 {
5590 /** @var \Illuminate\Config\Repository $instance */
5591 return $instance->collection($key, $default);
5592 }
5593
5594 /**
5595 * Set a given configuration value.
5596 *
5597 * @param array|string $key
5598 * @param mixed $value
5599 * @return void
5600 * @static
5601 */
5602 public static function set($key, $value = null)
5603 {
5604 /** @var \Illuminate\Config\Repository $instance */
5605 $instance->set($key, $value);
5606 }
5607
5608 /**
5609 * Prepend a value onto an array configuration value.
5610 *
5611 * @param string $key
5612 * @param mixed $value
5613 * @return void
5614 * @static
5615 */
5616 public static function prepend($key, $value)
5617 {
5618 /** @var \Illuminate\Config\Repository $instance */
5619 $instance->prepend($key, $value);
5620 }
5621
5622 /**
5623 * Push a value onto an array configuration value.
5624 *
5625 * @param string $key
5626 * @param mixed $value
5627 * @return void
5628 * @static
5629 */
5630 public static function push($key, $value)
5631 {
5632 /** @var \Illuminate\Config\Repository $instance */
5633 $instance->push($key, $value);
5634 }
5635
5636 /**
5637 * Get all of the configuration items for the application.
5638 *
5639 * @return array
5640 * @static
5641 */
5642 public static function all()
5643 {
5644 /** @var \Illuminate\Config\Repository $instance */
5645 return $instance->all();
5646 }
5647
5648 /**
5649 * Determine if the given configuration option exists.
5650 *
5651 * @param string $key
5652 * @return bool
5653 * @static
5654 */
5655 public static function offsetExists($key)
5656 {
5657 /** @var \Illuminate\Config\Repository $instance */
5658 return $instance->offsetExists($key);
5659 }
5660
5661 /**
5662 * Get a configuration option.
5663 *
5664 * @param string $key
5665 * @return mixed
5666 * @static
5667 */
5668 public static function offsetGet($key)
5669 {
5670 /** @var \Illuminate\Config\Repository $instance */
5671 return $instance->offsetGet($key);
5672 }
5673
5674 /**
5675 * Set a configuration option.
5676 *
5677 * @param string $key
5678 * @param mixed $value
5679 * @return void
5680 * @static
5681 */
5682 public static function offsetSet($key, $value)
5683 {
5684 /** @var \Illuminate\Config\Repository $instance */
5685 $instance->offsetSet($key, $value);
5686 }
5687
5688 /**
5689 * Unset a configuration option.
5690 *
5691 * @param string $key
5692 * @return void
5693 * @static
5694 */
5695 public static function offsetUnset($key)
5696 {
5697 /** @var \Illuminate\Config\Repository $instance */
5698 $instance->offsetUnset($key);
5699 }
5700
5701 /**
5702 * Register a custom macro.
5703 *
5704 * @param string $name
5705 * @param object|callable $macro
5706 * @param-closure-this static $macro
5707 * @return void
5708 * @static
5709 */
5710 public static function macro($name, $macro)
5711 {
5712 \Illuminate\Config\Repository::macro($name, $macro);
5713 }
5714
5715 /**
5716 * Mix another object into the class.
5717 *
5718 * @param object $mixin
5719 * @param bool $replace
5720 * @return void
5721 * @throws \ReflectionException
5722 * @static
5723 */
5724 public static function mixin($mixin, $replace = true)
5725 {
5726 \Illuminate\Config\Repository::mixin($mixin, $replace);
5727 }
5728
5729 /**
5730 * Checks if macro is registered.
5731 *
5732 * @param string $name
5733 * @return bool
5734 * @static
5735 */
5736 public static function hasMacro($name)
5737 {
5738 return \Illuminate\Config\Repository::hasMacro($name);
5739 }
5740
5741 /**
5742 * Flush the existing macros.
5743 *
5744 * @return void
5745 * @static
5746 */
5747 public static function flushMacros()
5748 {
5749 \Illuminate\Config\Repository::flushMacros();
5750 }
5751
5752 }
5753 /**
5754 * @see \Illuminate\Log\Context\Repository
5755 */
5756 class Context {
5757 /**
5758 * Determine if the given key exists.
5759 *
5760 * @param string $key
5761 * @return bool
5762 * @static
5763 */
5764 public static function has($key)
5765 {
5766 /** @var \Illuminate\Log\Context\Repository $instance */
5767 return $instance->has($key);
5768 }
5769
5770 /**
5771 * Determine if the given key is missing.
5772 *
5773 * @param string $key
5774 * @return bool
5775 * @static
5776 */
5777 public static function missing($key)
5778 {
5779 /** @var \Illuminate\Log\Context\Repository $instance */
5780 return $instance->missing($key);
5781 }
5782
5783 /**
5784 * Determine if the given key exists within the hidden context data.
5785 *
5786 * @param string $key
5787 * @return bool
5788 * @static
5789 */
5790 public static function hasHidden($key)
5791 {
5792 /** @var \Illuminate\Log\Context\Repository $instance */
5793 return $instance->hasHidden($key);
5794 }
5795
5796 /**
5797 * Determine if the given key is missing within the hidden context data.
5798 *
5799 * @param string $key
5800 * @return bool
5801 * @static
5802 */
5803 public static function missingHidden($key)
5804 {
5805 /** @var \Illuminate\Log\Context\Repository $instance */
5806 return $instance->missingHidden($key);
5807 }
5808
5809 /**
5810 * Retrieve all the context data.
5811 *
5812 * @return array<string, mixed>
5813 * @static
5814 */
5815 public static function all()
5816 {
5817 /** @var \Illuminate\Log\Context\Repository $instance */
5818 return $instance->all();
5819 }
5820
5821 /**
5822 * Retrieve all the hidden context data.
5823 *
5824 * @return array<string, mixed>
5825 * @static
5826 */
5827 public static function allHidden()
5828 {
5829 /** @var \Illuminate\Log\Context\Repository $instance */
5830 return $instance->allHidden();
5831 }
5832
5833 /**
5834 * Retrieve the given key's value.
5835 *
5836 * @param string $key
5837 * @param mixed $default
5838 * @return mixed
5839 * @static
5840 */
5841 public static function get($key, $default = null)
5842 {
5843 /** @var \Illuminate\Log\Context\Repository $instance */
5844 return $instance->get($key, $default);
5845 }
5846
5847 /**
5848 * Retrieve the given key's hidden value.
5849 *
5850 * @param string $key
5851 * @param mixed $default
5852 * @return mixed
5853 * @static
5854 */
5855 public static function getHidden($key, $default = null)
5856 {
5857 /** @var \Illuminate\Log\Context\Repository $instance */
5858 return $instance->getHidden($key, $default);
5859 }
5860
5861 /**
5862 * Retrieve the given key's value and then forget it.
5863 *
5864 * @param string $key
5865 * @param mixed $default
5866 * @return mixed
5867 * @static
5868 */
5869 public static function pull($key, $default = null)
5870 {
5871 /** @var \Illuminate\Log\Context\Repository $instance */
5872 return $instance->pull($key, $default);
5873 }
5874
5875 /**
5876 * Retrieve the given key's hidden value and then forget it.
5877 *
5878 * @param string $key
5879 * @param mixed $default
5880 * @return mixed
5881 * @static
5882 */
5883 public static function pullHidden($key, $default = null)
5884 {
5885 /** @var \Illuminate\Log\Context\Repository $instance */
5886 return $instance->pullHidden($key, $default);
5887 }
5888
5889 /**
5890 * Retrieve only the values of the given keys.
5891 *
5892 * @param array<int, string> $keys
5893 * @return array<string, mixed>
5894 * @static
5895 */
5896 public static function only($keys)
5897 {
5898 /** @var \Illuminate\Log\Context\Repository $instance */
5899 return $instance->only($keys);
5900 }
5901
5902 /**
5903 * Retrieve only the hidden values of the given keys.
5904 *
5905 * @param array<int, string> $keys
5906 * @return array<string, mixed>
5907 * @static
5908 */
5909 public static function onlyHidden($keys)
5910 {
5911 /** @var \Illuminate\Log\Context\Repository $instance */
5912 return $instance->onlyHidden($keys);
5913 }
5914
5915 /**
5916 * Retrieve all values except those with the given keys.
5917 *
5918 * @param array<int, string> $keys
5919 * @return array<string, mixed>
5920 * @static
5921 */
5922 public static function except($keys)
5923 {
5924 /** @var \Illuminate\Log\Context\Repository $instance */
5925 return $instance->except($keys);
5926 }
5927
5928 /**
5929 * Retrieve all hidden values except those with the given keys.
5930 *
5931 * @param array<int, string> $keys
5932 * @return array<string, mixed>
5933 * @static
5934 */
5935 public static function exceptHidden($keys)
5936 {
5937 /** @var \Illuminate\Log\Context\Repository $instance */
5938 return $instance->exceptHidden($keys);
5939 }
5940
5941 /**
5942 * Add a context value.
5943 *
5944 * @param string|array<string, mixed> $key
5945 * @param mixed $value
5946 * @return \Illuminate\Log\Context\Repository
5947 * @static
5948 */
5949 public static function add($key, $value = null)
5950 {
5951 /** @var \Illuminate\Log\Context\Repository $instance */
5952 return $instance->add($key, $value);
5953 }
5954
5955 /**
5956 * Add a hidden context value.
5957 *
5958 * @param string|array<string, mixed> $key
5959 * @param mixed $value
5960 * @return \Illuminate\Log\Context\Repository
5961 * @static
5962 */
5963 public static function addHidden($key, $value = null)
5964 {
5965 /** @var \Illuminate\Log\Context\Repository $instance */
5966 return $instance->addHidden($key, $value);
5967 }
5968
5969 /**
5970 * Add a context value if it does not exist yet, and return the value.
5971 *
5972 * @param string $key
5973 * @param mixed $value
5974 * @return mixed
5975 * @static
5976 */
5977 public static function remember($key, $value)
5978 {
5979 /** @var \Illuminate\Log\Context\Repository $instance */
5980 return $instance->remember($key, $value);
5981 }
5982
5983 /**
5984 * Add a hidden context value if it does not exist yet, and return the value.
5985 *
5986 * @param string $key
5987 * @param mixed $value
5988 * @return mixed
5989 * @static
5990 */
5991 public static function rememberHidden($key, $value)
5992 {
5993 /** @var \Illuminate\Log\Context\Repository $instance */
5994 return $instance->rememberHidden($key, $value);
5995 }
5996
5997 /**
5998 * Forget the given context key.
5999 *
6000 * @param string|array<int, string> $key
6001 * @return \Illuminate\Log\Context\Repository
6002 * @static
6003 */
6004 public static function forget($key)
6005 {
6006 /** @var \Illuminate\Log\Context\Repository $instance */
6007 return $instance->forget($key);
6008 }
6009
6010 /**
6011 * Forget the given hidden context key.
6012 *
6013 * @param string|array<int, string> $key
6014 * @return \Illuminate\Log\Context\Repository
6015 * @static
6016 */
6017 public static function forgetHidden($key)
6018 {
6019 /** @var \Illuminate\Log\Context\Repository $instance */
6020 return $instance->forgetHidden($key);
6021 }
6022
6023 /**
6024 * Add a context value if it does not exist yet.
6025 *
6026 * @param string $key
6027 * @param mixed $value
6028 * @return \Illuminate\Log\Context\Repository
6029 * @static
6030 */
6031 public static function addIf($key, $value)
6032 {
6033 /** @var \Illuminate\Log\Context\Repository $instance */
6034 return $instance->addIf($key, $value);
6035 }
6036
6037 /**
6038 * Add a hidden context value if it does not exist yet.
6039 *
6040 * @param string $key
6041 * @param mixed $value
6042 * @return \Illuminate\Log\Context\Repository
6043 * @static
6044 */
6045 public static function addHiddenIf($key, $value)
6046 {
6047 /** @var \Illuminate\Log\Context\Repository $instance */
6048 return $instance->addHiddenIf($key, $value);
6049 }
6050
6051 /**
6052 * Push the given values onto the key's stack.
6053 *
6054 * @param string $key
6055 * @param mixed $values
6056 * @return \Illuminate\Log\Context\Repository
6057 * @throws \RuntimeException
6058 * @static
6059 */
6060 public static function push($key, ...$values)
6061 {
6062 /** @var \Illuminate\Log\Context\Repository $instance */
6063 return $instance->push($key, ...$values);
6064 }
6065
6066 /**
6067 * Pop the latest value from the key's stack.
6068 *
6069 * @param string $key
6070 * @return mixed
6071 * @throws \RuntimeException
6072 * @static
6073 */
6074 public static function pop($key)
6075 {
6076 /** @var \Illuminate\Log\Context\Repository $instance */
6077 return $instance->pop($key);
6078 }
6079
6080 /**
6081 * Push the given hidden values onto the key's stack.
6082 *
6083 * @param string $key
6084 * @param mixed $values
6085 * @return \Illuminate\Log\Context\Repository
6086 * @throws \RuntimeException
6087 * @static
6088 */
6089 public static function pushHidden($key, ...$values)
6090 {
6091 /** @var \Illuminate\Log\Context\Repository $instance */
6092 return $instance->pushHidden($key, ...$values);
6093 }
6094
6095 /**
6096 * Pop the latest hidden value from the key's stack.
6097 *
6098 * @param string $key
6099 * @return mixed
6100 * @throws \RuntimeException
6101 * @static
6102 */
6103 public static function popHidden($key)
6104 {
6105 /** @var \Illuminate\Log\Context\Repository $instance */
6106 return $instance->popHidden($key);
6107 }
6108
6109 /**
6110 * Increment a context counter.
6111 *
6112 * @param string $key
6113 * @param int $amount
6114 * @return \Illuminate\Log\Context\Repository
6115 * @static
6116 */
6117 public static function increment($key, $amount = 1)
6118 {
6119 /** @var \Illuminate\Log\Context\Repository $instance */
6120 return $instance->increment($key, $amount);
6121 }
6122
6123 /**
6124 * Decrement a context counter.
6125 *
6126 * @param string $key
6127 * @param int $amount
6128 * @return \Illuminate\Log\Context\Repository
6129 * @static
6130 */
6131 public static function decrement($key, $amount = 1)
6132 {
6133 /** @var \Illuminate\Log\Context\Repository $instance */
6134 return $instance->decrement($key, $amount);
6135 }
6136
6137 /**
6138 * Determine if the given value is in the given stack.
6139 *
6140 * @param string $key
6141 * @param mixed $value
6142 * @param bool $strict
6143 * @return bool
6144 * @throws \RuntimeException
6145 * @static
6146 */
6147 public static function stackContains($key, $value, $strict = false)
6148 {
6149 /** @var \Illuminate\Log\Context\Repository $instance */
6150 return $instance->stackContains($key, $value, $strict);
6151 }
6152
6153 /**
6154 * Determine if the given value is in the given hidden stack.
6155 *
6156 * @param string $key
6157 * @param mixed $value
6158 * @param bool $strict
6159 * @return bool
6160 * @throws \RuntimeException
6161 * @static
6162 */
6163 public static function hiddenStackContains($key, $value, $strict = false)
6164 {
6165 /** @var \Illuminate\Log\Context\Repository $instance */
6166 return $instance->hiddenStackContains($key, $value, $strict);
6167 }
6168
6169 /**
6170 * Run the callback function with the given context values and restore the original context state when complete.
6171 *
6172 * @param callable $callback
6173 * @param array<string, mixed> $data
6174 * @param array<string, mixed> $hidden
6175 * @return mixed
6176 * @throws \Throwable
6177 * @static
6178 */
6179 public static function scope($callback, $data = [], $hidden = [])
6180 {
6181 /** @var \Illuminate\Log\Context\Repository $instance */
6182 return $instance->scope($callback, $data, $hidden);
6183 }
6184
6185 /**
6186 * Determine if the repository is empty.
6187 *
6188 * @return bool
6189 * @static
6190 */
6191 public static function isEmpty()
6192 {
6193 /** @var \Illuminate\Log\Context\Repository $instance */
6194 return $instance->isEmpty();
6195 }
6196
6197 /**
6198 * Execute the given callback when context is about to be dehydrated.
6199 *
6200 * @param callable $callback
6201 * @return \Illuminate\Log\Context\Repository
6202 * @static
6203 */
6204 public static function dehydrating($callback)
6205 {
6206 /** @var \Illuminate\Log\Context\Repository $instance */
6207 return $instance->dehydrating($callback);
6208 }
6209
6210 /**
6211 * Execute the given callback when context has been hydrated.
6212 *
6213 * @param callable $callback
6214 * @return \Illuminate\Log\Context\Repository
6215 * @static
6216 */
6217 public static function hydrated($callback)
6218 {
6219 /** @var \Illuminate\Log\Context\Repository $instance */
6220 return $instance->hydrated($callback);
6221 }
6222
6223 /**
6224 * Handle unserialize exceptions using the given callback.
6225 *
6226 * @param callable|null $callback
6227 * @return static
6228 * @static
6229 */
6230 public static function handleUnserializeExceptionsUsing($callback)
6231 {
6232 /** @var \Illuminate\Log\Context\Repository $instance */
6233 return $instance->handleUnserializeExceptionsUsing($callback);
6234 }
6235
6236 /**
6237 * Flush all context data.
6238 *
6239 * @return \Illuminate\Log\Context\Repository
6240 * @static
6241 */
6242 public static function flush()
6243 {
6244 /** @var \Illuminate\Log\Context\Repository $instance */
6245 return $instance->flush();
6246 }
6247
6248 /**
6249 * Dehydrate the context data.
6250 *
6251 * @internal
6252 * @return \Illuminate\Log\Context\?array
6253 * @static
6254 */
6255 public static function dehydrate()
6256 {
6257 /** @var \Illuminate\Log\Context\Repository $instance */
6258 return $instance->dehydrate();
6259 }
6260
6261 /**
6262 * Hydrate the context instance.
6263 *
6264 * @internal
6265 * @param \Illuminate\Log\Context\?array $context
6266 * @return \Illuminate\Log\Context\Repository
6267 * @throws \RuntimeException
6268 * @static
6269 */
6270 public static function hydrate($context)
6271 {
6272 /** @var \Illuminate\Log\Context\Repository $instance */
6273 return $instance->hydrate($context);
6274 }
6275
6276 /**
6277 * Apply the callback if the given "value" is (or resolves to) truthy.
6278 *
6279 * @template TWhenParameter
6280 * @template TWhenReturnType
6281 * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
6282 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
6283 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
6284 * @return $this|TWhenReturnType
6285 * @static
6286 */
6287 public static function when($value = null, $callback = null, $default = null)
6288 {
6289 /** @var \Illuminate\Log\Context\Repository $instance */
6290 return $instance->when($value, $callback, $default);
6291 }
6292
6293 /**
6294 * Apply the callback if the given "value" is (or resolves to) falsy.
6295 *
6296 * @template TUnlessParameter
6297 * @template TUnlessReturnType
6298 * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
6299 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
6300 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
6301 * @return $this|TUnlessReturnType
6302 * @static
6303 */
6304 public static function unless($value = null, $callback = null, $default = null)
6305 {
6306 /** @var \Illuminate\Log\Context\Repository $instance */
6307 return $instance->unless($value, $callback, $default);
6308 }
6309
6310 /**
6311 * Register a custom macro.
6312 *
6313 * @param string $name
6314 * @param object|callable $macro
6315 * @param-closure-this static $macro
6316 * @return void
6317 * @static
6318 */
6319 public static function macro($name, $macro)
6320 {
6321 \Illuminate\Log\Context\Repository::macro($name, $macro);
6322 }
6323
6324 /**
6325 * Mix another object into the class.
6326 *
6327 * @param object $mixin
6328 * @param bool $replace
6329 * @return void
6330 * @throws \ReflectionException
6331 * @static
6332 */
6333 public static function mixin($mixin, $replace = true)
6334 {
6335 \Illuminate\Log\Context\Repository::mixin($mixin, $replace);
6336 }
6337
6338 /**
6339 * Checks if macro is registered.
6340 *
6341 * @param string $name
6342 * @return bool
6343 * @static
6344 */
6345 public static function hasMacro($name)
6346 {
6347 return \Illuminate\Log\Context\Repository::hasMacro($name);
6348 }
6349
6350 /**
6351 * Flush the existing macros.
6352 *
6353 * @return void
6354 * @static
6355 */
6356 public static function flushMacros()
6357 {
6358 \Illuminate\Log\Context\Repository::flushMacros();
6359 }
6360
6361 /**
6362 * Restore the model from the model identifier instance.
6363 *
6364 * @param \Illuminate\Contracts\Database\ModelIdentifier $value
6365 * @return \Illuminate\Database\Eloquent\Model
6366 * @static
6367 */
6368 public static function restoreModel($value)
6369 {
6370 /** @var \Illuminate\Log\Context\Repository $instance */
6371 return $instance->restoreModel($value);
6372 }
6373
6374 }
6375 /**
6376 * @see \Illuminate\Cookie\CookieJar
6377 */
6378 class Cookie {
6379 /**
6380 * Create a new cookie instance.
6381 *
6382 * @param string $name
6383 * @param string $value
6384 * @param int $minutes
6385 * @param string|null $path
6386 * @param string|null $domain
6387 * @param bool|null $secure
6388 * @param bool $httpOnly
6389 * @param bool $raw
6390 * @param string|null $sameSite
6391 * @return \Symfony\Component\HttpFoundation\Cookie
6392 * @static
6393 */
6394 public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
6395 {
6396 /** @var \Illuminate\Cookie\CookieJar $instance */
6397 return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
6398 }
6399
6400 /**
6401 * Create a cookie that lasts "forever" (400 days).
6402 *
6403 * @param string $name
6404 * @param string $value
6405 * @param string|null $path
6406 * @param string|null $domain
6407 * @param bool|null $secure
6408 * @param bool $httpOnly
6409 * @param bool $raw
6410 * @param string|null $sameSite
6411 * @return \Symfony\Component\HttpFoundation\Cookie
6412 * @static
6413 */
6414 public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
6415 {
6416 /** @var \Illuminate\Cookie\CookieJar $instance */
6417 return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
6418 }
6419
6420 /**
6421 * Expire the given cookie.
6422 *
6423 * @param string $name
6424 * @param string|null $path
6425 * @param string|null $domain
6426 * @return \Symfony\Component\HttpFoundation\Cookie
6427 * @static
6428 */
6429 public static function forget($name, $path = null, $domain = null)
6430 {
6431 /** @var \Illuminate\Cookie\CookieJar $instance */
6432 return $instance->forget($name, $path, $domain);
6433 }
6434
6435 /**
6436 * Determine if a cookie has been queued.
6437 *
6438 * @param string $key
6439 * @param string|null $path
6440 * @return bool
6441 * @static
6442 */
6443 public static function hasQueued($key, $path = null)
6444 {
6445 /** @var \Illuminate\Cookie\CookieJar $instance */
6446 return $instance->hasQueued($key, $path);
6447 }
6448
6449 /**
6450 * Get a queued cookie instance.
6451 *
6452 * @param string $key
6453 * @param mixed $default
6454 * @param string|null $path
6455 * @return \Symfony\Component\HttpFoundation\Cookie|null
6456 * @static
6457 */
6458 public static function queued($key, $default = null, $path = null)
6459 {
6460 /** @var \Illuminate\Cookie\CookieJar $instance */
6461 return $instance->queued($key, $default, $path);
6462 }
6463
6464 /**
6465 * Queue a cookie to send with the next response.
6466 *
6467 * @param mixed $parameters
6468 * @return void
6469 * @static
6470 */
6471 public static function queue(...$parameters)
6472 {
6473 /** @var \Illuminate\Cookie\CookieJar $instance */
6474 $instance->queue(...$parameters);
6475 }
6476
6477 /**
6478 * Queue a cookie to expire with the next response.
6479 *
6480 * @param string $name
6481 * @param string|null $path
6482 * @param string|null $domain
6483 * @return void
6484 * @static
6485 */
6486 public static function expire($name, $path = null, $domain = null)
6487 {
6488 /** @var \Illuminate\Cookie\CookieJar $instance */
6489 $instance->expire($name, $path, $domain);
6490 }
6491
6492 /**
6493 * Remove a cookie from the queue.
6494 *
6495 * @param string $name
6496 * @param string|null $path
6497 * @return void
6498 * @static
6499 */
6500 public static function unqueue($name, $path = null)
6501 {
6502 /** @var \Illuminate\Cookie\CookieJar $instance */
6503 $instance->unqueue($name, $path);
6504 }
6505
6506 /**
6507 * Set the default path and domain for the jar.
6508 *
6509 * @param string $path
6510 * @param string|null $domain
6511 * @param bool|null $secure
6512 * @param string|null $sameSite
6513 * @return \Illuminate\Cookie\CookieJar
6514 * @static
6515 */
6516 public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
6517 {
6518 /** @var \Illuminate\Cookie\CookieJar $instance */
6519 return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
6520 }
6521
6522 /**
6523 * Get the cookies which have been queued for the next request.
6524 *
6525 * @return \Symfony\Component\HttpFoundation\Cookie[]
6526 * @static
6527 */
6528 public static function getQueuedCookies()
6529 {
6530 /** @var \Illuminate\Cookie\CookieJar $instance */
6531 return $instance->getQueuedCookies();
6532 }
6533
6534 /**
6535 * Flush the cookies which have been queued for the next request.
6536 *
6537 * @return \Illuminate\Cookie\CookieJar
6538 * @static
6539 */
6540 public static function flushQueuedCookies()
6541 {
6542 /** @var \Illuminate\Cookie\CookieJar $instance */
6543 return $instance->flushQueuedCookies();
6544 }
6545
6546 /**
6547 * Register a custom macro.
6548 *
6549 * @param string $name
6550 * @param object|callable $macro
6551 * @param-closure-this static $macro
6552 * @return void
6553 * @static
6554 */
6555 public static function macro($name, $macro)
6556 {
6557 \Illuminate\Cookie\CookieJar::macro($name, $macro);
6558 }
6559
6560 /**
6561 * Mix another object into the class.
6562 *
6563 * @param object $mixin
6564 * @param bool $replace
6565 * @return void
6566 * @throws \ReflectionException
6567 * @static
6568 */
6569 public static function mixin($mixin, $replace = true)
6570 {
6571 \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
6572 }
6573
6574 /**
6575 * Checks if macro is registered.
6576 *
6577 * @param string $name
6578 * @return bool
6579 * @static
6580 */
6581 public static function hasMacro($name)
6582 {
6583 return \Illuminate\Cookie\CookieJar::hasMacro($name);
6584 }
6585
6586 /**
6587 * Flush the existing macros.
6588 *
6589 * @return void
6590 * @static
6591 */
6592 public static function flushMacros()
6593 {
6594 \Illuminate\Cookie\CookieJar::flushMacros();
6595 }
6596
6597 }
6598 /**
6599 * @see \Illuminate\Encryption\Encrypter
6600 */
6601 class Crypt {
6602 /**
6603 * Determine if the given key and cipher combination is valid.
6604 *
6605 * @param string $key
6606 * @param string $cipher
6607 * @return bool
6608 * @static
6609 */
6610 public static function supported($key, $cipher)
6611 {
6612 return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
6613 }
6614
6615 /**
6616 * Create a new encryption key for the given cipher.
6617 *
6618 * @param string $cipher
6619 * @return string
6620 * @static
6621 */
6622 public static function generateKey($cipher)
6623 {
6624 return \Illuminate\Encryption\Encrypter::generateKey($cipher);
6625 }
6626
6627 /**
6628 * Encrypt the given value.
6629 *
6630 * @param mixed $value
6631 * @param bool $serialize
6632 * @return string
6633 * @throws \Illuminate\Contracts\Encryption\EncryptException
6634 * @static
6635 */
6636 public static function encrypt($value, $serialize = true)
6637 {
6638 /** @var \Illuminate\Encryption\Encrypter $instance */
6639 return $instance->encrypt($value, $serialize);
6640 }
6641
6642 /**
6643 * Encrypt a string without serialization.
6644 *
6645 * @param string $value
6646 * @return string
6647 * @throws \Illuminate\Contracts\Encryption\EncryptException
6648 * @static
6649 */
6650 public static function encryptString($value)
6651 {
6652 /** @var \Illuminate\Encryption\Encrypter $instance */
6653 return $instance->encryptString($value);
6654 }
6655
6656 /**
6657 * Decrypt the given value.
6658 *
6659 * @param string $payload
6660 * @param bool $unserialize
6661 * @return mixed
6662 * @throws \Illuminate\Contracts\Encryption\DecryptException
6663 * @static
6664 */
6665 public static function decrypt($payload, $unserialize = true)
6666 {
6667 /** @var \Illuminate\Encryption\Encrypter $instance */
6668 return $instance->decrypt($payload, $unserialize);
6669 }
6670
6671 /**
6672 * Decrypt the given string without unserialization.
6673 *
6674 * @param string $payload
6675 * @return string
6676 * @throws \Illuminate\Contracts\Encryption\DecryptException
6677 * @static
6678 */
6679 public static function decryptString($payload)
6680 {
6681 /** @var \Illuminate\Encryption\Encrypter $instance */
6682 return $instance->decryptString($payload);
6683 }
6684
6685 /**
6686 * Get the encryption key that the encrypter is currently using.
6687 *
6688 * @return string
6689 * @static
6690 */
6691 public static function getKey()
6692 {
6693 /** @var \Illuminate\Encryption\Encrypter $instance */
6694 return $instance->getKey();
6695 }
6696
6697 /**
6698 * Get the current encryption key and all previous encryption keys.
6699 *
6700 * @return array
6701 * @static
6702 */
6703 public static function getAllKeys()
6704 {
6705 /** @var \Illuminate\Encryption\Encrypter $instance */
6706 return $instance->getAllKeys();
6707 }
6708
6709 /**
6710 * Get the previous encryption keys.
6711 *
6712 * @return array
6713 * @static
6714 */
6715 public static function getPreviousKeys()
6716 {
6717 /** @var \Illuminate\Encryption\Encrypter $instance */
6718 return $instance->getPreviousKeys();
6719 }
6720
6721 /**
6722 * Set the previous / legacy encryption keys that should be utilized if decryption fails.
6723 *
6724 * @param array $keys
6725 * @return \Illuminate\Encryption\Encrypter
6726 * @throws \RuntimeException
6727 * @static
6728 */
6729 public static function previousKeys($keys)
6730 {
6731 /** @var \Illuminate\Encryption\Encrypter $instance */
6732 return $instance->previousKeys($keys);
6733 }
6734
6735 }
6736 /**
6737 * @see https://carbon.nesbot.com/docs/
6738 * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
6739 * @method static bool canBeCreatedFromFormat(?string $date, string $format)
6740 * @method static \Illuminate\Support\Carbon|null create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null)
6741 * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $timezone = null)
6742 * @method static \Illuminate\Support\Carbon|null createFromFormat($format, $time, $timezone = null)
6743 * @method static \Illuminate\Support\Carbon|null createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?\Symfony\Contracts\Translation\TranslatorInterface $translator = null)
6744 * @method static \Illuminate\Support\Carbon|null createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null)
6745 * @method static \Illuminate\Support\Carbon|null createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null)
6746 * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null)
6747 * @method static \Illuminate\Support\Carbon createFromTimeString(string $time, \DateTimeZone|string|int|null $timezone = null)
6748 * @method static \Illuminate\Support\Carbon createFromTimestamp(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
6749 * @method static \Illuminate\Support\Carbon createFromTimestampMs(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
6750 * @method static \Illuminate\Support\Carbon createFromTimestampMsUTC($timestamp)
6751 * @method static \Illuminate\Support\Carbon createFromTimestampUTC(string|int|float $timestamp)
6752 * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $timezone = null)
6753 * @method static \Illuminate\Support\Carbon|null createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null)
6754 * @method static \Illuminate\Support\Carbon createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null)
6755 * @method static void disableHumanDiffOption($humanDiffOption)
6756 * @method static void enableHumanDiffOption($humanDiffOption)
6757 * @method static mixed executeWithLocale(string $locale, callable $func)
6758 * @method static \Illuminate\Support\Carbon fromSerialized($value)
6759 * @method static array getAvailableLocales()
6760 * @method static array getAvailableLocalesInfo()
6761 * @method static array getDays()
6762 * @method static ?string getFallbackLocale()
6763 * @method static array getFormatsToIsoReplacements()
6764 * @method static int getHumanDiffOptions()
6765 * @method static array getIsoUnits()
6766 * @method static array|false getLastErrors()
6767 * @method static string getLocale()
6768 * @method static int getMidDayAt()
6769 * @method static string getTimeFormatByPrecision(string $unitPrecision)
6770 * @method static string|\Closure|null getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null)
6771 * @method static \Illuminate\Support\Carbon|null getTestNow()
6772 * @method static \Symfony\Contracts\Translation\TranslatorInterface getTranslator()
6773 * @method static int getWeekEndsAt(?string $locale = null)
6774 * @method static int getWeekStartsAt(?string $locale = null)
6775 * @method static array getWeekendDays()
6776 * @method static bool hasFormat(string $date, string $format)
6777 * @method static bool hasFormatWithModifiers(string $date, string $format)
6778 * @method static bool hasMacro($name)
6779 * @method static bool hasRelativeKeywords(?string $time)
6780 * @method static bool hasTestNow()
6781 * @method static \Illuminate\Support\Carbon instance(\DateTimeInterface $date)
6782 * @method static bool isImmutable()
6783 * @method static bool isModifiableUnit($unit)
6784 * @method static bool isMutable()
6785 * @method static bool isStrictModeEnabled()
6786 * @method static bool localeHasDiffOneDayWords(string $locale)
6787 * @method static bool localeHasDiffSyntax(string $locale)
6788 * @method static bool localeHasDiffTwoDayWords(string $locale)
6789 * @method static bool localeHasPeriodSyntax($locale)
6790 * @method static bool localeHasShortUnits(string $locale)
6791 * @method static void macro(string $name, ?callable $macro)
6792 * @method static \Illuminate\Support\Carbon|null make($var, \DateTimeZone|string|null $timezone = null)
6793 * @method static void mixin(object|string $mixin)
6794 * @method static \Illuminate\Support\Carbon now(\DateTimeZone|string|int|null $timezone = null)
6795 * @method static \Illuminate\Support\Carbon parse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
6796 * @method static \Illuminate\Support\Carbon parseFromLocale(string $time, ?string $locale = null, \DateTimeZone|string|int|null $timezone = null)
6797 * @method static string pluralUnit(string $unit)
6798 * @method static \Illuminate\Support\Carbon|null rawCreateFromFormat(string $format, string $time, $timezone = null)
6799 * @method static \Illuminate\Support\Carbon rawParse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
6800 * @method static void resetMonthsOverflow()
6801 * @method static void resetToStringFormat()
6802 * @method static void resetYearsOverflow()
6803 * @method static void serializeUsing($callback)
6804 * @method static void setFallbackLocale(string $locale)
6805 * @method static void setHumanDiffOptions($humanDiffOptions)
6806 * @method static void setLocale(string $locale)
6807 * @method static void setMidDayAt($hour)
6808 * @method static void setTestNow(mixed $testNow = null)
6809 * @method static void setTestNowAndTimezone(mixed $testNow = null, $timezone = null)
6810 * @method static void setToStringFormat(string|\Closure|null $format)
6811 * @method static void setTranslator(\Symfony\Contracts\Translation\TranslatorInterface $translator)
6812 * @method static void setWeekEndsAt($day)
6813 * @method static void setWeekStartsAt($day)
6814 * @method static void setWeekendDays($days)
6815 * @method static bool shouldOverflowMonths()
6816 * @method static bool shouldOverflowYears()
6817 * @method static string singularUnit(string $unit)
6818 * @method static void sleep(int|float $seconds)
6819 * @method static \Illuminate\Support\Carbon today(\DateTimeZone|string|int|null $timezone = null)
6820 * @method static \Illuminate\Support\Carbon tomorrow(\DateTimeZone|string|int|null $timezone = null)
6821 * @method static string translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = \Carbon\CarbonInterface::TRANSLATE_ALL)
6822 * @method static string translateWith(\Symfony\Contracts\Translation\TranslatorInterface $translator, string $key, array $parameters = [], $number = null)
6823 * @method static void useMonthsOverflow($monthsOverflow = true)
6824 * @method static void useStrictMode($strictModeEnabled = true)
6825 * @method static void useYearsOverflow($yearsOverflow = true)
6826 * @method static mixed withTestNow(mixed $testNow, callable $callback)
6827 * @method static static withTimeZone(\DateTimeZone|string|int|null $timezone)
6828 * @method static \Illuminate\Support\Carbon yesterday(\DateTimeZone|string|int|null $timezone = null)
6829 * @see \Illuminate\Support\DateFactory
6830 */
6831 class Date {
6832 /**
6833 * Use the given handler when generating dates (class name, callable, or factory).
6834 *
6835 * @param mixed $handler
6836 * @return mixed
6837 * @throws \InvalidArgumentException
6838 * @static
6839 */
6840 public static function use($handler)
6841 {
6842 return \Illuminate\Support\DateFactory::use($handler);
6843 }
6844
6845 /**
6846 * Use the default date class when generating dates.
6847 *
6848 * @return void
6849 * @static
6850 */
6851 public static function useDefault()
6852 {
6853 \Illuminate\Support\DateFactory::useDefault();
6854 }
6855
6856 /**
6857 * Execute the given callable on each date creation.
6858 *
6859 * @param callable $callable
6860 * @return void
6861 * @static
6862 */
6863 public static function useCallable($callable)
6864 {
6865 \Illuminate\Support\DateFactory::useCallable($callable);
6866 }
6867
6868 /**
6869 * Use the given date type (class) when generating dates.
6870 *
6871 * @param string $dateClass
6872 * @return void
6873 * @static
6874 */
6875 public static function useClass($dateClass)
6876 {
6877 \Illuminate\Support\DateFactory::useClass($dateClass);
6878 }
6879
6880 /**
6881 * Use the given Carbon factory when generating dates.
6882 *
6883 * @param object $factory
6884 * @return void
6885 * @static
6886 */
6887 public static function useFactory($factory)
6888 {
6889 \Illuminate\Support\DateFactory::useFactory($factory);
6890 }
6891
6892 }
6893 /**
6894 * @see \Illuminate\Database\DatabaseManager
6895 */
6896 class DB {
6897 /**
6898 * Get a database connection instance.
6899 *
6900 * @param \UnitEnum|string|null $name
6901 * @return \Illuminate\Database\Connection
6902 * @static
6903 */
6904 public static function connection($name = null)
6905 {
6906 /** @var \Illuminate\Database\DatabaseManager $instance */
6907 return $instance->connection($name);
6908 }
6909
6910 /**
6911 * Build a database connection instance from the given configuration.
6912 *
6913 * @param array $config
6914 * @return \Illuminate\Database\MariaDbConnection
6915 * @static
6916 */
6917 public static function build($config)
6918 {
6919 /** @var \Illuminate\Database\DatabaseManager $instance */
6920 return $instance->build($config);
6921 }
6922
6923 /**
6924 * Calculate the dynamic connection name for an on-demand connection based on its configuration.
6925 *
6926 * @param array $config
6927 * @return string
6928 * @static
6929 */
6930 public static function calculateDynamicConnectionName($config)
6931 {
6932 return \Illuminate\Database\DatabaseManager::calculateDynamicConnectionName($config);
6933 }
6934
6935 /**
6936 * Get a database connection instance from the given configuration.
6937 *
6938 * @param \UnitEnum|string $name
6939 * @param array $config
6940 * @param bool $force
6941 * @return \Illuminate\Database\MariaDbConnection
6942 * @static
6943 */
6944 public static function connectUsing($name, $config, $force = false)
6945 {
6946 /** @var \Illuminate\Database\DatabaseManager $instance */
6947 return $instance->connectUsing($name, $config, $force);
6948 }
6949
6950 /**
6951 * Disconnect from the given database and remove from local cache.
6952 *
6953 * @param \UnitEnum|string|null $name
6954 * @return void
6955 * @static
6956 */
6957 public static function purge($name = null)
6958 {
6959 /** @var \Illuminate\Database\DatabaseManager $instance */
6960 $instance->purge($name);
6961 }
6962
6963 /**
6964 * Disconnect from the given database.
6965 *
6966 * @param \UnitEnum|string|null $name
6967 * @return void
6968 * @static
6969 */
6970 public static function disconnect($name = null)
6971 {
6972 /** @var \Illuminate\Database\DatabaseManager $instance */
6973 $instance->disconnect($name);
6974 }
6975
6976 /**
6977 * Reconnect to the given database.
6978 *
6979 * @param \UnitEnum|string|null $name
6980 * @return \Illuminate\Database\Connection
6981 * @static
6982 */
6983 public static function reconnect($name = null)
6984 {
6985 /** @var \Illuminate\Database\DatabaseManager $instance */
6986 return $instance->reconnect($name);
6987 }
6988
6989 /**
6990 * Set the default database connection for the callback execution.
6991 *
6992 * @param \UnitEnum|string $name
6993 * @param callable $callback
6994 * @return mixed
6995 * @static
6996 */
6997 public static function usingConnection($name, $callback)
6998 {
6999 /** @var \Illuminate\Database\DatabaseManager $instance */
7000 return $instance->usingConnection($name, $callback);
7001 }
7002
7003 /**
7004 * Get the default connection name.
7005 *
7006 * @return string
7007 * @static
7008 */
7009 public static function getDefaultConnection()
7010 {
7011 /** @var \Illuminate\Database\DatabaseManager $instance */
7012 return $instance->getDefaultConnection();
7013 }
7014
7015 /**
7016 * Set the default connection name.
7017 *
7018 * @param string $name
7019 * @return void
7020 * @static
7021 */
7022 public static function setDefaultConnection($name)
7023 {
7024 /** @var \Illuminate\Database\DatabaseManager $instance */
7025 $instance->setDefaultConnection($name);
7026 }
7027
7028 /**
7029 * Get all of the supported drivers.
7030 *
7031 * @return string[]
7032 * @static
7033 */
7034 public static function supportedDrivers()
7035 {
7036 /** @var \Illuminate\Database\DatabaseManager $instance */
7037 return $instance->supportedDrivers();
7038 }
7039
7040 /**
7041 * Get all of the drivers that are actually available.
7042 *
7043 * @return string[]
7044 * @static
7045 */
7046 public static function availableDrivers()
7047 {
7048 /** @var \Illuminate\Database\DatabaseManager $instance */
7049 return $instance->availableDrivers();
7050 }
7051
7052 /**
7053 * Register an extension connection resolver.
7054 *
7055 * @param string $name
7056 * @param callable $resolver
7057 * @return void
7058 * @static
7059 */
7060 public static function extend($name, $resolver)
7061 {
7062 /** @var \Illuminate\Database\DatabaseManager $instance */
7063 $instance->extend($name, $resolver);
7064 }
7065
7066 /**
7067 * Remove an extension connection resolver.
7068 *
7069 * @param string $name
7070 * @return void
7071 * @static
7072 */
7073 public static function forgetExtension($name)
7074 {
7075 /** @var \Illuminate\Database\DatabaseManager $instance */
7076 $instance->forgetExtension($name);
7077 }
7078
7079 /**
7080 * Return all of the created connections.
7081 *
7082 * @return array<string, \Illuminate\Database\Connection>
7083 * @static
7084 */
7085 public static function getConnections()
7086 {
7087 /** @var \Illuminate\Database\DatabaseManager $instance */
7088 return $instance->getConnections();
7089 }
7090
7091 /**
7092 * Set the database reconnector callback.
7093 *
7094 * @param callable $reconnector
7095 * @return void
7096 * @static
7097 */
7098 public static function setReconnector($reconnector)
7099 {
7100 /** @var \Illuminate\Database\DatabaseManager $instance */
7101 $instance->setReconnector($reconnector);
7102 }
7103
7104 /**
7105 * Set the application instance used by the manager.
7106 *
7107 * @param \Illuminate\Contracts\Foundation\Application $app
7108 * @return \Illuminate\Database\DatabaseManager
7109 * @static
7110 */
7111 public static function setApplication($app)
7112 {
7113 /** @var \Illuminate\Database\DatabaseManager $instance */
7114 return $instance->setApplication($app);
7115 }
7116
7117 /**
7118 * Register a custom macro.
7119 *
7120 * @param string $name
7121 * @param object|callable $macro
7122 * @param-closure-this static $macro
7123 * @return void
7124 * @static
7125 */
7126 public static function macro($name, $macro)
7127 {
7128 \Illuminate\Database\DatabaseManager::macro($name, $macro);
7129 }
7130
7131 /**
7132 * Mix another object into the class.
7133 *
7134 * @param object $mixin
7135 * @param bool $replace
7136 * @return void
7137 * @throws \ReflectionException
7138 * @static
7139 */
7140 public static function mixin($mixin, $replace = true)
7141 {
7142 \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
7143 }
7144
7145 /**
7146 * Checks if macro is registered.
7147 *
7148 * @param string $name
7149 * @return bool
7150 * @static
7151 */
7152 public static function hasMacro($name)
7153 {
7154 return \Illuminate\Database\DatabaseManager::hasMacro($name);
7155 }
7156
7157 /**
7158 * Flush the existing macros.
7159 *
7160 * @return void
7161 * @static
7162 */
7163 public static function flushMacros()
7164 {
7165 \Illuminate\Database\DatabaseManager::flushMacros();
7166 }
7167
7168 /**
7169 * Dynamically handle calls to the class.
7170 *
7171 * @param string $method
7172 * @param array $parameters
7173 * @return mixed
7174 * @throws \BadMethodCallException
7175 * @static
7176 */
7177 public static function macroCall($method, $parameters)
7178 {
7179 /** @var \Illuminate\Database\DatabaseManager $instance */
7180 return $instance->macroCall($method, $parameters);
7181 }
7182
7183 /**
7184 * Get a human-readable name for the given connection driver.
7185 *
7186 * @return string
7187 * @static
7188 */
7189 public static function getDriverTitle()
7190 {
7191 /** @var \Illuminate\Database\MariaDbConnection $instance */
7192 return $instance->getDriverTitle();
7193 }
7194
7195 /**
7196 * Determine if the connected database is a MariaDB database.
7197 *
7198 * @return bool
7199 * @static
7200 */
7201 public static function isMaria()
7202 {
7203 /** @var \Illuminate\Database\MariaDbConnection $instance */
7204 return $instance->isMaria();
7205 }
7206
7207 /**
7208 * Get the server version for the connection.
7209 *
7210 * @return string
7211 * @static
7212 */
7213 public static function getServerVersion()
7214 {
7215 /** @var \Illuminate\Database\MariaDbConnection $instance */
7216 return $instance->getServerVersion();
7217 }
7218
7219 /**
7220 * Get a schema builder instance for the connection.
7221 *
7222 * @return \Illuminate\Database\Schema\MariaDbBuilder
7223 * @static
7224 */
7225 public static function getSchemaBuilder()
7226 {
7227 /** @var \Illuminate\Database\MariaDbConnection $instance */
7228 return $instance->getSchemaBuilder();
7229 }
7230
7231 /**
7232 * Get the schema state for the connection.
7233 *
7234 * @param \Illuminate\Filesystem\Filesystem|null $files
7235 * @param callable|null $processFactory
7236 * @return \Illuminate\Database\Schema\MariaDbSchemaState
7237 * @static
7238 */
7239 public static function getSchemaState($files = null, $processFactory = null)
7240 {
7241 /** @var \Illuminate\Database\MariaDbConnection $instance */
7242 return $instance->getSchemaState($files, $processFactory);
7243 }
7244
7245 /**
7246 * Run an insert statement against the database.
7247 *
7248 * @param string $query
7249 * @param array $bindings
7250 * @param string|null $sequence
7251 * @return bool
7252 * @static
7253 */
7254 public static function insert($query, $bindings = [], $sequence = null)
7255 {
7256 //Method inherited from \Illuminate\Database\MySqlConnection
7257 /** @var \Illuminate\Database\MariaDbConnection $instance */
7258 return $instance->insert($query, $bindings, $sequence);
7259 }
7260
7261 /**
7262 * Get the connection's last insert ID.
7263 *
7264 * @return string|int|null
7265 * @static
7266 */
7267 public static function getLastInsertId()
7268 {
7269 //Method inherited from \Illuminate\Database\MySqlConnection
7270 /** @var \Illuminate\Database\MariaDbConnection $instance */
7271 return $instance->getLastInsertId();
7272 }
7273
7274 /**
7275 * Set the query grammar to the default implementation.
7276 *
7277 * @return void
7278 * @static
7279 */
7280 public static function useDefaultQueryGrammar()
7281 {
7282 //Method inherited from \Illuminate\Database\Connection
7283 /** @var \Illuminate\Database\MariaDbConnection $instance */
7284 $instance->useDefaultQueryGrammar();
7285 }
7286
7287 /**
7288 * Set the schema grammar to the default implementation.
7289 *
7290 * @return void
7291 * @static
7292 */
7293 public static function useDefaultSchemaGrammar()
7294 {
7295 //Method inherited from \Illuminate\Database\Connection
7296 /** @var \Illuminate\Database\MariaDbConnection $instance */
7297 $instance->useDefaultSchemaGrammar();
7298 }
7299
7300 /**
7301 * Set the query post processor to the default implementation.
7302 *
7303 * @return void
7304 * @static
7305 */
7306 public static function useDefaultPostProcessor()
7307 {
7308 //Method inherited from \Illuminate\Database\Connection
7309 /** @var \Illuminate\Database\MariaDbConnection $instance */
7310 $instance->useDefaultPostProcessor();
7311 }
7312
7313 /**
7314 * Begin a fluent query against a database table.
7315 *
7316 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|\UnitEnum|string $table
7317 * @param string|null $as
7318 * @return \Illuminate\Database\Query\Builder
7319 * @static
7320 */
7321 public static function table($table, $as = null)
7322 {
7323 //Method inherited from \Illuminate\Database\Connection
7324 /** @var \Illuminate\Database\MariaDbConnection $instance */
7325 return $instance->table($table, $as);
7326 }
7327
7328 /**
7329 * Get a new query builder instance.
7330 *
7331 * @return \Illuminate\Database\Query\Builder
7332 * @static
7333 */
7334 public static function query()
7335 {
7336 //Method inherited from \Illuminate\Database\Connection
7337 /** @var \Illuminate\Database\MariaDbConnection $instance */
7338 return $instance->query();
7339 }
7340
7341 /**
7342 * Run a select statement and return a single result.
7343 *
7344 * @param string $query
7345 * @param array $bindings
7346 * @param bool $useReadPdo
7347 * @return mixed
7348 * @static
7349 */
7350 public static function selectOne($query, $bindings = [], $useReadPdo = true)
7351 {
7352 //Method inherited from \Illuminate\Database\Connection
7353 /** @var \Illuminate\Database\MariaDbConnection $instance */
7354 return $instance->selectOne($query, $bindings, $useReadPdo);
7355 }
7356
7357 /**
7358 * Run a select statement and return the first column of the first row.
7359 *
7360 * @param string $query
7361 * @param array $bindings
7362 * @param bool $useReadPdo
7363 * @return mixed
7364 * @throws \Illuminate\Database\MultipleColumnsSelectedException
7365 * @static
7366 */
7367 public static function scalar($query, $bindings = [], $useReadPdo = true)
7368 {
7369 //Method inherited from \Illuminate\Database\Connection
7370 /** @var \Illuminate\Database\MariaDbConnection $instance */
7371 return $instance->scalar($query, $bindings, $useReadPdo);
7372 }
7373
7374 /**
7375 * Run a select statement against the database.
7376 *
7377 * @param string $query
7378 * @param array $bindings
7379 * @return array
7380 * @static
7381 */
7382 public static function selectFromWriteConnection($query, $bindings = [])
7383 {
7384 //Method inherited from \Illuminate\Database\Connection
7385 /** @var \Illuminate\Database\MariaDbConnection $instance */
7386 return $instance->selectFromWriteConnection($query, $bindings);
7387 }
7388
7389 /**
7390 * Run a select statement against the database.
7391 *
7392 * @param string $query
7393 * @param array $bindings
7394 * @param bool $useReadPdo
7395 * @return array
7396 * @static
7397 */
7398 public static function select($query, $bindings = [], $useReadPdo = true)
7399 {
7400 //Method inherited from \Illuminate\Database\Connection
7401 /** @var \Illuminate\Database\MariaDbConnection $instance */
7402 return $instance->select($query, $bindings, $useReadPdo);
7403 }
7404
7405 /**
7406 * Run a select statement against the database and returns all of the result sets.
7407 *
7408 * @param string $query
7409 * @param array $bindings
7410 * @param bool $useReadPdo
7411 * @return array
7412 * @static
7413 */
7414 public static function selectResultSets($query, $bindings = [], $useReadPdo = true)
7415 {
7416 //Method inherited from \Illuminate\Database\Connection
7417 /** @var \Illuminate\Database\MariaDbConnection $instance */
7418 return $instance->selectResultSets($query, $bindings, $useReadPdo);
7419 }
7420
7421 /**
7422 * Run a select statement against the database and returns a generator.
7423 *
7424 * @param string $query
7425 * @param array $bindings
7426 * @param bool $useReadPdo
7427 * @return \Generator<int, \stdClass>
7428 * @static
7429 */
7430 public static function cursor($query, $bindings = [], $useReadPdo = true)
7431 {
7432 //Method inherited from \Illuminate\Database\Connection
7433 /** @var \Illuminate\Database\MariaDbConnection $instance */
7434 return $instance->cursor($query, $bindings, $useReadPdo);
7435 }
7436
7437 /**
7438 * Run an update statement against the database.
7439 *
7440 * @param string $query
7441 * @param array $bindings
7442 * @return int
7443 * @static
7444 */
7445 public static function update($query, $bindings = [])
7446 {
7447 //Method inherited from \Illuminate\Database\Connection
7448 /** @var \Illuminate\Database\MariaDbConnection $instance */
7449 return $instance->update($query, $bindings);
7450 }
7451
7452 /**
7453 * Run a delete statement against the database.
7454 *
7455 * @param string $query
7456 * @param array $bindings
7457 * @return int
7458 * @static
7459 */
7460 public static function delete($query, $bindings = [])
7461 {
7462 //Method inherited from \Illuminate\Database\Connection
7463 /** @var \Illuminate\Database\MariaDbConnection $instance */
7464 return $instance->delete($query, $bindings);
7465 }
7466
7467 /**
7468 * Execute an SQL statement and return the boolean result.
7469 *
7470 * @param string $query
7471 * @param array $bindings
7472 * @return bool
7473 * @static
7474 */
7475 public static function statement($query, $bindings = [])
7476 {
7477 //Method inherited from \Illuminate\Database\Connection
7478 /** @var \Illuminate\Database\MariaDbConnection $instance */
7479 return $instance->statement($query, $bindings);
7480 }
7481
7482 /**
7483 * Run an SQL statement and get the number of rows affected.
7484 *
7485 * @param string $query
7486 * @param array $bindings
7487 * @return int
7488 * @static
7489 */
7490 public static function affectingStatement($query, $bindings = [])
7491 {
7492 //Method inherited from \Illuminate\Database\Connection
7493 /** @var \Illuminate\Database\MariaDbConnection $instance */
7494 return $instance->affectingStatement($query, $bindings);
7495 }
7496
7497 /**
7498 * Run a raw, unprepared query against the PDO connection.
7499 *
7500 * @param string $query
7501 * @return bool
7502 * @static
7503 */
7504 public static function unprepared($query)
7505 {
7506 //Method inherited from \Illuminate\Database\Connection
7507 /** @var \Illuminate\Database\MariaDbConnection $instance */
7508 return $instance->unprepared($query);
7509 }
7510
7511 /**
7512 * Get the number of open connections for the database.
7513 *
7514 * @return int|null
7515 * @static
7516 */
7517 public static function threadCount()
7518 {
7519 //Method inherited from \Illuminate\Database\Connection
7520 /** @var \Illuminate\Database\MariaDbConnection $instance */
7521 return $instance->threadCount();
7522 }
7523
7524 /**
7525 * Execute the given callback in "dry run" mode.
7526 *
7527 * @param (\Closure(\Illuminate\Database\Connection): mixed) $callback
7528 * @return \Illuminate\Database\array{query: string, bindings: array, time: float|null}[]
7529 * @static
7530 */
7531 public static function pretend($callback)
7532 {
7533 //Method inherited from \Illuminate\Database\Connection
7534 /** @var \Illuminate\Database\MariaDbConnection $instance */
7535 return $instance->pretend($callback);
7536 }
7537
7538 /**
7539 * Execute the given callback without "pretending".
7540 *
7541 * @param \Closure $callback
7542 * @return mixed
7543 * @static
7544 */
7545 public static function withoutPretending($callback)
7546 {
7547 //Method inherited from \Illuminate\Database\Connection
7548 /** @var \Illuminate\Database\MariaDbConnection $instance */
7549 return $instance->withoutPretending($callback);
7550 }
7551
7552 /**
7553 * Bind values to their parameters in the given statement.
7554 *
7555 * @param \PDOStatement $statement
7556 * @param array $bindings
7557 * @return void
7558 * @static
7559 */
7560 public static function bindValues($statement, $bindings)
7561 {
7562 //Method inherited from \Illuminate\Database\Connection
7563 /** @var \Illuminate\Database\MariaDbConnection $instance */
7564 $instance->bindValues($statement, $bindings);
7565 }
7566
7567 /**
7568 * Prepare the query bindings for execution.
7569 *
7570 * @param array $bindings
7571 * @return array
7572 * @static
7573 */
7574 public static function prepareBindings($bindings)
7575 {
7576 //Method inherited from \Illuminate\Database\Connection
7577 /** @var \Illuminate\Database\MariaDbConnection $instance */
7578 return $instance->prepareBindings($bindings);
7579 }
7580
7581 /**
7582 * Log a query in the connection's query log.
7583 *
7584 * @param string $query
7585 * @param array $bindings
7586 * @param float|null $time
7587 * @return void
7588 * @static
7589 */
7590 public static function logQuery($query, $bindings, $time = null)
7591 {
7592 //Method inherited from \Illuminate\Database\Connection
7593 /** @var \Illuminate\Database\MariaDbConnection $instance */
7594 $instance->logQuery($query, $bindings, $time);
7595 }
7596
7597 /**
7598 * Register a callback to be invoked when the connection queries for longer than a given amount of time.
7599 *
7600 * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
7601 * @param (callable(\Illuminate\Database\Connection, \Illuminate\Database\Events\QueryExecuted): mixed) $handler
7602 * @return void
7603 * @static
7604 */
7605 public static function whenQueryingForLongerThan($threshold, $handler)
7606 {
7607 //Method inherited from \Illuminate\Database\Connection
7608 /** @var \Illuminate\Database\MariaDbConnection $instance */
7609 $instance->whenQueryingForLongerThan($threshold, $handler);
7610 }
7611
7612 /**
7613 * Allow all the query duration handlers to run again, even if they have already run.
7614 *
7615 * @return void
7616 * @static
7617 */
7618 public static function allowQueryDurationHandlersToRunAgain()
7619 {
7620 //Method inherited from \Illuminate\Database\Connection
7621 /** @var \Illuminate\Database\MariaDbConnection $instance */
7622 $instance->allowQueryDurationHandlersToRunAgain();
7623 }
7624
7625 /**
7626 * Get the duration of all run queries in milliseconds.
7627 *
7628 * @return float
7629 * @static
7630 */
7631 public static function totalQueryDuration()
7632 {
7633 //Method inherited from \Illuminate\Database\Connection
7634 /** @var \Illuminate\Database\MariaDbConnection $instance */
7635 return $instance->totalQueryDuration();
7636 }
7637
7638 /**
7639 * Reset the duration of all run queries.
7640 *
7641 * @return void
7642 * @static
7643 */
7644 public static function resetTotalQueryDuration()
7645 {
7646 //Method inherited from \Illuminate\Database\Connection
7647 /** @var \Illuminate\Database\MariaDbConnection $instance */
7648 $instance->resetTotalQueryDuration();
7649 }
7650
7651 /**
7652 * Reconnect to the database if a PDO connection is missing.
7653 *
7654 * @return void
7655 * @static
7656 */
7657 public static function reconnectIfMissingConnection()
7658 {
7659 //Method inherited from \Illuminate\Database\Connection
7660 /** @var \Illuminate\Database\MariaDbConnection $instance */
7661 $instance->reconnectIfMissingConnection();
7662 }
7663
7664 /**
7665 * Register a hook to be run just before a database transaction is started.
7666 *
7667 * @param \Closure $callback
7668 * @return \Illuminate\Database\MariaDbConnection
7669 * @static
7670 */
7671 public static function beforeStartingTransaction($callback)
7672 {
7673 //Method inherited from \Illuminate\Database\Connection
7674 /** @var \Illuminate\Database\MariaDbConnection $instance */
7675 return $instance->beforeStartingTransaction($callback);
7676 }
7677
7678 /**
7679 * Register a hook to be run just before a database query is executed.
7680 *
7681 * @param \Closure $callback
7682 * @return \Illuminate\Database\MariaDbConnection
7683 * @static
7684 */
7685 public static function beforeExecuting($callback)
7686 {
7687 //Method inherited from \Illuminate\Database\Connection
7688 /** @var \Illuminate\Database\MariaDbConnection $instance */
7689 return $instance->beforeExecuting($callback);
7690 }
7691
7692 /**
7693 * Register a database query listener with the connection.
7694 *
7695 * @param \Closure $callback
7696 * @return void
7697 * @static
7698 */
7699 public static function listen($callback)
7700 {
7701 //Method inherited from \Illuminate\Database\Connection
7702 /** @var \Illuminate\Database\MariaDbConnection $instance */
7703 $instance->listen($callback);
7704 }
7705
7706 /**
7707 * Get a new raw query expression.
7708 *
7709 * @param mixed $value
7710 * @return \Illuminate\Contracts\Database\Query\Expression
7711 * @static
7712 */
7713 public static function raw($value)
7714 {
7715 //Method inherited from \Illuminate\Database\Connection
7716 /** @var \Illuminate\Database\MariaDbConnection $instance */
7717 return $instance->raw($value);
7718 }
7719
7720 /**
7721 * Escape a value for safe SQL embedding.
7722 *
7723 * @param string|float|int|bool|null $value
7724 * @param bool $binary
7725 * @return string
7726 * @throws \RuntimeException
7727 * @static
7728 */
7729 public static function escape($value, $binary = false)
7730 {
7731 //Method inherited from \Illuminate\Database\Connection
7732 /** @var \Illuminate\Database\MariaDbConnection $instance */
7733 return $instance->escape($value, $binary);
7734 }
7735
7736 /**
7737 * Determine if the database connection has modified any database records.
7738 *
7739 * @return bool
7740 * @static
7741 */
7742 public static function hasModifiedRecords()
7743 {
7744 //Method inherited from \Illuminate\Database\Connection
7745 /** @var \Illuminate\Database\MariaDbConnection $instance */
7746 return $instance->hasModifiedRecords();
7747 }
7748
7749 /**
7750 * Indicate if any records have been modified.
7751 *
7752 * @param bool $value
7753 * @return void
7754 * @static
7755 */
7756 public static function recordsHaveBeenModified($value = true)
7757 {
7758 //Method inherited from \Illuminate\Database\Connection
7759 /** @var \Illuminate\Database\MariaDbConnection $instance */
7760 $instance->recordsHaveBeenModified($value);
7761 }
7762
7763 /**
7764 * Set the record modification state.
7765 *
7766 * @param bool $value
7767 * @return \Illuminate\Database\MariaDbConnection
7768 * @static
7769 */
7770 public static function setRecordModificationState($value)
7771 {
7772 //Method inherited from \Illuminate\Database\Connection
7773 /** @var \Illuminate\Database\MariaDbConnection $instance */
7774 return $instance->setRecordModificationState($value);
7775 }
7776
7777 /**
7778 * Reset the record modification state.
7779 *
7780 * @return void
7781 * @static
7782 */
7783 public static function forgetRecordModificationState()
7784 {
7785 //Method inherited from \Illuminate\Database\Connection
7786 /** @var \Illuminate\Database\MariaDbConnection $instance */
7787 $instance->forgetRecordModificationState();
7788 }
7789
7790 /**
7791 * Indicate that the connection should use the write PDO connection for reads.
7792 *
7793 * @param bool $value
7794 * @return \Illuminate\Database\MariaDbConnection
7795 * @static
7796 */
7797 public static function useWriteConnectionWhenReading($value = true)
7798 {
7799 //Method inherited from \Illuminate\Database\Connection
7800 /** @var \Illuminate\Database\MariaDbConnection $instance */
7801 return $instance->useWriteConnectionWhenReading($value);
7802 }
7803
7804 /**
7805 * Get the current PDO connection.
7806 *
7807 * @return \PDO
7808 * @static
7809 */
7810 public static function getPdo()
7811 {
7812 //Method inherited from \Illuminate\Database\Connection
7813 /** @var \Illuminate\Database\MariaDbConnection $instance */
7814 return $instance->getPdo();
7815 }
7816
7817 /**
7818 * Get the current PDO connection parameter without executing any reconnect logic.
7819 *
7820 * @return \PDO|\Closure|null
7821 * @static
7822 */
7823 public static function getRawPdo()
7824 {
7825 //Method inherited from \Illuminate\Database\Connection
7826 /** @var \Illuminate\Database\MariaDbConnection $instance */
7827 return $instance->getRawPdo();
7828 }
7829
7830 /**
7831 * Get the current PDO connection used for reading.
7832 *
7833 * @return \PDO
7834 * @static
7835 */
7836 public static function getReadPdo()
7837 {
7838 //Method inherited from \Illuminate\Database\Connection
7839 /** @var \Illuminate\Database\MariaDbConnection $instance */
7840 return $instance->getReadPdo();
7841 }
7842
7843 /**
7844 * Get the current read PDO connection parameter without executing any reconnect logic.
7845 *
7846 * @return \PDO|\Closure|null
7847 * @static
7848 */
7849 public static function getRawReadPdo()
7850 {
7851 //Method inherited from \Illuminate\Database\Connection
7852 /** @var \Illuminate\Database\MariaDbConnection $instance */
7853 return $instance->getRawReadPdo();
7854 }
7855
7856 /**
7857 * Set the PDO connection.
7858 *
7859 * @param \PDO|\Closure|null $pdo
7860 * @return \Illuminate\Database\MariaDbConnection
7861 * @static
7862 */
7863 public static function setPdo($pdo)
7864 {
7865 //Method inherited from \Illuminate\Database\Connection
7866 /** @var \Illuminate\Database\MariaDbConnection $instance */
7867 return $instance->setPdo($pdo);
7868 }
7869
7870 /**
7871 * Set the PDO connection used for reading.
7872 *
7873 * @param \PDO|\Closure|null $pdo
7874 * @return \Illuminate\Database\MariaDbConnection
7875 * @static
7876 */
7877 public static function setReadPdo($pdo)
7878 {
7879 //Method inherited from \Illuminate\Database\Connection
7880 /** @var \Illuminate\Database\MariaDbConnection $instance */
7881 return $instance->setReadPdo($pdo);
7882 }
7883
7884 /**
7885 * Get the database connection name.
7886 *
7887 * @return string|null
7888 * @static
7889 */
7890 public static function getName()
7891 {
7892 //Method inherited from \Illuminate\Database\Connection
7893 /** @var \Illuminate\Database\MariaDbConnection $instance */
7894 return $instance->getName();
7895 }
7896
7897 /**
7898 * Get the database connection full name.
7899 *
7900 * @return string|null
7901 * @static
7902 */
7903 public static function getNameWithReadWriteType()
7904 {
7905 //Method inherited from \Illuminate\Database\Connection
7906 /** @var \Illuminate\Database\MariaDbConnection $instance */
7907 return $instance->getNameWithReadWriteType();
7908 }
7909
7910 /**
7911 * Get an option from the configuration options.
7912 *
7913 * @param string|null $option
7914 * @return mixed
7915 * @static
7916 */
7917 public static function getConfig($option = null)
7918 {
7919 //Method inherited from \Illuminate\Database\Connection
7920 /** @var \Illuminate\Database\MariaDbConnection $instance */
7921 return $instance->getConfig($option);
7922 }
7923
7924 /**
7925 * Get the PDO driver name.
7926 *
7927 * @return string
7928 * @static
7929 */
7930 public static function getDriverName()
7931 {
7932 //Method inherited from \Illuminate\Database\Connection
7933 /** @var \Illuminate\Database\MariaDbConnection $instance */
7934 return $instance->getDriverName();
7935 }
7936
7937 /**
7938 * Get the query grammar used by the connection.
7939 *
7940 * @return \Illuminate\Database\Query\Grammars\Grammar
7941 * @static
7942 */
7943 public static function getQueryGrammar()
7944 {
7945 //Method inherited from \Illuminate\Database\Connection
7946 /** @var \Illuminate\Database\MariaDbConnection $instance */
7947 return $instance->getQueryGrammar();
7948 }
7949
7950 /**
7951 * Set the query grammar used by the connection.
7952 *
7953 * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
7954 * @return \Illuminate\Database\MariaDbConnection
7955 * @static
7956 */
7957 public static function setQueryGrammar($grammar)
7958 {
7959 //Method inherited from \Illuminate\Database\Connection
7960 /** @var \Illuminate\Database\MariaDbConnection $instance */
7961 return $instance->setQueryGrammar($grammar);
7962 }
7963
7964 /**
7965 * Get the schema grammar used by the connection.
7966 *
7967 * @return \Illuminate\Database\Schema\Grammars\Grammar
7968 * @static
7969 */
7970 public static function getSchemaGrammar()
7971 {
7972 //Method inherited from \Illuminate\Database\Connection
7973 /** @var \Illuminate\Database\MariaDbConnection $instance */
7974 return $instance->getSchemaGrammar();
7975 }
7976
7977 /**
7978 * Set the schema grammar used by the connection.
7979 *
7980 * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
7981 * @return \Illuminate\Database\MariaDbConnection
7982 * @static
7983 */
7984 public static function setSchemaGrammar($grammar)
7985 {
7986 //Method inherited from \Illuminate\Database\Connection
7987 /** @var \Illuminate\Database\MariaDbConnection $instance */
7988 return $instance->setSchemaGrammar($grammar);
7989 }
7990
7991 /**
7992 * Get the query post processor used by the connection.
7993 *
7994 * @return \Illuminate\Database\Query\Processors\Processor
7995 * @static
7996 */
7997 public static function getPostProcessor()
7998 {
7999 //Method inherited from \Illuminate\Database\Connection
8000 /** @var \Illuminate\Database\MariaDbConnection $instance */
8001 return $instance->getPostProcessor();
8002 }
8003
8004 /**
8005 * Set the query post processor used by the connection.
8006 *
8007 * @param \Illuminate\Database\Query\Processors\Processor $processor
8008 * @return \Illuminate\Database\MariaDbConnection
8009 * @static
8010 */
8011 public static function setPostProcessor($processor)
8012 {
8013 //Method inherited from \Illuminate\Database\Connection
8014 /** @var \Illuminate\Database\MariaDbConnection $instance */
8015 return $instance->setPostProcessor($processor);
8016 }
8017
8018 /**
8019 * Get the event dispatcher used by the connection.
8020 *
8021 * @return \Illuminate\Contracts\Events\Dispatcher
8022 * @static
8023 */
8024 public static function getEventDispatcher()
8025 {
8026 //Method inherited from \Illuminate\Database\Connection
8027 /** @var \Illuminate\Database\MariaDbConnection $instance */
8028 return $instance->getEventDispatcher();
8029 }
8030
8031 /**
8032 * Set the event dispatcher instance on the connection.
8033 *
8034 * @param \Illuminate\Contracts\Events\Dispatcher $events
8035 * @return \Illuminate\Database\MariaDbConnection
8036 * @static
8037 */
8038 public static function setEventDispatcher($events)
8039 {
8040 //Method inherited from \Illuminate\Database\Connection
8041 /** @var \Illuminate\Database\MariaDbConnection $instance */
8042 return $instance->setEventDispatcher($events);
8043 }
8044
8045 /**
8046 * Unset the event dispatcher for this connection.
8047 *
8048 * @return void
8049 * @static
8050 */
8051 public static function unsetEventDispatcher()
8052 {
8053 //Method inherited from \Illuminate\Database\Connection
8054 /** @var \Illuminate\Database\MariaDbConnection $instance */
8055 $instance->unsetEventDispatcher();
8056 }
8057
8058 /**
8059 * Set the transaction manager instance on the connection.
8060 *
8061 * @param \Illuminate\Database\DatabaseTransactionsManager $manager
8062 * @return \Illuminate\Database\MariaDbConnection
8063 * @static
8064 */
8065 public static function setTransactionManager($manager)
8066 {
8067 //Method inherited from \Illuminate\Database\Connection
8068 /** @var \Illuminate\Database\MariaDbConnection $instance */
8069 return $instance->setTransactionManager($manager);
8070 }
8071
8072 /**
8073 * Unset the transaction manager for this connection.
8074 *
8075 * @return void
8076 * @static
8077 */
8078 public static function unsetTransactionManager()
8079 {
8080 //Method inherited from \Illuminate\Database\Connection
8081 /** @var \Illuminate\Database\MariaDbConnection $instance */
8082 $instance->unsetTransactionManager();
8083 }
8084
8085 /**
8086 * Determine if the connection is in a "dry run".
8087 *
8088 * @return bool
8089 * @static
8090 */
8091 public static function pretending()
8092 {
8093 //Method inherited from \Illuminate\Database\Connection
8094 /** @var \Illuminate\Database\MariaDbConnection $instance */
8095 return $instance->pretending();
8096 }
8097
8098 /**
8099 * Get the connection query log.
8100 *
8101 * @return \Illuminate\Database\array{query: string, bindings: array, time: float|null}[]
8102 * @static
8103 */
8104 public static function getQueryLog()
8105 {
8106 //Method inherited from \Illuminate\Database\Connection
8107 /** @var \Illuminate\Database\MariaDbConnection $instance */
8108 return $instance->getQueryLog();
8109 }
8110
8111 /**
8112 * Get the connection query log with embedded bindings.
8113 *
8114 * @return array
8115 * @static
8116 */
8117 public static function getRawQueryLog()
8118 {
8119 //Method inherited from \Illuminate\Database\Connection
8120 /** @var \Illuminate\Database\MariaDbConnection $instance */
8121 return $instance->getRawQueryLog();
8122 }
8123
8124 /**
8125 * Clear the query log.
8126 *
8127 * @return void
8128 * @static
8129 */
8130 public static function flushQueryLog()
8131 {
8132 //Method inherited from \Illuminate\Database\Connection
8133 /** @var \Illuminate\Database\MariaDbConnection $instance */
8134 $instance->flushQueryLog();
8135 }
8136
8137 /**
8138 * Enable the query log on the connection.
8139 *
8140 * @return void
8141 * @static
8142 */
8143 public static function enableQueryLog()
8144 {
8145 //Method inherited from \Illuminate\Database\Connection
8146 /** @var \Illuminate\Database\MariaDbConnection $instance */
8147 $instance->enableQueryLog();
8148 }
8149
8150 /**
8151 * Disable the query log on the connection.
8152 *
8153 * @return void
8154 * @static
8155 */
8156 public static function disableQueryLog()
8157 {
8158 //Method inherited from \Illuminate\Database\Connection
8159 /** @var \Illuminate\Database\MariaDbConnection $instance */
8160 $instance->disableQueryLog();
8161 }
8162
8163 /**
8164 * Determine whether we're logging queries.
8165 *
8166 * @return bool
8167 * @static
8168 */
8169 public static function logging()
8170 {
8171 //Method inherited from \Illuminate\Database\Connection
8172 /** @var \Illuminate\Database\MariaDbConnection $instance */
8173 return $instance->logging();
8174 }
8175
8176 /**
8177 * Get the name of the connected database.
8178 *
8179 * @return string
8180 * @static
8181 */
8182 public static function getDatabaseName()
8183 {
8184 //Method inherited from \Illuminate\Database\Connection
8185 /** @var \Illuminate\Database\MariaDbConnection $instance */
8186 return $instance->getDatabaseName();
8187 }
8188
8189 /**
8190 * Set the name of the connected database.
8191 *
8192 * @param string $database
8193 * @return \Illuminate\Database\MariaDbConnection
8194 * @static
8195 */
8196 public static function setDatabaseName($database)
8197 {
8198 //Method inherited from \Illuminate\Database\Connection
8199 /** @var \Illuminate\Database\MariaDbConnection $instance */
8200 return $instance->setDatabaseName($database);
8201 }
8202
8203 /**
8204 * Set the read / write type of the connection.
8205 *
8206 * @param string|null $readWriteType
8207 * @return \Illuminate\Database\MariaDbConnection
8208 * @static
8209 */
8210 public static function setReadWriteType($readWriteType)
8211 {
8212 //Method inherited from \Illuminate\Database\Connection
8213 /** @var \Illuminate\Database\MariaDbConnection $instance */
8214 return $instance->setReadWriteType($readWriteType);
8215 }
8216
8217 /**
8218 * Get the table prefix for the connection.
8219 *
8220 * @return string
8221 * @static
8222 */
8223 public static function getTablePrefix()
8224 {
8225 //Method inherited from \Illuminate\Database\Connection
8226 /** @var \Illuminate\Database\MariaDbConnection $instance */
8227 return $instance->getTablePrefix();
8228 }
8229
8230 /**
8231 * Set the table prefix in use by the connection.
8232 *
8233 * @param string $prefix
8234 * @return \Illuminate\Database\MariaDbConnection
8235 * @static
8236 */
8237 public static function setTablePrefix($prefix)
8238 {
8239 //Method inherited from \Illuminate\Database\Connection
8240 /** @var \Illuminate\Database\MariaDbConnection $instance */
8241 return $instance->setTablePrefix($prefix);
8242 }
8243
8244 /**
8245 * Execute the given callback without table prefix.
8246 *
8247 * @param \Closure $callback
8248 * @return mixed
8249 * @static
8250 */
8251 public static function withoutTablePrefix($callback)
8252 {
8253 //Method inherited from \Illuminate\Database\Connection
8254 /** @var \Illuminate\Database\MariaDbConnection $instance */
8255 return $instance->withoutTablePrefix($callback);
8256 }
8257
8258 /**
8259 * Register a connection resolver.
8260 *
8261 * @param string $driver
8262 * @param \Closure $callback
8263 * @return void
8264 * @static
8265 */
8266 public static function resolverFor($driver, $callback)
8267 {
8268 //Method inherited from \Illuminate\Database\Connection
8269 \Illuminate\Database\MariaDbConnection::resolverFor($driver, $callback);
8270 }
8271
8272 /**
8273 * Get the connection resolver for the given driver.
8274 *
8275 * @param string $driver
8276 * @return \Closure|null
8277 * @static
8278 */
8279 public static function getResolver($driver)
8280 {
8281 //Method inherited from \Illuminate\Database\Connection
8282 return \Illuminate\Database\MariaDbConnection::getResolver($driver);
8283 }
8284
8285 /**
8286 * @template TReturn of mixed
8287 *
8288 * Execute a Closure within a transaction.
8289 * @param (\Closure(static): TReturn) $callback
8290 * @param int $attempts
8291 * @return TReturn
8292 * @throws \Throwable
8293 * @static
8294 */
8295 public static function transaction($callback, $attempts = 1)
8296 {
8297 //Method inherited from \Illuminate\Database\Connection
8298 /** @var \Illuminate\Database\MariaDbConnection $instance */
8299 return $instance->transaction($callback, $attempts);
8300 }
8301
8302 /**
8303 * Start a new database transaction.
8304 *
8305 * @return void
8306 * @throws \Throwable
8307 * @static
8308 */
8309 public static function beginTransaction()
8310 {
8311 //Method inherited from \Illuminate\Database\Connection
8312 /** @var \Illuminate\Database\MariaDbConnection $instance */
8313 $instance->beginTransaction();
8314 }
8315
8316 /**
8317 * Commit the active database transaction.
8318 *
8319 * @return void
8320 * @throws \Throwable
8321 * @static
8322 */
8323 public static function commit()
8324 {
8325 //Method inherited from \Illuminate\Database\Connection
8326 /** @var \Illuminate\Database\MariaDbConnection $instance */
8327 $instance->commit();
8328 }
8329
8330 /**
8331 * Rollback the active database transaction.
8332 *
8333 * @param int|null $toLevel
8334 * @return void
8335 * @throws \Throwable
8336 * @static
8337 */
8338 public static function rollBack($toLevel = null)
8339 {
8340 //Method inherited from \Illuminate\Database\Connection
8341 /** @var \Illuminate\Database\MariaDbConnection $instance */
8342 $instance->rollBack($toLevel);
8343 }
8344
8345 /**
8346 * Get the number of active transactions.
8347 *
8348 * @return int
8349 * @static
8350 */
8351 public static function transactionLevel()
8352 {
8353 //Method inherited from \Illuminate\Database\Connection
8354 /** @var \Illuminate\Database\MariaDbConnection $instance */
8355 return $instance->transactionLevel();
8356 }
8357
8358 /**
8359 * Execute the callback after a transaction commits.
8360 *
8361 * @param callable $callback
8362 * @return void
8363 * @throws \RuntimeException
8364 * @static
8365 */
8366 public static function afterCommit($callback)
8367 {
8368 //Method inherited from \Illuminate\Database\Connection
8369 /** @var \Illuminate\Database\MariaDbConnection $instance */
8370 $instance->afterCommit($callback);
8371 }
8372
8373 /**
8374 * Execute the callback after a transaction rolls back.
8375 *
8376 * @param callable $callback
8377 * @return void
8378 * @throws \RuntimeException
8379 * @static
8380 */
8381 public static function afterRollBack($callback)
8382 {
8383 //Method inherited from \Illuminate\Database\Connection
8384 /** @var \Illuminate\Database\MariaDbConnection $instance */
8385 $instance->afterRollBack($callback);
8386 }
8387
8388 }
8389 /**
8390 * @see \Illuminate\Events\Dispatcher
8391 * @see \Illuminate\Support\Testing\Fakes\EventFake
8392 */
8393 class Event {
8394 /**
8395 * Register an event listener with the dispatcher.
8396 *
8397 * @param \Illuminate\Events\Queued\Closure|callable|array|class-string|string $events
8398 * @param \Illuminate\Events\Queued\Closure|callable|array|class-string|null $listener
8399 * @return void
8400 * @static
8401 */
8402 public static function listen($events, $listener = null)
8403 {
8404 /** @var \Illuminate\Events\Dispatcher $instance */
8405 $instance->listen($events, $listener);
8406 }
8407
8408 /**
8409 * Determine if a given event has listeners.
8410 *
8411 * @param string $eventName
8412 * @return bool
8413 * @static
8414 */
8415 public static function hasListeners($eventName)
8416 {
8417 /** @var \Illuminate\Events\Dispatcher $instance */
8418 return $instance->hasListeners($eventName);
8419 }
8420
8421 /**
8422 * Determine if the given event has any wildcard listeners.
8423 *
8424 * @param string $eventName
8425 * @return bool
8426 * @static
8427 */
8428 public static function hasWildcardListeners($eventName)
8429 {
8430 /** @var \Illuminate\Events\Dispatcher $instance */
8431 return $instance->hasWildcardListeners($eventName);
8432 }
8433
8434 /**
8435 * Register an event and payload to be fired later.
8436 *
8437 * @param string $event
8438 * @param object|array $payload
8439 * @return void
8440 * @static
8441 */
8442 public static function push($event, $payload = [])
8443 {
8444 /** @var \Illuminate\Events\Dispatcher $instance */
8445 $instance->push($event, $payload);
8446 }
8447
8448 /**
8449 * Flush a set of pushed events.
8450 *
8451 * @param string $event
8452 * @return void
8453 * @static
8454 */
8455 public static function flush($event)
8456 {
8457 /** @var \Illuminate\Events\Dispatcher $instance */
8458 $instance->flush($event);
8459 }
8460
8461 /**
8462 * Register an event subscriber with the dispatcher.
8463 *
8464 * @param object|string $subscriber
8465 * @return void
8466 * @static
8467 */
8468 public static function subscribe($subscriber)
8469 {
8470 /** @var \Illuminate\Events\Dispatcher $instance */
8471 $instance->subscribe($subscriber);
8472 }
8473
8474 /**
8475 * Fire an event until the first non-null response is returned.
8476 *
8477 * @param string|object $event
8478 * @param mixed $payload
8479 * @return mixed
8480 * @static
8481 */
8482 public static function until($event, $payload = [])
8483 {
8484 /** @var \Illuminate\Events\Dispatcher $instance */
8485 return $instance->until($event, $payload);
8486 }
8487
8488 /**
8489 * Fire an event and call the listeners.
8490 *
8491 * @param string|object $event
8492 * @param mixed $payload
8493 * @param bool $halt
8494 * @return array|null
8495 * @static
8496 */
8497 public static function dispatch($event, $payload = [], $halt = false)
8498 {
8499 /** @var \Illuminate\Events\Dispatcher $instance */
8500 return $instance->dispatch($event, $payload, $halt);
8501 }
8502
8503 /**
8504 * Get all of the listeners for a given event name.
8505 *
8506 * @param string $eventName
8507 * @return array
8508 * @static
8509 */
8510 public static function getListeners($eventName)
8511 {
8512 /** @var \Illuminate\Events\Dispatcher $instance */
8513 return $instance->getListeners($eventName);
8514 }
8515
8516 /**
8517 * Register an event listener with the dispatcher.
8518 *
8519 * @param \Closure|string|array $listener
8520 * @param bool $wildcard
8521 * @return \Closure
8522 * @static
8523 */
8524 public static function makeListener($listener, $wildcard = false)
8525 {
8526 /** @var \Illuminate\Events\Dispatcher $instance */
8527 return $instance->makeListener($listener, $wildcard);
8528 }
8529
8530 /**
8531 * Create a class based listener using the IoC container.
8532 *
8533 * @param string $listener
8534 * @param bool $wildcard
8535 * @return \Closure
8536 * @static
8537 */
8538 public static function createClassListener($listener, $wildcard = false)
8539 {
8540 /** @var \Illuminate\Events\Dispatcher $instance */
8541 return $instance->createClassListener($listener, $wildcard);
8542 }
8543
8544 /**
8545 * Remove a set of listeners from the dispatcher.
8546 *
8547 * @param string $event
8548 * @return void
8549 * @static
8550 */
8551 public static function forget($event)
8552 {
8553 /** @var \Illuminate\Events\Dispatcher $instance */
8554 $instance->forget($event);
8555 }
8556
8557 /**
8558 * Forget all of the pushed listeners.
8559 *
8560 * @return void
8561 * @static
8562 */
8563 public static function forgetPushed()
8564 {
8565 /** @var \Illuminate\Events\Dispatcher $instance */
8566 $instance->forgetPushed();
8567 }
8568
8569 /**
8570 * Set the queue resolver implementation.
8571 *
8572 * @param callable $resolver
8573 * @return \Illuminate\Events\Dispatcher
8574 * @static
8575 */
8576 public static function setQueueResolver($resolver)
8577 {
8578 /** @var \Illuminate\Events\Dispatcher $instance */
8579 return $instance->setQueueResolver($resolver);
8580 }
8581
8582 /**
8583 * Set the database transaction manager resolver implementation.
8584 *
8585 * @param callable $resolver
8586 * @return \Illuminate\Events\Dispatcher
8587 * @static
8588 */
8589 public static function setTransactionManagerResolver($resolver)
8590 {
8591 /** @var \Illuminate\Events\Dispatcher $instance */
8592 return $instance->setTransactionManagerResolver($resolver);
8593 }
8594
8595 /**
8596 * Execute the given callback while deferring events, then dispatch all deferred events.
8597 *
8598 * @param callable $callback
8599 * @param array|null $events
8600 * @return mixed
8601 * @static
8602 */
8603 public static function defer($callback, $events = null)
8604 {
8605 /** @var \Illuminate\Events\Dispatcher $instance */
8606 return $instance->defer($callback, $events);
8607 }
8608
8609 /**
8610 * Gets the raw, unprepared listeners.
8611 *
8612 * @return array
8613 * @static
8614 */
8615 public static function getRawListeners()
8616 {
8617 /** @var \Illuminate\Events\Dispatcher $instance */
8618 return $instance->getRawListeners();
8619 }
8620
8621 /**
8622 * Register a custom macro.
8623 *
8624 * @param string $name
8625 * @param object|callable $macro
8626 * @param-closure-this static $macro
8627 * @return void
8628 * @static
8629 */
8630 public static function macro($name, $macro)
8631 {
8632 \Illuminate\Events\Dispatcher::macro($name, $macro);
8633 }
8634
8635 /**
8636 * Mix another object into the class.
8637 *
8638 * @param object $mixin
8639 * @param bool $replace
8640 * @return void
8641 * @throws \ReflectionException
8642 * @static
8643 */
8644 public static function mixin($mixin, $replace = true)
8645 {
8646 \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
8647 }
8648
8649 /**
8650 * Checks if macro is registered.
8651 *
8652 * @param string $name
8653 * @return bool
8654 * @static
8655 */
8656 public static function hasMacro($name)
8657 {
8658 return \Illuminate\Events\Dispatcher::hasMacro($name);
8659 }
8660
8661 /**
8662 * Flush the existing macros.
8663 *
8664 * @return void
8665 * @static
8666 */
8667 public static function flushMacros()
8668 {
8669 \Illuminate\Events\Dispatcher::flushMacros();
8670 }
8671
8672 /**
8673 * Specify the events that should be dispatched instead of faked.
8674 *
8675 * @param array|string $eventsToDispatch
8676 * @return \Illuminate\Support\Testing\Fakes\EventFake
8677 * @static
8678 */
8679 public static function except($eventsToDispatch)
8680 {
8681 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8682 return $instance->except($eventsToDispatch);
8683 }
8684
8685 /**
8686 * Assert if an event has a listener attached to it.
8687 *
8688 * @param string $expectedEvent
8689 * @param string|array $expectedListener
8690 * @return void
8691 * @static
8692 */
8693 public static function assertListening($expectedEvent, $expectedListener)
8694 {
8695 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8696 $instance->assertListening($expectedEvent, $expectedListener);
8697 }
8698
8699 /**
8700 * Assert if an event was dispatched based on a truth-test callback.
8701 *
8702 * @param string|\Closure $event
8703 * @param callable|int|null $callback
8704 * @return void
8705 * @static
8706 */
8707 public static function assertDispatched($event, $callback = null)
8708 {
8709 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8710 $instance->assertDispatched($event, $callback);
8711 }
8712
8713 /**
8714 * Assert if an event was dispatched exactly once.
8715 *
8716 * @param string $event
8717 * @param int $times
8718 * @return void
8719 * @static
8720 */
8721 public static function assertDispatchedOnce($event)
8722 {
8723 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8724 $instance->assertDispatchedOnce($event);
8725 }
8726
8727 /**
8728 * Assert if an event was dispatched a number of times.
8729 *
8730 * @param string $event
8731 * @param int $times
8732 * @return void
8733 * @static
8734 */
8735 public static function assertDispatchedTimes($event, $times = 1)
8736 {
8737 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8738 $instance->assertDispatchedTimes($event, $times);
8739 }
8740
8741 /**
8742 * Determine if an event was dispatched based on a truth-test callback.
8743 *
8744 * @param string|\Closure $event
8745 * @param callable|null $callback
8746 * @return void
8747 * @static
8748 */
8749 public static function assertNotDispatched($event, $callback = null)
8750 {
8751 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8752 $instance->assertNotDispatched($event, $callback);
8753 }
8754
8755 /**
8756 * Assert that no events were dispatched.
8757 *
8758 * @return void
8759 * @static
8760 */
8761 public static function assertNothingDispatched()
8762 {
8763 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8764 $instance->assertNothingDispatched();
8765 }
8766
8767 /**
8768 * Get all of the events matching a truth-test callback.
8769 *
8770 * @param string $event
8771 * @param callable|null $callback
8772 * @return \Illuminate\Support\Collection
8773 * @static
8774 */
8775 public static function dispatched($event, $callback = null)
8776 {
8777 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8778 return $instance->dispatched($event, $callback);
8779 }
8780
8781 /**
8782 * Determine if the given event has been dispatched.
8783 *
8784 * @param string $event
8785 * @return bool
8786 * @static
8787 */
8788 public static function hasDispatched($event)
8789 {
8790 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8791 return $instance->hasDispatched($event);
8792 }
8793
8794 /**
8795 * Get the events that have been dispatched.
8796 *
8797 * @return array
8798 * @static
8799 */
8800 public static function dispatchedEvents()
8801 {
8802 /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
8803 return $instance->dispatchedEvents();
8804 }
8805
8806 }
8807 /**
8808 * @see \Illuminate\Filesystem\Filesystem
8809 */
8810 class File {
8811 /**
8812 * Determine if a file or directory exists.
8813 *
8814 * @param string $path
8815 * @return bool
8816 * @static
8817 */
8818 public static function exists($path)
8819 {
8820 /** @var \Illuminate\Filesystem\Filesystem $instance */
8821 return $instance->exists($path);
8822 }
8823
8824 /**
8825 * Determine if a file or directory is missing.
8826 *
8827 * @param string $path
8828 * @return bool
8829 * @static
8830 */
8831 public static function missing($path)
8832 {
8833 /** @var \Illuminate\Filesystem\Filesystem $instance */
8834 return $instance->missing($path);
8835 }
8836
8837 /**
8838 * Get the contents of a file.
8839 *
8840 * @param string $path
8841 * @param bool $lock
8842 * @return string
8843 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
8844 * @static
8845 */
8846 public static function get($path, $lock = false)
8847 {
8848 /** @var \Illuminate\Filesystem\Filesystem $instance */
8849 return $instance->get($path, $lock);
8850 }
8851
8852 /**
8853 * Get the contents of a file as decoded JSON.
8854 *
8855 * @param string $path
8856 * @param int $flags
8857 * @param bool $lock
8858 * @return array
8859 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
8860 * @static
8861 */
8862 public static function json($path, $flags = 0, $lock = false)
8863 {
8864 /** @var \Illuminate\Filesystem\Filesystem $instance */
8865 return $instance->json($path, $flags, $lock);
8866 }
8867
8868 /**
8869 * Get contents of a file with shared access.
8870 *
8871 * @param string $path
8872 * @return string
8873 * @static
8874 */
8875 public static function sharedGet($path)
8876 {
8877 /** @var \Illuminate\Filesystem\Filesystem $instance */
8878 return $instance->sharedGet($path);
8879 }
8880
8881 /**
8882 * Get the returned value of a file.
8883 *
8884 * @param string $path
8885 * @param array $data
8886 * @return mixed
8887 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
8888 * @static
8889 */
8890 public static function getRequire($path, $data = [])
8891 {
8892 /** @var \Illuminate\Filesystem\Filesystem $instance */
8893 return $instance->getRequire($path, $data);
8894 }
8895
8896 /**
8897 * Require the given file once.
8898 *
8899 * @param string $path
8900 * @param array $data
8901 * @return mixed
8902 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
8903 * @static
8904 */
8905 public static function requireOnce($path, $data = [])
8906 {
8907 /** @var \Illuminate\Filesystem\Filesystem $instance */
8908 return $instance->requireOnce($path, $data);
8909 }
8910
8911 /**
8912 * Get the contents of a file one line at a time.
8913 *
8914 * @param string $path
8915 * @return \Illuminate\Support\LazyCollection
8916 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
8917 * @static
8918 */
8919 public static function lines($path)
8920 {
8921 /** @var \Illuminate\Filesystem\Filesystem $instance */
8922 return $instance->lines($path);
8923 }
8924
8925 /**
8926 * Get the hash of the file at the given path.
8927 *
8928 * @param string $path
8929 * @param string $algorithm
8930 * @return string|false
8931 * @static
8932 */
8933 public static function hash($path, $algorithm = 'md5')
8934 {
8935 /** @var \Illuminate\Filesystem\Filesystem $instance */
8936 return $instance->hash($path, $algorithm);
8937 }
8938
8939 /**
8940 * Write the contents of a file.
8941 *
8942 * @param string $path
8943 * @param string $contents
8944 * @param bool $lock
8945 * @return int|bool
8946 * @static
8947 */
8948 public static function put($path, $contents, $lock = false)
8949 {
8950 /** @var \Illuminate\Filesystem\Filesystem $instance */
8951 return $instance->put($path, $contents, $lock);
8952 }
8953
8954 /**
8955 * Write the contents of a file, replacing it atomically if it already exists.
8956 *
8957 * @param string $path
8958 * @param string $content
8959 * @param int|null $mode
8960 * @return void
8961 * @static
8962 */
8963 public static function replace($path, $content, $mode = null)
8964 {
8965 /** @var \Illuminate\Filesystem\Filesystem $instance */
8966 $instance->replace($path, $content, $mode);
8967 }
8968
8969 /**
8970 * Replace a given string within a given file.
8971 *
8972 * @param array|string $search
8973 * @param array|string $replace
8974 * @param string $path
8975 * @return void
8976 * @static
8977 */
8978 public static function replaceInFile($search, $replace, $path)
8979 {
8980 /** @var \Illuminate\Filesystem\Filesystem $instance */
8981 $instance->replaceInFile($search, $replace, $path);
8982 }
8983
8984 /**
8985 * Prepend to a file.
8986 *
8987 * @param string $path
8988 * @param string $data
8989 * @return int
8990 * @static
8991 */
8992 public static function prepend($path, $data)
8993 {
8994 /** @var \Illuminate\Filesystem\Filesystem $instance */
8995 return $instance->prepend($path, $data);
8996 }
8997
8998 /**
8999 * Append to a file.
9000 *
9001 * @param string $path
9002 * @param string $data
9003 * @param bool $lock
9004 * @return int
9005 * @static
9006 */
9007 public static function append($path, $data, $lock = false)
9008 {
9009 /** @var \Illuminate\Filesystem\Filesystem $instance */
9010 return $instance->append($path, $data, $lock);
9011 }
9012
9013 /**
9014 * Get or set UNIX mode of a file or directory.
9015 *
9016 * @param string $path
9017 * @param int|null $mode
9018 * @return mixed
9019 * @static
9020 */
9021 public static function chmod($path, $mode = null)
9022 {
9023 /** @var \Illuminate\Filesystem\Filesystem $instance */
9024 return $instance->chmod($path, $mode);
9025 }
9026
9027 /**
9028 * Delete the file at a given path.
9029 *
9030 * @param string|array $paths
9031 * @return bool
9032 * @static
9033 */
9034 public static function delete($paths)
9035 {
9036 /** @var \Illuminate\Filesystem\Filesystem $instance */
9037 return $instance->delete($paths);
9038 }
9039
9040 /**
9041 * Move a file to a new location.
9042 *
9043 * @param string $path
9044 * @param string $target
9045 * @return bool
9046 * @static
9047 */
9048 public static function move($path, $target)
9049 {
9050 /** @var \Illuminate\Filesystem\Filesystem $instance */
9051 return $instance->move($path, $target);
9052 }
9053
9054 /**
9055 * Copy a file to a new location.
9056 *
9057 * @param string $path
9058 * @param string $target
9059 * @return bool
9060 * @static
9061 */
9062 public static function copy($path, $target)
9063 {
9064 /** @var \Illuminate\Filesystem\Filesystem $instance */
9065 return $instance->copy($path, $target);
9066 }
9067
9068 /**
9069 * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
9070 *
9071 * @param string $target
9072 * @param string $link
9073 * @return bool|null
9074 * @static
9075 */
9076 public static function link($target, $link)
9077 {
9078 /** @var \Illuminate\Filesystem\Filesystem $instance */
9079 return $instance->link($target, $link);
9080 }
9081
9082 /**
9083 * Create a relative symlink to the target file or directory.
9084 *
9085 * @param string $target
9086 * @param string $link
9087 * @return void
9088 * @throws \RuntimeException
9089 * @static
9090 */
9091 public static function relativeLink($target, $link)
9092 {
9093 /** @var \Illuminate\Filesystem\Filesystem $instance */
9094 $instance->relativeLink($target, $link);
9095 }
9096
9097 /**
9098 * Extract the file name from a file path.
9099 *
9100 * @param string $path
9101 * @return string
9102 * @static
9103 */
9104 public static function name($path)
9105 {
9106 /** @var \Illuminate\Filesystem\Filesystem $instance */
9107 return $instance->name($path);
9108 }
9109
9110 /**
9111 * Extract the trailing name component from a file path.
9112 *
9113 * @param string $path
9114 * @return string
9115 * @static
9116 */
9117 public static function basename($path)
9118 {
9119 /** @var \Illuminate\Filesystem\Filesystem $instance */
9120 return $instance->basename($path);
9121 }
9122
9123 /**
9124 * Extract the parent directory from a file path.
9125 *
9126 * @param string $path
9127 * @return string
9128 * @static
9129 */
9130 public static function dirname($path)
9131 {
9132 /** @var \Illuminate\Filesystem\Filesystem $instance */
9133 return $instance->dirname($path);
9134 }
9135
9136 /**
9137 * Extract the file extension from a file path.
9138 *
9139 * @param string $path
9140 * @return string
9141 * @static
9142 */
9143 public static function extension($path)
9144 {
9145 /** @var \Illuminate\Filesystem\Filesystem $instance */
9146 return $instance->extension($path);
9147 }
9148
9149 /**
9150 * Guess the file extension from the mime-type of a given file.
9151 *
9152 * @param string $path
9153 * @return string|null
9154 * @throws \RuntimeException
9155 * @static
9156 */
9157 public static function guessExtension($path)
9158 {
9159 /** @var \Illuminate\Filesystem\Filesystem $instance */
9160 return $instance->guessExtension($path);
9161 }
9162
9163 /**
9164 * Get the file type of a given file.
9165 *
9166 * @param string $path
9167 * @return string
9168 * @static
9169 */
9170 public static function type($path)
9171 {
9172 /** @var \Illuminate\Filesystem\Filesystem $instance */
9173 return $instance->type($path);
9174 }
9175
9176 /**
9177 * Get the mime-type of a given file.
9178 *
9179 * @param string $path
9180 * @return string|false
9181 * @static
9182 */
9183 public static function mimeType($path)
9184 {
9185 /** @var \Illuminate\Filesystem\Filesystem $instance */
9186 return $instance->mimeType($path);
9187 }
9188
9189 /**
9190 * Get the file size of a given file.
9191 *
9192 * @param string $path
9193 * @return int
9194 * @static
9195 */
9196 public static function size($path)
9197 {
9198 /** @var \Illuminate\Filesystem\Filesystem $instance */
9199 return $instance->size($path);
9200 }
9201
9202 /**
9203 * Get the file's last modification time.
9204 *
9205 * @param string $path
9206 * @return int
9207 * @static
9208 */
9209 public static function lastModified($path)
9210 {
9211 /** @var \Illuminate\Filesystem\Filesystem $instance */
9212 return $instance->lastModified($path);
9213 }
9214
9215 /**
9216 * Determine if the given path is a directory.
9217 *
9218 * @param string $directory
9219 * @return bool
9220 * @static
9221 */
9222 public static function isDirectory($directory)
9223 {
9224 /** @var \Illuminate\Filesystem\Filesystem $instance */
9225 return $instance->isDirectory($directory);
9226 }
9227
9228 /**
9229 * Determine if the given path is a directory that does not contain any other files or directories.
9230 *
9231 * @param string $directory
9232 * @param bool $ignoreDotFiles
9233 * @return bool
9234 * @static
9235 */
9236 public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
9237 {
9238 /** @var \Illuminate\Filesystem\Filesystem $instance */
9239 return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
9240 }
9241
9242 /**
9243 * Determine if the given path is readable.
9244 *
9245 * @param string $path
9246 * @return bool
9247 * @static
9248 */
9249 public static function isReadable($path)
9250 {
9251 /** @var \Illuminate\Filesystem\Filesystem $instance */
9252 return $instance->isReadable($path);
9253 }
9254
9255 /**
9256 * Determine if the given path is writable.
9257 *
9258 * @param string $path
9259 * @return bool
9260 * @static
9261 */
9262 public static function isWritable($path)
9263 {
9264 /** @var \Illuminate\Filesystem\Filesystem $instance */
9265 return $instance->isWritable($path);
9266 }
9267
9268 /**
9269 * Determine if two files are the same by comparing their hashes.
9270 *
9271 * @param string $firstFile
9272 * @param string $secondFile
9273 * @return bool
9274 * @static
9275 */
9276 public static function hasSameHash($firstFile, $secondFile)
9277 {
9278 /** @var \Illuminate\Filesystem\Filesystem $instance */
9279 return $instance->hasSameHash($firstFile, $secondFile);
9280 }
9281
9282 /**
9283 * Determine if the given path is a file.
9284 *
9285 * @param string $file
9286 * @return bool
9287 * @static
9288 */
9289 public static function isFile($file)
9290 {
9291 /** @var \Illuminate\Filesystem\Filesystem $instance */
9292 return $instance->isFile($file);
9293 }
9294
9295 /**
9296 * Find path names matching a given pattern.
9297 *
9298 * @param string $pattern
9299 * @param int $flags
9300 * @return array
9301 * @static
9302 */
9303 public static function glob($pattern, $flags = 0)
9304 {
9305 /** @var \Illuminate\Filesystem\Filesystem $instance */
9306 return $instance->glob($pattern, $flags);
9307 }
9308
9309 /**
9310 * Get an array of all files in a directory.
9311 *
9312 * @param string $directory
9313 * @param bool $hidden
9314 * @return \Symfony\Component\Finder\SplFileInfo[]
9315 * @static
9316 */
9317 public static function files($directory, $hidden = false)
9318 {
9319 /** @var \Illuminate\Filesystem\Filesystem $instance */
9320 return $instance->files($directory, $hidden);
9321 }
9322
9323 /**
9324 * Get all of the files from the given directory (recursive).
9325 *
9326 * @param string $directory
9327 * @param bool $hidden
9328 * @return \Symfony\Component\Finder\SplFileInfo[]
9329 * @static
9330 */
9331 public static function allFiles($directory, $hidden = false)
9332 {
9333 /** @var \Illuminate\Filesystem\Filesystem $instance */
9334 return $instance->allFiles($directory, $hidden);
9335 }
9336
9337 /**
9338 * Get all of the directories within a given directory.
9339 *
9340 * @param string $directory
9341 * @return array
9342 * @static
9343 */
9344 public static function directories($directory)
9345 {
9346 /** @var \Illuminate\Filesystem\Filesystem $instance */
9347 return $instance->directories($directory);
9348 }
9349
9350 /**
9351 * Ensure a directory exists.
9352 *
9353 * @param string $path
9354 * @param int $mode
9355 * @param bool $recursive
9356 * @return void
9357 * @static
9358 */
9359 public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
9360 {
9361 /** @var \Illuminate\Filesystem\Filesystem $instance */
9362 $instance->ensureDirectoryExists($path, $mode, $recursive);
9363 }
9364
9365 /**
9366 * Create a directory.
9367 *
9368 * @param string $path
9369 * @param int $mode
9370 * @param bool $recursive
9371 * @param bool $force
9372 * @return bool
9373 * @static
9374 */
9375 public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
9376 {
9377 /** @var \Illuminate\Filesystem\Filesystem $instance */
9378 return $instance->makeDirectory($path, $mode, $recursive, $force);
9379 }
9380
9381 /**
9382 * Move a directory.
9383 *
9384 * @param string $from
9385 * @param string $to
9386 * @param bool $overwrite
9387 * @return bool
9388 * @static
9389 */
9390 public static function moveDirectory($from, $to, $overwrite = false)
9391 {
9392 /** @var \Illuminate\Filesystem\Filesystem $instance */
9393 return $instance->moveDirectory($from, $to, $overwrite);
9394 }
9395
9396 /**
9397 * Copy a directory from one location to another.
9398 *
9399 * @param string $directory
9400 * @param string $destination
9401 * @param int|null $options
9402 * @return bool
9403 * @static
9404 */
9405 public static function copyDirectory($directory, $destination, $options = null)
9406 {
9407 /** @var \Illuminate\Filesystem\Filesystem $instance */
9408 return $instance->copyDirectory($directory, $destination, $options);
9409 }
9410
9411 /**
9412 * Recursively delete a directory.
9413 *
9414 * The directory itself may be optionally preserved.
9415 *
9416 * @param string $directory
9417 * @param bool $preserve
9418 * @return bool
9419 * @static
9420 */
9421 public static function deleteDirectory($directory, $preserve = false)
9422 {
9423 /** @var \Illuminate\Filesystem\Filesystem $instance */
9424 return $instance->deleteDirectory($directory, $preserve);
9425 }
9426
9427 /**
9428 * Remove all of the directories within a given directory.
9429 *
9430 * @param string $directory
9431 * @return bool
9432 * @static
9433 */
9434 public static function deleteDirectories($directory)
9435 {
9436 /** @var \Illuminate\Filesystem\Filesystem $instance */
9437 return $instance->deleteDirectories($directory);
9438 }
9439
9440 /**
9441 * Empty the specified directory of all files and folders.
9442 *
9443 * @param string $directory
9444 * @return bool
9445 * @static
9446 */
9447 public static function cleanDirectory($directory)
9448 {
9449 /** @var \Illuminate\Filesystem\Filesystem $instance */
9450 return $instance->cleanDirectory($directory);
9451 }
9452
9453 /**
9454 * Apply the callback if the given "value" is (or resolves to) truthy.
9455 *
9456 * @template TWhenParameter
9457 * @template TWhenReturnType
9458 * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
9459 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
9460 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
9461 * @return $this|TWhenReturnType
9462 * @static
9463 */
9464 public static function when($value = null, $callback = null, $default = null)
9465 {
9466 /** @var \Illuminate\Filesystem\Filesystem $instance */
9467 return $instance->when($value, $callback, $default);
9468 }
9469
9470 /**
9471 * Apply the callback if the given "value" is (or resolves to) falsy.
9472 *
9473 * @template TUnlessParameter
9474 * @template TUnlessReturnType
9475 * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
9476 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
9477 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
9478 * @return $this|TUnlessReturnType
9479 * @static
9480 */
9481 public static function unless($value = null, $callback = null, $default = null)
9482 {
9483 /** @var \Illuminate\Filesystem\Filesystem $instance */
9484 return $instance->unless($value, $callback, $default);
9485 }
9486
9487 /**
9488 * Register a custom macro.
9489 *
9490 * @param string $name
9491 * @param object|callable $macro
9492 * @param-closure-this static $macro
9493 * @return void
9494 * @static
9495 */
9496 public static function macro($name, $macro)
9497 {
9498 \Illuminate\Filesystem\Filesystem::macro($name, $macro);
9499 }
9500
9501 /**
9502 * Mix another object into the class.
9503 *
9504 * @param object $mixin
9505 * @param bool $replace
9506 * @return void
9507 * @throws \ReflectionException
9508 * @static
9509 */
9510 public static function mixin($mixin, $replace = true)
9511 {
9512 \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
9513 }
9514
9515 /**
9516 * Checks if macro is registered.
9517 *
9518 * @param string $name
9519 * @return bool
9520 * @static
9521 */
9522 public static function hasMacro($name)
9523 {
9524 return \Illuminate\Filesystem\Filesystem::hasMacro($name);
9525 }
9526
9527 /**
9528 * Flush the existing macros.
9529 *
9530 * @return void
9531 * @static
9532 */
9533 public static function flushMacros()
9534 {
9535 \Illuminate\Filesystem\Filesystem::flushMacros();
9536 }
9537
9538 }
9539 /**
9540 * @see \Illuminate\Auth\Access\Gate
9541 */
9542 class Gate {
9543 /**
9544 * Determine if a given ability has been defined.
9545 *
9546 * @param string|array $ability
9547 * @return bool
9548 * @static
9549 */
9550 public static function has($ability)
9551 {
9552 /** @var \Illuminate\Auth\Access\Gate $instance */
9553 return $instance->has($ability);
9554 }
9555
9556 /**
9557 * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
9558 *
9559 * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
9560 * @param string|null $message
9561 * @param string|null $code
9562 * @return \Illuminate\Auth\Access\Response
9563 * @throws \Illuminate\Auth\Access\AuthorizationException
9564 * @static
9565 */
9566 public static function allowIf($condition, $message = null, $code = null)
9567 {
9568 /** @var \Illuminate\Auth\Access\Gate $instance */
9569 return $instance->allowIf($condition, $message, $code);
9570 }
9571
9572 /**
9573 * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
9574 *
9575 * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
9576 * @param string|null $message
9577 * @param string|null $code
9578 * @return \Illuminate\Auth\Access\Response
9579 * @throws \Illuminate\Auth\Access\AuthorizationException
9580 * @static
9581 */
9582 public static function denyIf($condition, $message = null, $code = null)
9583 {
9584 /** @var \Illuminate\Auth\Access\Gate $instance */
9585 return $instance->denyIf($condition, $message, $code);
9586 }
9587
9588 /**
9589 * Define a new ability.
9590 *
9591 * @param \UnitEnum|string $ability
9592 * @param callable|array|string $callback
9593 * @return \Illuminate\Auth\Access\Gate
9594 * @throws \InvalidArgumentException
9595 * @static
9596 */
9597 public static function define($ability, $callback)
9598 {
9599 /** @var \Illuminate\Auth\Access\Gate $instance */
9600 return $instance->define($ability, $callback);
9601 }
9602
9603 /**
9604 * Define abilities for a resource.
9605 *
9606 * @param string $name
9607 * @param string $class
9608 * @param array|null $abilities
9609 * @return \Illuminate\Auth\Access\Gate
9610 * @static
9611 */
9612 public static function resource($name, $class, $abilities = null)
9613 {
9614 /** @var \Illuminate\Auth\Access\Gate $instance */
9615 return $instance->resource($name, $class, $abilities);
9616 }
9617
9618 /**
9619 * Define a policy class for a given class type.
9620 *
9621 * @param string $class
9622 * @param string $policy
9623 * @return \Illuminate\Auth\Access\Gate
9624 * @static
9625 */
9626 public static function policy($class, $policy)
9627 {
9628 /** @var \Illuminate\Auth\Access\Gate $instance */
9629 return $instance->policy($class, $policy);
9630 }
9631
9632 /**
9633 * Register a callback to run before all Gate checks.
9634 *
9635 * @param callable $callback
9636 * @return \Illuminate\Auth\Access\Gate
9637 * @static
9638 */
9639 public static function before($callback)
9640 {
9641 /** @var \Illuminate\Auth\Access\Gate $instance */
9642 return $instance->before($callback);
9643 }
9644
9645 /**
9646 * Register a callback to run after all Gate checks.
9647 *
9648 * @param callable $callback
9649 * @return \Illuminate\Auth\Access\Gate
9650 * @static
9651 */
9652 public static function after($callback)
9653 {
9654 /** @var \Illuminate\Auth\Access\Gate $instance */
9655 return $instance->after($callback);
9656 }
9657
9658 /**
9659 * Determine if all of the given abilities should be granted for the current user.
9660 *
9661 * @param iterable|\UnitEnum|string $ability
9662 * @param mixed $arguments
9663 * @return bool
9664 * @static
9665 */
9666 public static function allows($ability, $arguments = [])
9667 {
9668 /** @var \Illuminate\Auth\Access\Gate $instance */
9669 return $instance->allows($ability, $arguments);
9670 }
9671
9672 /**
9673 * Determine if any of the given abilities should be denied for the current user.
9674 *
9675 * @param iterable|\UnitEnum|string $ability
9676 * @param mixed $arguments
9677 * @return bool
9678 * @static
9679 */
9680 public static function denies($ability, $arguments = [])
9681 {
9682 /** @var \Illuminate\Auth\Access\Gate $instance */
9683 return $instance->denies($ability, $arguments);
9684 }
9685
9686 /**
9687 * Determine if all of the given abilities should be granted for the current user.
9688 *
9689 * @param iterable|\UnitEnum|string $abilities
9690 * @param mixed $arguments
9691 * @return bool
9692 * @static
9693 */
9694 public static function check($abilities, $arguments = [])
9695 {
9696 /** @var \Illuminate\Auth\Access\Gate $instance */
9697 return $instance->check($abilities, $arguments);
9698 }
9699
9700 /**
9701 * Determine if any one of the given abilities should be granted for the current user.
9702 *
9703 * @param iterable|\UnitEnum|string $abilities
9704 * @param mixed $arguments
9705 * @return bool
9706 * @static
9707 */
9708 public static function any($abilities, $arguments = [])
9709 {
9710 /** @var \Illuminate\Auth\Access\Gate $instance */
9711 return $instance->any($abilities, $arguments);
9712 }
9713
9714 /**
9715 * Determine if all of the given abilities should be denied for the current user.
9716 *
9717 * @param iterable|\UnitEnum|string $abilities
9718 * @param mixed $arguments
9719 * @return bool
9720 * @static
9721 */
9722 public static function none($abilities, $arguments = [])
9723 {
9724 /** @var \Illuminate\Auth\Access\Gate $instance */
9725 return $instance->none($abilities, $arguments);
9726 }
9727
9728 /**
9729 * Determine if the given ability should be granted for the current user.
9730 *
9731 * @param \UnitEnum|string $ability
9732 * @param mixed $arguments
9733 * @return \Illuminate\Auth\Access\Response
9734 * @throws \Illuminate\Auth\Access\AuthorizationException
9735 * @static
9736 */
9737 public static function authorize($ability, $arguments = [])
9738 {
9739 /** @var \Illuminate\Auth\Access\Gate $instance */
9740 return $instance->authorize($ability, $arguments);
9741 }
9742
9743 /**
9744 * Inspect the user for the given ability.
9745 *
9746 * @param \UnitEnum|string $ability
9747 * @param mixed $arguments
9748 * @return \Illuminate\Auth\Access\Response
9749 * @static
9750 */
9751 public static function inspect($ability, $arguments = [])
9752 {
9753 /** @var \Illuminate\Auth\Access\Gate $instance */
9754 return $instance->inspect($ability, $arguments);
9755 }
9756
9757 /**
9758 * Get the raw result from the authorization callback.
9759 *
9760 * @param string $ability
9761 * @param mixed $arguments
9762 * @return mixed
9763 * @throws \Illuminate\Auth\Access\AuthorizationException
9764 * @static
9765 */
9766 public static function raw($ability, $arguments = [])
9767 {
9768 /** @var \Illuminate\Auth\Access\Gate $instance */
9769 return $instance->raw($ability, $arguments);
9770 }
9771
9772 /**
9773 * Get a policy instance for a given class.
9774 *
9775 * @param object|string $class
9776 * @return mixed
9777 * @static
9778 */
9779 public static function getPolicyFor($class)
9780 {
9781 /** @var \Illuminate\Auth\Access\Gate $instance */
9782 return $instance->getPolicyFor($class);
9783 }
9784
9785 /**
9786 * Specify a callback to be used to guess policy names.
9787 *
9788 * @param callable $callback
9789 * @return \Illuminate\Auth\Access\Gate
9790 * @static
9791 */
9792 public static function guessPolicyNamesUsing($callback)
9793 {
9794 /** @var \Illuminate\Auth\Access\Gate $instance */
9795 return $instance->guessPolicyNamesUsing($callback);
9796 }
9797
9798 /**
9799 * Build a policy class instance of the given type.
9800 *
9801 * @param object|string $class
9802 * @return mixed
9803 * @throws \Illuminate\Contracts\Container\BindingResolutionException
9804 * @static
9805 */
9806 public static function resolvePolicy($class)
9807 {
9808 /** @var \Illuminate\Auth\Access\Gate $instance */
9809 return $instance->resolvePolicy($class);
9810 }
9811
9812 /**
9813 * Get a gate instance for the given user.
9814 *
9815 * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
9816 * @return static
9817 * @static
9818 */
9819 public static function forUser($user)
9820 {
9821 /** @var \Illuminate\Auth\Access\Gate $instance */
9822 return $instance->forUser($user);
9823 }
9824
9825 /**
9826 * Get all of the defined abilities.
9827 *
9828 * @return array
9829 * @static
9830 */
9831 public static function abilities()
9832 {
9833 /** @var \Illuminate\Auth\Access\Gate $instance */
9834 return $instance->abilities();
9835 }
9836
9837 /**
9838 * Get all of the defined policies.
9839 *
9840 * @return array
9841 * @static
9842 */
9843 public static function policies()
9844 {
9845 /** @var \Illuminate\Auth\Access\Gate $instance */
9846 return $instance->policies();
9847 }
9848
9849 /**
9850 * Set the default denial response for gates and policies.
9851 *
9852 * @param \Illuminate\Auth\Access\Response $response
9853 * @return \Illuminate\Auth\Access\Gate
9854 * @static
9855 */
9856 public static function defaultDenialResponse($response)
9857 {
9858 /** @var \Illuminate\Auth\Access\Gate $instance */
9859 return $instance->defaultDenialResponse($response);
9860 }
9861
9862 /**
9863 * Set the container instance used by the gate.
9864 *
9865 * @param \Illuminate\Contracts\Container\Container $container
9866 * @return \Illuminate\Auth\Access\Gate
9867 * @static
9868 */
9869 public static function setContainer($container)
9870 {
9871 /** @var \Illuminate\Auth\Access\Gate $instance */
9872 return $instance->setContainer($container);
9873 }
9874
9875 /**
9876 * Deny with a HTTP status code.
9877 *
9878 * @param int $status
9879 * @param string|null $message
9880 * @param int|null $code
9881 * @return \Illuminate\Auth\Access\Response
9882 * @static
9883 */
9884 public static function denyWithStatus($status, $message = null, $code = null)
9885 {
9886 /** @var \Illuminate\Auth\Access\Gate $instance */
9887 return $instance->denyWithStatus($status, $message, $code);
9888 }
9889
9890 /**
9891 * Deny with a 404 HTTP status code.
9892 *
9893 * @param string|null $message
9894 * @param int|null $code
9895 * @return \Illuminate\Auth\Access\Response
9896 * @static
9897 */
9898 public static function denyAsNotFound($message = null, $code = null)
9899 {
9900 /** @var \Illuminate\Auth\Access\Gate $instance */
9901 return $instance->denyAsNotFound($message, $code);
9902 }
9903
9904 }
9905 /**
9906 * @see \Illuminate\Hashing\HashManager
9907 * @see \Illuminate\Hashing\AbstractHasher
9908 */
9909 class Hash {
9910 /**
9911 * Create an instance of the Bcrypt hash Driver.
9912 *
9913 * @return \Illuminate\Hashing\BcryptHasher
9914 * @static
9915 */
9916 public static function createBcryptDriver()
9917 {
9918 /** @var \Illuminate\Hashing\HashManager $instance */
9919 return $instance->createBcryptDriver();
9920 }
9921
9922 /**
9923 * Create an instance of the Argon2i hash Driver.
9924 *
9925 * @return \Illuminate\Hashing\ArgonHasher
9926 * @static
9927 */
9928 public static function createArgonDriver()
9929 {
9930 /** @var \Illuminate\Hashing\HashManager $instance */
9931 return $instance->createArgonDriver();
9932 }
9933
9934 /**
9935 * Create an instance of the Argon2id hash Driver.
9936 *
9937 * @return \Illuminate\Hashing\Argon2IdHasher
9938 * @static
9939 */
9940 public static function createArgon2idDriver()
9941 {
9942 /** @var \Illuminate\Hashing\HashManager $instance */
9943 return $instance->createArgon2idDriver();
9944 }
9945
9946 /**
9947 * Get information about the given hashed value.
9948 *
9949 * @param string $hashedValue
9950 * @return array
9951 * @static
9952 */
9953 public static function info($hashedValue)
9954 {
9955 /** @var \Illuminate\Hashing\HashManager $instance */
9956 return $instance->info($hashedValue);
9957 }
9958
9959 /**
9960 * Hash the given value.
9961 *
9962 * @param string $value
9963 * @param array $options
9964 * @return string
9965 * @static
9966 */
9967 public static function make($value, $options = [])
9968 {
9969 /** @var \Illuminate\Hashing\HashManager $instance */
9970 return $instance->make($value, $options);
9971 }
9972
9973 /**
9974 * Check the given plain value against a hash.
9975 *
9976 * @param string $value
9977 * @param string $hashedValue
9978 * @param array $options
9979 * @return bool
9980 * @static
9981 */
9982 public static function check($value, $hashedValue, $options = [])
9983 {
9984 /** @var \Illuminate\Hashing\HashManager $instance */
9985 return $instance->check($value, $hashedValue, $options);
9986 }
9987
9988 /**
9989 * Check if the given hash has been hashed using the given options.
9990 *
9991 * @param string $hashedValue
9992 * @param array $options
9993 * @return bool
9994 * @static
9995 */
9996 public static function needsRehash($hashedValue, $options = [])
9997 {
9998 /** @var \Illuminate\Hashing\HashManager $instance */
9999 return $instance->needsRehash($hashedValue, $options);
10000 }
10001
10002 /**
10003 * Determine if a given string is already hashed.
10004 *
10005 * @param string $value
10006 * @return bool
10007 * @static
10008 */
10009 public static function isHashed($value)
10010 {
10011 /** @var \Illuminate\Hashing\HashManager $instance */
10012 return $instance->isHashed($value);
10013 }
10014
10015 /**
10016 * Get the default driver name.
10017 *
10018 * @return string
10019 * @static
10020 */
10021 public static function getDefaultDriver()
10022 {
10023 /** @var \Illuminate\Hashing\HashManager $instance */
10024 return $instance->getDefaultDriver();
10025 }
10026
10027 /**
10028 * Verifies that the configuration is less than or equal to what is configured.
10029 *
10030 * @param array $value
10031 * @return bool
10032 * @internal
10033 * @static
10034 */
10035 public static function verifyConfiguration($value)
10036 {
10037 /** @var \Illuminate\Hashing\HashManager $instance */
10038 return $instance->verifyConfiguration($value);
10039 }
10040
10041 /**
10042 * Get a driver instance.
10043 *
10044 * @param string|null $driver
10045 * @return mixed
10046 * @throws \InvalidArgumentException
10047 * @static
10048 */
10049 public static function driver($driver = null)
10050 {
10051 //Method inherited from \Illuminate\Support\Manager
10052 /** @var \Illuminate\Hashing\HashManager $instance */
10053 return $instance->driver($driver);
10054 }
10055
10056 /**
10057 * Register a custom driver creator Closure.
10058 *
10059 * @param string $driver
10060 * @param \Closure $callback
10061 * @return \Illuminate\Hashing\HashManager
10062 * @static
10063 */
10064 public static function extend($driver, $callback)
10065 {
10066 //Method inherited from \Illuminate\Support\Manager
10067 /** @var \Illuminate\Hashing\HashManager $instance */
10068 return $instance->extend($driver, $callback);
10069 }
10070
10071 /**
10072 * Get all of the created "drivers".
10073 *
10074 * @return array
10075 * @static
10076 */
10077 public static function getDrivers()
10078 {
10079 //Method inherited from \Illuminate\Support\Manager
10080 /** @var \Illuminate\Hashing\HashManager $instance */
10081 return $instance->getDrivers();
10082 }
10083
10084 /**
10085 * Get the container instance used by the manager.
10086 *
10087 * @return \Illuminate\Contracts\Container\Container
10088 * @static
10089 */
10090 public static function getContainer()
10091 {
10092 //Method inherited from \Illuminate\Support\Manager
10093 /** @var \Illuminate\Hashing\HashManager $instance */
10094 return $instance->getContainer();
10095 }
10096
10097 /**
10098 * Set the container instance used by the manager.
10099 *
10100 * @param \Illuminate\Contracts\Container\Container $container
10101 * @return \Illuminate\Hashing\HashManager
10102 * @static
10103 */
10104 public static function setContainer($container)
10105 {
10106 //Method inherited from \Illuminate\Support\Manager
10107 /** @var \Illuminate\Hashing\HashManager $instance */
10108 return $instance->setContainer($container);
10109 }
10110
10111 /**
10112 * Forget all of the resolved driver instances.
10113 *
10114 * @return \Illuminate\Hashing\HashManager
10115 * @static
10116 */
10117 public static function forgetDrivers()
10118 {
10119 //Method inherited from \Illuminate\Support\Manager
10120 /** @var \Illuminate\Hashing\HashManager $instance */
10121 return $instance->forgetDrivers();
10122 }
10123
10124 }
10125 /**
10126 * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
10127 * @method static \Illuminate\Http\Client\PendingRequest withBody(\Psr\Http\Message\StreamInterface|string $content, string $contentType = 'application/json')
10128 * @method static \Illuminate\Http\Client\PendingRequest asJson()
10129 * @method static \Illuminate\Http\Client\PendingRequest asForm()
10130 * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = [])
10131 * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
10132 * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
10133 * @method static \Illuminate\Http\Client\PendingRequest withQueryParameters(array $parameters)
10134 * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
10135 * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
10136 * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
10137 * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
10138 * @method static \Illuminate\Http\Client\PendingRequest withHeader(string $name, mixed $value)
10139 * @method static \Illuminate\Http\Client\PendingRequest replaceHeaders(array $headers)
10140 * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
10141 * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
10142 * @method static \Illuminate\Http\Client\PendingRequest withNtlmAuth(string $username, string $password)
10143 * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
10144 * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string|bool $userAgent)
10145 * @method static \Illuminate\Http\Client\PendingRequest withUrlParameters(array $parameters = [])
10146 * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
10147 * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
10148 * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
10149 * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
10150 * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
10151 * @method static \Illuminate\Http\Client\PendingRequest timeout(int|float $seconds)
10152 * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int|float $seconds)
10153 * @method static \Illuminate\Http\Client\PendingRequest retry(array|int $times, \Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true)
10154 * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
10155 * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
10156 * @method static \Illuminate\Http\Client\PendingRequest withRequestMiddleware(callable $middleware)
10157 * @method static \Illuminate\Http\Client\PendingRequest withResponseMiddleware(callable $middleware)
10158 * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
10159 * @method static \Illuminate\Http\Client\PendingRequest throw(callable|null $callback = null)
10160 * @method static \Illuminate\Http\Client\PendingRequest throwIf(callable|bool $condition)
10161 * @method static \Illuminate\Http\Client\PendingRequest throwUnless(callable|bool $condition)
10162 * @method static \Illuminate\Http\Client\PendingRequest dump()
10163 * @method static \Illuminate\Http\Client\PendingRequest dd()
10164 * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
10165 * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
10166 * @method static \Illuminate\Http\Client\Response post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
10167 * @method static \Illuminate\Http\Client\Response patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
10168 * @method static \Illuminate\Http\Client\Response put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
10169 * @method static \Illuminate\Http\Client\Response delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
10170 * @method static array pool(callable $callback)
10171 * @method static \Illuminate\Http\Client\Batch batch(callable $callback)
10172 * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
10173 * @method static \GuzzleHttp\Client buildClient()
10174 * @method static \GuzzleHttp\Client createClient(\GuzzleHttp\HandlerStack $handlerStack)
10175 * @method static \GuzzleHttp\HandlerStack buildHandlerStack()
10176 * @method static \GuzzleHttp\HandlerStack pushHandlers(\GuzzleHttp\HandlerStack $handlerStack)
10177 * @method static \Closure buildBeforeSendingHandler()
10178 * @method static \Closure buildRecorderHandler()
10179 * @method static \Closure buildStubHandler()
10180 * @method static \GuzzleHttp\Psr7\RequestInterface runBeforeSendingCallbacks(\GuzzleHttp\Psr7\RequestInterface $request, array $options)
10181 * @method static array mergeOptions(array ...$options)
10182 * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
10183 * @method static bool isAllowedRequestUrl(string $url)
10184 * @method static \Illuminate\Http\Client\PendingRequest async(bool $async = true)
10185 * @method static \GuzzleHttp\Promise\PromiseInterface|null getPromise()
10186 * @method static \Illuminate\Http\Client\PendingRequest truncateExceptionsAt(int $length)
10187 * @method static \Illuminate\Http\Client\PendingRequest dontTruncateExceptions()
10188 * @method static \Illuminate\Http\Client\PendingRequest setClient(\GuzzleHttp\Client $client)
10189 * @method static \Illuminate\Http\Client\PendingRequest setHandler(callable $handler)
10190 * @method static array getOptions()
10191 * @method static \Illuminate\Http\Client\PendingRequest|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
10192 * @method static \Illuminate\Http\Client\PendingRequest|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
10193 * @see \Illuminate\Http\Client\Factory
10194 */
10195 class Http {
10196 /**
10197 * Add middleware to apply to every request.
10198 *
10199 * @param callable $middleware
10200 * @return \Illuminate\Http\Client\Factory
10201 * @static
10202 */
10203 public static function globalMiddleware($middleware)
10204 {
10205 /** @var \Illuminate\Http\Client\Factory $instance */
10206 return $instance->globalMiddleware($middleware);
10207 }
10208
10209 /**
10210 * Add request middleware to apply to every request.
10211 *
10212 * @param callable $middleware
10213 * @return \Illuminate\Http\Client\Factory
10214 * @static
10215 */
10216 public static function globalRequestMiddleware($middleware)
10217 {
10218 /** @var \Illuminate\Http\Client\Factory $instance */
10219 return $instance->globalRequestMiddleware($middleware);
10220 }
10221
10222 /**
10223 * Add response middleware to apply to every request.
10224 *
10225 * @param callable $middleware
10226 * @return \Illuminate\Http\Client\Factory
10227 * @static
10228 */
10229 public static function globalResponseMiddleware($middleware)
10230 {
10231 /** @var \Illuminate\Http\Client\Factory $instance */
10232 return $instance->globalResponseMiddleware($middleware);
10233 }
10234
10235 /**
10236 * Set the options to apply to every request.
10237 *
10238 * @param \Closure|array $options
10239 * @return \Illuminate\Http\Client\Factory
10240 * @static
10241 */
10242 public static function globalOptions($options)
10243 {
10244 /** @var \Illuminate\Http\Client\Factory $instance */
10245 return $instance->globalOptions($options);
10246 }
10247
10248 /**
10249 * Create a new response instance for use during stubbing.
10250 *
10251 * @param array|string|null $body
10252 * @param int $status
10253 * @param array $headers
10254 * @return \GuzzleHttp\Promise\PromiseInterface
10255 * @static
10256 */
10257 public static function response($body = null, $status = 200, $headers = [])
10258 {
10259 return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
10260 }
10261
10262 /**
10263 * Create a new PSR-7 response instance for use during stubbing.
10264 *
10265 * @param array|string|null $body
10266 * @param int $status
10267 * @param array<string, mixed> $headers
10268 * @return \GuzzleHttp\Psr7\Response
10269 * @static
10270 */
10271 public static function psr7Response($body = null, $status = 200, $headers = [])
10272 {
10273 return \Illuminate\Http\Client\Factory::psr7Response($body, $status, $headers);
10274 }
10275
10276 /**
10277 * Create a new RequestException instance for use during stubbing.
10278 *
10279 * @param array|string|null $body
10280 * @param int $status
10281 * @param array<string, mixed> $headers
10282 * @return \Illuminate\Http\Client\RequestException
10283 * @static
10284 */
10285 public static function failedRequest($body = null, $status = 200, $headers = [])
10286 {
10287 return \Illuminate\Http\Client\Factory::failedRequest($body, $status, $headers);
10288 }
10289
10290 /**
10291 * Create a new connection exception for use during stubbing.
10292 *
10293 * @param string|null $message
10294 * @return \Closure(\Illuminate\Http\Client\Request): \GuzzleHttp\Promise\PromiseInterface
10295 * @static
10296 */
10297 public static function failedConnection($message = null)
10298 {
10299 return \Illuminate\Http\Client\Factory::failedConnection($message);
10300 }
10301
10302 /**
10303 * Get an invokable object that returns a sequence of responses in order for use during stubbing.
10304 *
10305 * @param array $responses
10306 * @return \Illuminate\Http\Client\ResponseSequence
10307 * @static
10308 */
10309 public static function sequence($responses = [])
10310 {
10311 /** @var \Illuminate\Http\Client\Factory $instance */
10312 return $instance->sequence($responses);
10313 }
10314
10315 /**
10316 * Register a stub callable that will intercept requests and be able to return stub responses.
10317 *
10318 * @param callable|array<string, mixed>|null $callback
10319 * @return \Illuminate\Http\Client\Factory
10320 * @static
10321 */
10322 public static function fake($callback = null)
10323 {
10324 /** @var \Illuminate\Http\Client\Factory $instance */
10325 return $instance->fake($callback);
10326 }
10327
10328 /**
10329 * Register a response sequence for the given URL pattern.
10330 *
10331 * @param string $url
10332 * @return \Illuminate\Http\Client\ResponseSequence
10333 * @static
10334 */
10335 public static function fakeSequence($url = '*')
10336 {
10337 /** @var \Illuminate\Http\Client\Factory $instance */
10338 return $instance->fakeSequence($url);
10339 }
10340
10341 /**
10342 * Stub the given URL using the given callback.
10343 *
10344 * @param string $url
10345 * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable|int|string|array|\Illuminate\Http\Client\ResponseSequence $callback
10346 * @return \Illuminate\Http\Client\Factory
10347 * @static
10348 */
10349 public static function stubUrl($url, $callback)
10350 {
10351 /** @var \Illuminate\Http\Client\Factory $instance */
10352 return $instance->stubUrl($url, $callback);
10353 }
10354
10355 /**
10356 * Indicate that an exception should be thrown if any request is not faked.
10357 *
10358 * @param bool $prevent
10359 * @return \Illuminate\Http\Client\Factory
10360 * @static
10361 */
10362 public static function preventStrayRequests($prevent = true)
10363 {
10364 /** @var \Illuminate\Http\Client\Factory $instance */
10365 return $instance->preventStrayRequests($prevent);
10366 }
10367
10368 /**
10369 * Determine if stray requests are being prevented.
10370 *
10371 * @return bool
10372 * @static
10373 */
10374 public static function preventingStrayRequests()
10375 {
10376 /** @var \Illuminate\Http\Client\Factory $instance */
10377 return $instance->preventingStrayRequests();
10378 }
10379
10380 /**
10381 * Allow stray, unfaked requests entirely, or optionally allow only specific URLs.
10382 *
10383 * @param array<int, string>|null $only
10384 * @return \Illuminate\Http\Client\Factory
10385 * @static
10386 */
10387 public static function allowStrayRequests($only = null)
10388 {
10389 /** @var \Illuminate\Http\Client\Factory $instance */
10390 return $instance->allowStrayRequests($only);
10391 }
10392
10393 /**
10394 * Begin recording request / response pairs.
10395 *
10396 * @return \Illuminate\Http\Client\Factory
10397 * @static
10398 */
10399 public static function record()
10400 {
10401 /** @var \Illuminate\Http\Client\Factory $instance */
10402 return $instance->record();
10403 }
10404
10405 /**
10406 * Record a request response pair.
10407 *
10408 * @param \Illuminate\Http\Client\Request $request
10409 * @param \Illuminate\Http\Client\Response|null $response
10410 * @return void
10411 * @static
10412 */
10413 public static function recordRequestResponsePair($request, $response)
10414 {
10415 /** @var \Illuminate\Http\Client\Factory $instance */
10416 $instance->recordRequestResponsePair($request, $response);
10417 }
10418
10419 /**
10420 * Assert that a request / response pair was recorded matching a given truth test.
10421 *
10422 * @param callable|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool) $callback
10423 * @return void
10424 * @static
10425 */
10426 public static function assertSent($callback)
10427 {
10428 /** @var \Illuminate\Http\Client\Factory $instance */
10429 $instance->assertSent($callback);
10430 }
10431
10432 /**
10433 * Assert that the given request was sent in the given order.
10434 *
10435 * @param list<string|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool)|callable> $callbacks
10436 * @return void
10437 * @static
10438 */
10439 public static function assertSentInOrder($callbacks)
10440 {
10441 /** @var \Illuminate\Http\Client\Factory $instance */
10442 $instance->assertSentInOrder($callbacks);
10443 }
10444
10445 /**
10446 * Assert that a request / response pair was not recorded matching a given truth test.
10447 *
10448 * @param callable|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool) $callback
10449 * @return void
10450 * @static
10451 */
10452 public static function assertNotSent($callback)
10453 {
10454 /** @var \Illuminate\Http\Client\Factory $instance */
10455 $instance->assertNotSent($callback);
10456 }
10457
10458 /**
10459 * Assert that no request / response pair was recorded.
10460 *
10461 * @return void
10462 * @static
10463 */
10464 public static function assertNothingSent()
10465 {
10466 /** @var \Illuminate\Http\Client\Factory $instance */
10467 $instance->assertNothingSent();
10468 }
10469
10470 /**
10471 * Assert how many requests have been recorded.
10472 *
10473 * @param int $count
10474 * @return void
10475 * @static
10476 */
10477 public static function assertSentCount($count)
10478 {
10479 /** @var \Illuminate\Http\Client\Factory $instance */
10480 $instance->assertSentCount($count);
10481 }
10482
10483 /**
10484 * Assert that every created response sequence is empty.
10485 *
10486 * @return void
10487 * @static
10488 */
10489 public static function assertSequencesAreEmpty()
10490 {
10491 /** @var \Illuminate\Http\Client\Factory $instance */
10492 $instance->assertSequencesAreEmpty();
10493 }
10494
10495 /**
10496 * Get a collection of the request / response pairs matching the given truth test.
10497 *
10498 * @param (\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool)|callable $callback
10499 * @return \Illuminate\Support\Collection<int, array{0: \Illuminate\Http\Client\Request, 1: \Illuminate\Http\Client\Response|null}>
10500 * @static
10501 */
10502 public static function recorded($callback = null)
10503 {
10504 /** @var \Illuminate\Http\Client\Factory $instance */
10505 return $instance->recorded($callback);
10506 }
10507
10508 /**
10509 * Create a new pending request instance for this factory.
10510 *
10511 * @return \Illuminate\Http\Client\PendingRequest
10512 * @static
10513 */
10514 public static function createPendingRequest()
10515 {
10516 /** @var \Illuminate\Http\Client\Factory $instance */
10517 return $instance->createPendingRequest();
10518 }
10519
10520 /**
10521 * Get the current event dispatcher implementation.
10522 *
10523 * @return \Illuminate\Contracts\Events\Dispatcher|null
10524 * @static
10525 */
10526 public static function getDispatcher()
10527 {
10528 /** @var \Illuminate\Http\Client\Factory $instance */
10529 return $instance->getDispatcher();
10530 }
10531
10532 /**
10533 * Get the array of global middleware.
10534 *
10535 * @return array
10536 * @static
10537 */
10538 public static function getGlobalMiddleware()
10539 {
10540 /** @var \Illuminate\Http\Client\Factory $instance */
10541 return $instance->getGlobalMiddleware();
10542 }
10543
10544 /**
10545 * Register a custom macro.
10546 *
10547 * @param string $name
10548 * @param object|callable $macro
10549 * @param-closure-this static $macro
10550 * @return void
10551 * @static
10552 */
10553 public static function macro($name, $macro)
10554 {
10555 \Illuminate\Http\Client\Factory::macro($name, $macro);
10556 }
10557
10558 /**
10559 * Mix another object into the class.
10560 *
10561 * @param object $mixin
10562 * @param bool $replace
10563 * @return void
10564 * @throws \ReflectionException
10565 * @static
10566 */
10567 public static function mixin($mixin, $replace = true)
10568 {
10569 \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
10570 }
10571
10572 /**
10573 * Checks if macro is registered.
10574 *
10575 * @param string $name
10576 * @return bool
10577 * @static
10578 */
10579 public static function hasMacro($name)
10580 {
10581 return \Illuminate\Http\Client\Factory::hasMacro($name);
10582 }
10583
10584 /**
10585 * Flush the existing macros.
10586 *
10587 * @return void
10588 * @static
10589 */
10590 public static function flushMacros()
10591 {
10592 \Illuminate\Http\Client\Factory::flushMacros();
10593 }
10594
10595 /**
10596 * Dynamically handle calls to the class.
10597 *
10598 * @param string $method
10599 * @param array $parameters
10600 * @return mixed
10601 * @throws \BadMethodCallException
10602 * @static
10603 */
10604 public static function macroCall($method, $parameters)
10605 {
10606 /** @var \Illuminate\Http\Client\Factory $instance */
10607 return $instance->macroCall($method, $parameters);
10608 }
10609
10610 }
10611 /**
10612 * @see \Illuminate\Translation\Translator
10613 */
10614 class Lang {
10615 /**
10616 * Determine if a translation exists for a given locale.
10617 *
10618 * @param string $key
10619 * @param string|null $locale
10620 * @return bool
10621 * @static
10622 */
10623 public static function hasForLocale($key, $locale = null)
10624 {
10625 /** @var \Illuminate\Translation\Translator $instance */
10626 return $instance->hasForLocale($key, $locale);
10627 }
10628
10629 /**
10630 * Determine if a translation exists.
10631 *
10632 * @param string $key
10633 * @param string|null $locale
10634 * @param bool $fallback
10635 * @return bool
10636 * @static
10637 */
10638 public static function has($key, $locale = null, $fallback = true)
10639 {
10640 /** @var \Illuminate\Translation\Translator $instance */
10641 return $instance->has($key, $locale, $fallback);
10642 }
10643
10644 /**
10645 * Get the translation for the given key.
10646 *
10647 * @param string $key
10648 * @param array $replace
10649 * @param string|null $locale
10650 * @param bool $fallback
10651 * @return string|array
10652 * @static
10653 */
10654 public static function get($key, $replace = [], $locale = null, $fallback = true)
10655 {
10656 /** @var \Illuminate\Translation\Translator $instance */
10657 return $instance->get($key, $replace, $locale, $fallback);
10658 }
10659
10660 /**
10661 * Get a translation according to an integer value.
10662 *
10663 * @param string $key
10664 * @param \Countable|int|float|array $number
10665 * @param array $replace
10666 * @param string|null $locale
10667 * @return string
10668 * @static
10669 */
10670 public static function choice($key, $number, $replace = [], $locale = null)
10671 {
10672 /** @var \Illuminate\Translation\Translator $instance */
10673 return $instance->choice($key, $number, $replace, $locale);
10674 }
10675
10676 /**
10677 * Add translation lines to the given locale.
10678 *
10679 * @param array $lines
10680 * @param string $locale
10681 * @param string $namespace
10682 * @return void
10683 * @static
10684 */
10685 public static function addLines($lines, $locale, $namespace = '*')
10686 {
10687 /** @var \Illuminate\Translation\Translator $instance */
10688 $instance->addLines($lines, $locale, $namespace);
10689 }
10690
10691 /**
10692 * Load the specified language group.
10693 *
10694 * @param string $namespace
10695 * @param string $group
10696 * @param string $locale
10697 * @return void
10698 * @static
10699 */
10700 public static function load($namespace, $group, $locale)
10701 {
10702 /** @var \Illuminate\Translation\Translator $instance */
10703 $instance->load($namespace, $group, $locale);
10704 }
10705
10706 /**
10707 * Register a callback that is responsible for handling missing translation keys.
10708 *
10709 * @param callable|null $callback
10710 * @return static
10711 * @static
10712 */
10713 public static function handleMissingKeysUsing($callback)
10714 {
10715 /** @var \Illuminate\Translation\Translator $instance */
10716 return $instance->handleMissingKeysUsing($callback);
10717 }
10718
10719 /**
10720 * Add a new namespace to the loader.
10721 *
10722 * @param string $namespace
10723 * @param string $hint
10724 * @return void
10725 * @static
10726 */
10727 public static function addNamespace($namespace, $hint)
10728 {
10729 /** @var \Illuminate\Translation\Translator $instance */
10730 $instance->addNamespace($namespace, $hint);
10731 }
10732
10733 /**
10734 * Add a new path to the loader.
10735 *
10736 * @param string $path
10737 * @return void
10738 * @static
10739 */
10740 public static function addPath($path)
10741 {
10742 /** @var \Illuminate\Translation\Translator $instance */
10743 $instance->addPath($path);
10744 }
10745
10746 /**
10747 * Add a new JSON path to the loader.
10748 *
10749 * @param string $path
10750 * @return void
10751 * @static
10752 */
10753 public static function addJsonPath($path)
10754 {
10755 /** @var \Illuminate\Translation\Translator $instance */
10756 $instance->addJsonPath($path);
10757 }
10758
10759 /**
10760 * Parse a key into namespace, group, and item.
10761 *
10762 * @param string $key
10763 * @return array
10764 * @static
10765 */
10766 public static function parseKey($key)
10767 {
10768 /** @var \Illuminate\Translation\Translator $instance */
10769 return $instance->parseKey($key);
10770 }
10771
10772 /**
10773 * Specify a callback that should be invoked to determined the applicable locale array.
10774 *
10775 * @param callable $callback
10776 * @return void
10777 * @static
10778 */
10779 public static function determineLocalesUsing($callback)
10780 {
10781 /** @var \Illuminate\Translation\Translator $instance */
10782 $instance->determineLocalesUsing($callback);
10783 }
10784
10785 /**
10786 * Get the message selector instance.
10787 *
10788 * @return \Illuminate\Translation\MessageSelector
10789 * @static
10790 */
10791 public static function getSelector()
10792 {
10793 /** @var \Illuminate\Translation\Translator $instance */
10794 return $instance->getSelector();
10795 }
10796
10797 /**
10798 * Set the message selector instance.
10799 *
10800 * @param \Illuminate\Translation\MessageSelector $selector
10801 * @return void
10802 * @static
10803 */
10804 public static function setSelector($selector)
10805 {
10806 /** @var \Illuminate\Translation\Translator $instance */
10807 $instance->setSelector($selector);
10808 }
10809
10810 /**
10811 * Get the language line loader implementation.
10812 *
10813 * @return \Illuminate\Contracts\Translation\Loader
10814 * @static
10815 */
10816 public static function getLoader()
10817 {
10818 /** @var \Illuminate\Translation\Translator $instance */
10819 return $instance->getLoader();
10820 }
10821
10822 /**
10823 * Get the default locale being used.
10824 *
10825 * @return string
10826 * @static
10827 */
10828 public static function locale()
10829 {
10830 /** @var \Illuminate\Translation\Translator $instance */
10831 return $instance->locale();
10832 }
10833
10834 /**
10835 * Get the default locale being used.
10836 *
10837 * @return string
10838 * @static
10839 */
10840 public static function getLocale()
10841 {
10842 /** @var \Illuminate\Translation\Translator $instance */
10843 return $instance->getLocale();
10844 }
10845
10846 /**
10847 * Set the default locale.
10848 *
10849 * @param string $locale
10850 * @return void
10851 * @throws \InvalidArgumentException
10852 * @static
10853 */
10854 public static function setLocale($locale)
10855 {
10856 /** @var \Illuminate\Translation\Translator $instance */
10857 $instance->setLocale($locale);
10858 }
10859
10860 /**
10861 * Get the fallback locale being used.
10862 *
10863 * @return string
10864 * @static
10865 */
10866 public static function getFallback()
10867 {
10868 /** @var \Illuminate\Translation\Translator $instance */
10869 return $instance->getFallback();
10870 }
10871
10872 /**
10873 * Set the fallback locale being used.
10874 *
10875 * @param string $fallback
10876 * @return void
10877 * @static
10878 */
10879 public static function setFallback($fallback)
10880 {
10881 /** @var \Illuminate\Translation\Translator $instance */
10882 $instance->setFallback($fallback);
10883 }
10884
10885 /**
10886 * Set the loaded translation groups.
10887 *
10888 * @param array $loaded
10889 * @return void
10890 * @static
10891 */
10892 public static function setLoaded($loaded)
10893 {
10894 /** @var \Illuminate\Translation\Translator $instance */
10895 $instance->setLoaded($loaded);
10896 }
10897
10898 /**
10899 * Add a handler to be executed in order to format a given class to a string during translation replacements.
10900 *
10901 * @param callable|string $class
10902 * @param callable|null $handler
10903 * @return void
10904 * @static
10905 */
10906 public static function stringable($class, $handler = null)
10907 {
10908 /** @var \Illuminate\Translation\Translator $instance */
10909 $instance->stringable($class, $handler);
10910 }
10911
10912 /**
10913 * Set the parsed value of a key.
10914 *
10915 * @param string $key
10916 * @param array $parsed
10917 * @return void
10918 * @static
10919 */
10920 public static function setParsedKey($key, $parsed)
10921 {
10922 //Method inherited from \Illuminate\Support\NamespacedItemResolver
10923 /** @var \Illuminate\Translation\Translator $instance */
10924 $instance->setParsedKey($key, $parsed);
10925 }
10926
10927 /**
10928 * Flush the cache of parsed keys.
10929 *
10930 * @return void
10931 * @static
10932 */
10933 public static function flushParsedKeys()
10934 {
10935 //Method inherited from \Illuminate\Support\NamespacedItemResolver
10936 /** @var \Illuminate\Translation\Translator $instance */
10937 $instance->flushParsedKeys();
10938 }
10939
10940 /**
10941 * Register a custom macro.
10942 *
10943 * @param string $name
10944 * @param object|callable $macro
10945 * @param-closure-this static $macro
10946 * @return void
10947 * @static
10948 */
10949 public static function macro($name, $macro)
10950 {
10951 \Illuminate\Translation\Translator::macro($name, $macro);
10952 }
10953
10954 /**
10955 * Mix another object into the class.
10956 *
10957 * @param object $mixin
10958 * @param bool $replace
10959 * @return void
10960 * @throws \ReflectionException
10961 * @static
10962 */
10963 public static function mixin($mixin, $replace = true)
10964 {
10965 \Illuminate\Translation\Translator::mixin($mixin, $replace);
10966 }
10967
10968 /**
10969 * Checks if macro is registered.
10970 *
10971 * @param string $name
10972 * @return bool
10973 * @static
10974 */
10975 public static function hasMacro($name)
10976 {
10977 return \Illuminate\Translation\Translator::hasMacro($name);
10978 }
10979
10980 /**
10981 * Flush the existing macros.
10982 *
10983 * @return void
10984 * @static
10985 */
10986 public static function flushMacros()
10987 {
10988 \Illuminate\Translation\Translator::flushMacros();
10989 }
10990
10991 }
10992 /**
10993 * @method static void write(string $level, \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message, array $context = [])
10994 * @method static \Illuminate\Log\Logger withContext(array $context = [])
10995 * @method static void listen(\Closure $callback)
10996 * @method static \Psr\Log\LoggerInterface getLogger()
10997 * @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
10998 * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $dispatcher)
10999 * @method static \Illuminate\Log\Logger|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
11000 * @method static \Illuminate\Log\Logger|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
11001 * @see \Illuminate\Log\LogManager
11002 */
11003 class Log {
11004 /**
11005 * Build an on-demand log channel.
11006 *
11007 * @param array $config
11008 * @return \Psr\Log\LoggerInterface
11009 * @static
11010 */
11011 public static function build($config)
11012 {
11013 /** @var \Illuminate\Log\LogManager $instance */
11014 return $instance->build($config);
11015 }
11016
11017 /**
11018 * Create a new, on-demand aggregate logger instance.
11019 *
11020 * @param array $channels
11021 * @param string|null $channel
11022 * @return \Psr\Log\LoggerInterface
11023 * @static
11024 */
11025 public static function stack($channels, $channel = null)
11026 {
11027 /** @var \Illuminate\Log\LogManager $instance */
11028 return $instance->stack($channels, $channel);
11029 }
11030
11031 /**
11032 * Get a log channel instance.
11033 *
11034 * @param string|null $channel
11035 * @return \Psr\Log\LoggerInterface
11036 * @static
11037 */
11038 public static function channel($channel = null)
11039 {
11040 /** @var \Illuminate\Log\LogManager $instance */
11041 return $instance->channel($channel);
11042 }
11043
11044 /**
11045 * Get a log driver instance.
11046 *
11047 * @param string|null $driver
11048 * @return \Psr\Log\LoggerInterface
11049 * @static
11050 */
11051 public static function driver($driver = null)
11052 {
11053 /** @var \Illuminate\Log\LogManager $instance */
11054 return $instance->driver($driver);
11055 }
11056
11057 /**
11058 * Share context across channels and stacks.
11059 *
11060 * @param array $context
11061 * @return \Illuminate\Log\LogManager
11062 * @static
11063 */
11064 public static function shareContext($context)
11065 {
11066 /** @var \Illuminate\Log\LogManager $instance */
11067 return $instance->shareContext($context);
11068 }
11069
11070 /**
11071 * The context shared across channels and stacks.
11072 *
11073 * @return array
11074 * @static
11075 */
11076 public static function sharedContext()
11077 {
11078 /** @var \Illuminate\Log\LogManager $instance */
11079 return $instance->sharedContext();
11080 }
11081
11082 /**
11083 * Flush the log context on all currently resolved channels.
11084 *
11085 * @param string[]|null $keys
11086 * @return \Illuminate\Log\LogManager
11087 * @static
11088 */
11089 public static function withoutContext($keys = null)
11090 {
11091 /** @var \Illuminate\Log\LogManager $instance */
11092 return $instance->withoutContext($keys);
11093 }
11094
11095 /**
11096 * Flush the shared context.
11097 *
11098 * @return \Illuminate\Log\LogManager
11099 * @static
11100 */
11101 public static function flushSharedContext()
11102 {
11103 /** @var \Illuminate\Log\LogManager $instance */
11104 return $instance->flushSharedContext();
11105 }
11106
11107 /**
11108 * Get the default log driver name.
11109 *
11110 * @return string|null
11111 * @static
11112 */
11113 public static function getDefaultDriver()
11114 {
11115 /** @var \Illuminate\Log\LogManager $instance */
11116 return $instance->getDefaultDriver();
11117 }
11118
11119 /**
11120 * Set the default log driver name.
11121 *
11122 * @param string $name
11123 * @return void
11124 * @static
11125 */
11126 public static function setDefaultDriver($name)
11127 {
11128 /** @var \Illuminate\Log\LogManager $instance */
11129 $instance->setDefaultDriver($name);
11130 }
11131
11132 /**
11133 * Register a custom driver creator Closure.
11134 *
11135 * @param string $driver
11136 * @param \Closure $callback
11137 * @param-closure-this $this $callback
11138 * @return \Illuminate\Log\LogManager
11139 * @static
11140 */
11141 public static function extend($driver, $callback)
11142 {
11143 /** @var \Illuminate\Log\LogManager $instance */
11144 return $instance->extend($driver, $callback);
11145 }
11146
11147 /**
11148 * Unset the given channel instance.
11149 *
11150 * @param string|null $driver
11151 * @return void
11152 * @static
11153 */
11154 public static function forgetChannel($driver = null)
11155 {
11156 /** @var \Illuminate\Log\LogManager $instance */
11157 $instance->forgetChannel($driver);
11158 }
11159
11160 /**
11161 * Get all of the resolved log channels.
11162 *
11163 * @return array
11164 * @static
11165 */
11166 public static function getChannels()
11167 {
11168 /** @var \Illuminate\Log\LogManager $instance */
11169 return $instance->getChannels();
11170 }
11171
11172 /**
11173 * System is unusable.
11174 *
11175 * @param string|\Stringable $message
11176 * @param array $context
11177 * @return void
11178 * @static
11179 */
11180 public static function emergency($message, $context = [])
11181 {
11182 /** @var \Illuminate\Log\LogManager $instance */
11183 $instance->emergency($message, $context);
11184 }
11185
11186 /**
11187 * Action must be taken immediately.
11188 *
11189 * Example: Entire website down, database unavailable, etc. This should
11190 * trigger the SMS alerts and wake you up.
11191 *
11192 * @param string|\Stringable $message
11193 * @param array $context
11194 * @return void
11195 * @static
11196 */
11197 public static function alert($message, $context = [])
11198 {
11199 /** @var \Illuminate\Log\LogManager $instance */
11200 $instance->alert($message, $context);
11201 }
11202
11203 /**
11204 * Critical conditions.
11205 *
11206 * Example: Application component unavailable, unexpected exception.
11207 *
11208 * @param string|\Stringable $message
11209 * @param array $context
11210 * @return void
11211 * @static
11212 */
11213 public static function critical($message, $context = [])
11214 {
11215 /** @var \Illuminate\Log\LogManager $instance */
11216 $instance->critical($message, $context);
11217 }
11218
11219 /**
11220 * Runtime errors that do not require immediate action but should typically
11221 * be logged and monitored.
11222 *
11223 * @param string|\Stringable $message
11224 * @param array $context
11225 * @return void
11226 * @static
11227 */
11228 public static function error($message, $context = [])
11229 {
11230 /** @var \Illuminate\Log\LogManager $instance */
11231 $instance->error($message, $context);
11232 }
11233
11234 /**
11235 * Exceptional occurrences that are not errors.
11236 *
11237 * Example: Use of deprecated APIs, poor use of an API, undesirable things
11238 * that are not necessarily wrong.
11239 *
11240 * @param string|\Stringable $message
11241 * @param array $context
11242 * @return void
11243 * @static
11244 */
11245 public static function warning($message, $context = [])
11246 {
11247 /** @var \Illuminate\Log\LogManager $instance */
11248 $instance->warning($message, $context);
11249 }
11250
11251 /**
11252 * Normal but significant events.
11253 *
11254 * @param string|\Stringable $message
11255 * @param array $context
11256 * @return void
11257 * @static
11258 */
11259 public static function notice($message, $context = [])
11260 {
11261 /** @var \Illuminate\Log\LogManager $instance */
11262 $instance->notice($message, $context);
11263 }
11264
11265 /**
11266 * Interesting events.
11267 *
11268 * Example: User logs in, SQL logs.
11269 *
11270 * @param string|\Stringable $message
11271 * @param array $context
11272 * @return void
11273 * @static
11274 */
11275 public static function info($message, $context = [])
11276 {
11277 /** @var \Illuminate\Log\LogManager $instance */
11278 $instance->info($message, $context);
11279 }
11280
11281 /**
11282 * Detailed debug information.
11283 *
11284 * @param string|\Stringable $message
11285 * @param array $context
11286 * @return void
11287 * @static
11288 */
11289 public static function debug($message, $context = [])
11290 {
11291 /** @var \Illuminate\Log\LogManager $instance */
11292 $instance->debug($message, $context);
11293 }
11294
11295 /**
11296 * Logs with an arbitrary level.
11297 *
11298 * @param mixed $level
11299 * @param string|\Stringable $message
11300 * @param array $context
11301 * @return void
11302 * @static
11303 */
11304 public static function log($level, $message, $context = [])
11305 {
11306 /** @var \Illuminate\Log\LogManager $instance */
11307 $instance->log($level, $message, $context);
11308 }
11309
11310 /**
11311 * Set the application instance used by the manager.
11312 *
11313 * @param \Illuminate\Contracts\Foundation\Application $app
11314 * @return \Illuminate\Log\LogManager
11315 * @static
11316 */
11317 public static function setApplication($app)
11318 {
11319 /** @var \Illuminate\Log\LogManager $instance */
11320 return $instance->setApplication($app);
11321 }
11322
11323 }
11324 /**
11325 * @method static void alwaysFrom(string $address, string|null $name = null)
11326 * @method static void alwaysReplyTo(string $address, string|null $name = null)
11327 * @method static void alwaysReturnPath(string $address)
11328 * @method static void alwaysTo(string $address, string|null $name = null)
11329 * @method static \Illuminate\Mail\SentMessage|null html(string $html, mixed $callback)
11330 * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, mixed $callback)
11331 * @method static string render(string|array $view, array $data = [])
11332 * @method static mixed onQueue(\BackedEnum|string|null $queue, \Illuminate\Contracts\Mail\Mailable $view)
11333 * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable $view)
11334 * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view)
11335 * @method static \Symfony\Component\Mailer\Transport\TransportInterface getSymfonyTransport()
11336 * @method static \Illuminate\Contracts\View\Factory getViewFactory()
11337 * @method static void setSymfonyTransport(\Symfony\Component\Mailer\Transport\TransportInterface $transport)
11338 * @method static \Illuminate\Mail\Mailer setQueue(\Illuminate\Contracts\Queue\Factory $queue)
11339 * @method static void macro(string $name, object|callable $macro)
11340 * @method static void mixin(object $mixin, bool $replace = true)
11341 * @method static bool hasMacro(string $name)
11342 * @method static void flushMacros()
11343 * @see \Illuminate\Mail\MailManager
11344 * @see \Illuminate\Support\Testing\Fakes\MailFake
11345 */
11346 class Mail {
11347 /**
11348 * Get a mailer instance by name.
11349 *
11350 * @param string|null $name
11351 * @return \Illuminate\Contracts\Mail\Mailer
11352 * @static
11353 */
11354 public static function mailer($name = null)
11355 {
11356 /** @var \Illuminate\Mail\MailManager $instance */
11357 return $instance->mailer($name);
11358 }
11359
11360 /**
11361 * Get a mailer driver instance.
11362 *
11363 * @param string|null $driver
11364 * @return \Illuminate\Mail\Mailer
11365 * @static
11366 */
11367 public static function driver($driver = null)
11368 {
11369 /** @var \Illuminate\Mail\MailManager $instance */
11370 return $instance->driver($driver);
11371 }
11372
11373 /**
11374 * Build a new mailer instance.
11375 *
11376 * @param array $config
11377 * @return \Illuminate\Mail\Mailer
11378 * @static
11379 */
11380 public static function build($config)
11381 {
11382 /** @var \Illuminate\Mail\MailManager $instance */
11383 return $instance->build($config);
11384 }
11385
11386 /**
11387 * Create a new transport instance.
11388 *
11389 * @param array $config
11390 * @return \Symfony\Component\Mailer\Transport\TransportInterface
11391 * @throws \InvalidArgumentException
11392 * @static
11393 */
11394 public static function createSymfonyTransport($config)
11395 {
11396 /** @var \Illuminate\Mail\MailManager $instance */
11397 return $instance->createSymfonyTransport($config);
11398 }
11399
11400 /**
11401 * Get the default mail driver name.
11402 *
11403 * @return string
11404 * @static
11405 */
11406 public static function getDefaultDriver()
11407 {
11408 /** @var \Illuminate\Mail\MailManager $instance */
11409 return $instance->getDefaultDriver();
11410 }
11411
11412 /**
11413 * Set the default mail driver name.
11414 *
11415 * @param string $name
11416 * @return void
11417 * @static
11418 */
11419 public static function setDefaultDriver($name)
11420 {
11421 /** @var \Illuminate\Mail\MailManager $instance */
11422 $instance->setDefaultDriver($name);
11423 }
11424
11425 /**
11426 * Disconnect the given mailer and remove from local cache.
11427 *
11428 * @param string|null $name
11429 * @return void
11430 * @static
11431 */
11432 public static function purge($name = null)
11433 {
11434 /** @var \Illuminate\Mail\MailManager $instance */
11435 $instance->purge($name);
11436 }
11437
11438 /**
11439 * Register a custom transport creator Closure.
11440 *
11441 * @param string $driver
11442 * @param \Closure $callback
11443 * @return \Illuminate\Mail\MailManager
11444 * @static
11445 */
11446 public static function extend($driver, $callback)
11447 {
11448 /** @var \Illuminate\Mail\MailManager $instance */
11449 return $instance->extend($driver, $callback);
11450 }
11451
11452 /**
11453 * Get the application instance used by the manager.
11454 *
11455 * @return \Illuminate\Contracts\Foundation\Application
11456 * @static
11457 */
11458 public static function getApplication()
11459 {
11460 /** @var \Illuminate\Mail\MailManager $instance */
11461 return $instance->getApplication();
11462 }
11463
11464 /**
11465 * Set the application instance used by the manager.
11466 *
11467 * @param \Illuminate\Contracts\Foundation\Application $app
11468 * @return \Illuminate\Mail\MailManager
11469 * @static
11470 */
11471 public static function setApplication($app)
11472 {
11473 /** @var \Illuminate\Mail\MailManager $instance */
11474 return $instance->setApplication($app);
11475 }
11476
11477 /**
11478 * Forget all of the resolved mailer instances.
11479 *
11480 * @return \Illuminate\Mail\MailManager
11481 * @static
11482 */
11483 public static function forgetMailers()
11484 {
11485 /** @var \Illuminate\Mail\MailManager $instance */
11486 return $instance->forgetMailers();
11487 }
11488
11489 /**
11490 * Assert if a mailable was sent based on a truth-test callback.
11491 *
11492 * @param string|\Closure $mailable
11493 * @param callable|array|string|int|null $callback
11494 * @return void
11495 * @static
11496 */
11497 public static function assertSent($mailable, $callback = null)
11498 {
11499 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11500 $instance->assertSent($mailable, $callback);
11501 }
11502
11503 /**
11504 * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
11505 *
11506 * @param string|\Closure $mailable
11507 * @param callable|null $callback
11508 * @return void
11509 * @static
11510 */
11511 public static function assertNotOutgoing($mailable, $callback = null)
11512 {
11513 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11514 $instance->assertNotOutgoing($mailable, $callback);
11515 }
11516
11517 /**
11518 * Determine if a mailable was not sent based on a truth-test callback.
11519 *
11520 * @param string|\Closure $mailable
11521 * @param callable|array|string|null $callback
11522 * @return void
11523 * @static
11524 */
11525 public static function assertNotSent($mailable, $callback = null)
11526 {
11527 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11528 $instance->assertNotSent($mailable, $callback);
11529 }
11530
11531 /**
11532 * Assert that no mailables were sent or queued to be sent.
11533 *
11534 * @return void
11535 * @static
11536 */
11537 public static function assertNothingOutgoing()
11538 {
11539 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11540 $instance->assertNothingOutgoing();
11541 }
11542
11543 /**
11544 * Assert that no mailables were sent.
11545 *
11546 * @return void
11547 * @static
11548 */
11549 public static function assertNothingSent()
11550 {
11551 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11552 $instance->assertNothingSent();
11553 }
11554
11555 /**
11556 * Assert if a mailable was queued based on a truth-test callback.
11557 *
11558 * @param string|\Closure $mailable
11559 * @param callable|array|string|int|null $callback
11560 * @return void
11561 * @static
11562 */
11563 public static function assertQueued($mailable, $callback = null)
11564 {
11565 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11566 $instance->assertQueued($mailable, $callback);
11567 }
11568
11569 /**
11570 * Determine if a mailable was not queued based on a truth-test callback.
11571 *
11572 * @param string|\Closure $mailable
11573 * @param callable|array|string|null $callback
11574 * @return void
11575 * @static
11576 */
11577 public static function assertNotQueued($mailable, $callback = null)
11578 {
11579 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11580 $instance->assertNotQueued($mailable, $callback);
11581 }
11582
11583 /**
11584 * Assert that no mailables were queued.
11585 *
11586 * @return void
11587 * @static
11588 */
11589 public static function assertNothingQueued()
11590 {
11591 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11592 $instance->assertNothingQueued();
11593 }
11594
11595 /**
11596 * Assert the total number of mailables that were sent.
11597 *
11598 * @param int $count
11599 * @return void
11600 * @static
11601 */
11602 public static function assertSentCount($count)
11603 {
11604 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11605 $instance->assertSentCount($count);
11606 }
11607
11608 /**
11609 * Assert the total number of mailables that were queued.
11610 *
11611 * @param int $count
11612 * @return void
11613 * @static
11614 */
11615 public static function assertQueuedCount($count)
11616 {
11617 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11618 $instance->assertQueuedCount($count);
11619 }
11620
11621 /**
11622 * Assert the total number of mailables that were sent or queued.
11623 *
11624 * @param int $count
11625 * @return void
11626 * @static
11627 */
11628 public static function assertOutgoingCount($count)
11629 {
11630 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11631 $instance->assertOutgoingCount($count);
11632 }
11633
11634 /**
11635 * Get all of the mailables matching a truth-test callback.
11636 *
11637 * @param string|\Closure $mailable
11638 * @param callable|null $callback
11639 * @return \Illuminate\Support\Collection
11640 * @static
11641 */
11642 public static function sent($mailable, $callback = null)
11643 {
11644 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11645 return $instance->sent($mailable, $callback);
11646 }
11647
11648 /**
11649 * Determine if the given mailable has been sent.
11650 *
11651 * @param string $mailable
11652 * @return bool
11653 * @static
11654 */
11655 public static function hasSent($mailable)
11656 {
11657 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11658 return $instance->hasSent($mailable);
11659 }
11660
11661 /**
11662 * Get all of the queued mailables matching a truth-test callback.
11663 *
11664 * @param string|\Closure $mailable
11665 * @param callable|null $callback
11666 * @return \Illuminate\Support\Collection
11667 * @static
11668 */
11669 public static function queued($mailable, $callback = null)
11670 {
11671 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11672 return $instance->queued($mailable, $callback);
11673 }
11674
11675 /**
11676 * Determine if the given mailable has been queued.
11677 *
11678 * @param string $mailable
11679 * @return bool
11680 * @static
11681 */
11682 public static function hasQueued($mailable)
11683 {
11684 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11685 return $instance->hasQueued($mailable);
11686 }
11687
11688 /**
11689 * Begin the process of mailing a mailable class instance.
11690 *
11691 * @param mixed $users
11692 * @return \Illuminate\Mail\PendingMail
11693 * @static
11694 */
11695 public static function to($users)
11696 {
11697 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11698 return $instance->to($users);
11699 }
11700
11701 /**
11702 * Begin the process of mailing a mailable class instance.
11703 *
11704 * @param mixed $users
11705 * @return \Illuminate\Mail\PendingMail
11706 * @static
11707 */
11708 public static function cc($users)
11709 {
11710 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11711 return $instance->cc($users);
11712 }
11713
11714 /**
11715 * Begin the process of mailing a mailable class instance.
11716 *
11717 * @param mixed $users
11718 * @return \Illuminate\Mail\PendingMail
11719 * @static
11720 */
11721 public static function bcc($users)
11722 {
11723 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11724 return $instance->bcc($users);
11725 }
11726
11727 /**
11728 * Send a new message with only a raw text part.
11729 *
11730 * @param string $text
11731 * @param \Closure|string $callback
11732 * @return void
11733 * @static
11734 */
11735 public static function raw($text, $callback)
11736 {
11737 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11738 $instance->raw($text, $callback);
11739 }
11740
11741 /**
11742 * Send a new message using a view.
11743 *
11744 * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
11745 * @param array $data
11746 * @param \Closure|string|null $callback
11747 * @return mixed|void
11748 * @static
11749 */
11750 public static function send($view, $data = [], $callback = null)
11751 {
11752 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11753 return $instance->send($view, $data, $callback);
11754 }
11755
11756 /**
11757 * Send a new message synchronously using a view.
11758 *
11759 * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable
11760 * @param array $data
11761 * @param \Closure|string|null $callback
11762 * @return void
11763 * @static
11764 */
11765 public static function sendNow($mailable, $data = [], $callback = null)
11766 {
11767 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11768 $instance->sendNow($mailable, $data, $callback);
11769 }
11770
11771 /**
11772 * Queue a new message for sending.
11773 *
11774 * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
11775 * @param string|null $queue
11776 * @return mixed
11777 * @static
11778 */
11779 public static function queue($view, $queue = null)
11780 {
11781 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11782 return $instance->queue($view, $queue);
11783 }
11784
11785 /**
11786 * Queue a new e-mail message for sending after (n) seconds.
11787 *
11788 * @param \DateTimeInterface|\DateInterval|int $delay
11789 * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
11790 * @param string|null $queue
11791 * @return mixed
11792 * @static
11793 */
11794 public static function later($delay, $view, $queue = null)
11795 {
11796 /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
11797 return $instance->later($delay, $view, $queue);
11798 }
11799
11800 }
11801 /**
11802 * @see \Illuminate\Notifications\ChannelManager
11803 * @see \Illuminate\Support\Testing\Fakes\NotificationFake
11804 */
11805 class Notification {
11806 /**
11807 * Send the given notification to the given notifiable entities.
11808 *
11809 * @param \Illuminate\Support\Collection|mixed $notifiables
11810 * @param mixed $notification
11811 * @return void
11812 * @static
11813 */
11814 public static function send($notifiables, $notification)
11815 {
11816 /** @var \Illuminate\Notifications\ChannelManager $instance */
11817 $instance->send($notifiables, $notification);
11818 }
11819
11820 /**
11821 * Send the given notification immediately.
11822 *
11823 * @param \Illuminate\Support\Collection|mixed $notifiables
11824 * @param mixed $notification
11825 * @param array|null $channels
11826 * @return void
11827 * @static
11828 */
11829 public static function sendNow($notifiables, $notification, $channels = null)
11830 {
11831 /** @var \Illuminate\Notifications\ChannelManager $instance */
11832 $instance->sendNow($notifiables, $notification, $channels);
11833 }
11834
11835 /**
11836 * Get a channel instance.
11837 *
11838 * @param string|null $name
11839 * @return mixed
11840 * @static
11841 */
11842 public static function channel($name = null)
11843 {
11844 /** @var \Illuminate\Notifications\ChannelManager $instance */
11845 return $instance->channel($name);
11846 }
11847
11848 /**
11849 * Get the default channel driver name.
11850 *
11851 * @return string
11852 * @static
11853 */
11854 public static function getDefaultDriver()
11855 {
11856 /** @var \Illuminate\Notifications\ChannelManager $instance */
11857 return $instance->getDefaultDriver();
11858 }
11859
11860 /**
11861 * Get the default channel driver name.
11862 *
11863 * @return string
11864 * @static
11865 */
11866 public static function deliversVia()
11867 {
11868 /** @var \Illuminate\Notifications\ChannelManager $instance */
11869 return $instance->deliversVia();
11870 }
11871
11872 /**
11873 * Set the default channel driver name.
11874 *
11875 * @param string $channel
11876 * @return void
11877 * @static
11878 */
11879 public static function deliverVia($channel)
11880 {
11881 /** @var \Illuminate\Notifications\ChannelManager $instance */
11882 $instance->deliverVia($channel);
11883 }
11884
11885 /**
11886 * Set the locale of notifications.
11887 *
11888 * @param string $locale
11889 * @return \Illuminate\Notifications\ChannelManager
11890 * @static
11891 */
11892 public static function locale($locale)
11893 {
11894 /** @var \Illuminate\Notifications\ChannelManager $instance */
11895 return $instance->locale($locale);
11896 }
11897
11898 /**
11899 * Get a driver instance.
11900 *
11901 * @param string|null $driver
11902 * @return mixed
11903 * @throws \InvalidArgumentException
11904 * @static
11905 */
11906 public static function driver($driver = null)
11907 {
11908 //Method inherited from \Illuminate\Support\Manager
11909 /** @var \Illuminate\Notifications\ChannelManager $instance */
11910 return $instance->driver($driver);
11911 }
11912
11913 /**
11914 * Register a custom driver creator Closure.
11915 *
11916 * @param string $driver
11917 * @param \Closure $callback
11918 * @return \Illuminate\Notifications\ChannelManager
11919 * @static
11920 */
11921 public static function extend($driver, $callback)
11922 {
11923 //Method inherited from \Illuminate\Support\Manager
11924 /** @var \Illuminate\Notifications\ChannelManager $instance */
11925 return $instance->extend($driver, $callback);
11926 }
11927
11928 /**
11929 * Get all of the created "drivers".
11930 *
11931 * @return array
11932 * @static
11933 */
11934 public static function getDrivers()
11935 {
11936 //Method inherited from \Illuminate\Support\Manager
11937 /** @var \Illuminate\Notifications\ChannelManager $instance */
11938 return $instance->getDrivers();
11939 }
11940
11941 /**
11942 * Get the container instance used by the manager.
11943 *
11944 * @return \Illuminate\Contracts\Container\Container
11945 * @static
11946 */
11947 public static function getContainer()
11948 {
11949 //Method inherited from \Illuminate\Support\Manager
11950 /** @var \Illuminate\Notifications\ChannelManager $instance */
11951 return $instance->getContainer();
11952 }
11953
11954 /**
11955 * Set the container instance used by the manager.
11956 *
11957 * @param \Illuminate\Contracts\Container\Container $container
11958 * @return \Illuminate\Notifications\ChannelManager
11959 * @static
11960 */
11961 public static function setContainer($container)
11962 {
11963 //Method inherited from \Illuminate\Support\Manager
11964 /** @var \Illuminate\Notifications\ChannelManager $instance */
11965 return $instance->setContainer($container);
11966 }
11967
11968 /**
11969 * Forget all of the resolved driver instances.
11970 *
11971 * @return \Illuminate\Notifications\ChannelManager
11972 * @static
11973 */
11974 public static function forgetDrivers()
11975 {
11976 //Method inherited from \Illuminate\Support\Manager
11977 /** @var \Illuminate\Notifications\ChannelManager $instance */
11978 return $instance->forgetDrivers();
11979 }
11980
11981 /**
11982 * Assert if a notification was sent on-demand based on a truth-test callback.
11983 *
11984 * @param string|\Closure $notification
11985 * @param callable|null $callback
11986 * @return void
11987 * @throws \Exception
11988 * @static
11989 */
11990 public static function assertSentOnDemand($notification, $callback = null)
11991 {
11992 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
11993 $instance->assertSentOnDemand($notification, $callback);
11994 }
11995
11996 /**
11997 * Assert if a notification was sent based on a truth-test callback.
11998 *
11999 * @param mixed $notifiable
12000 * @param string|\Closure $notification
12001 * @param callable|null $callback
12002 * @return void
12003 * @throws \Exception
12004 * @static
12005 */
12006 public static function assertSentTo($notifiable, $notification, $callback = null)
12007 {
12008 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12009 $instance->assertSentTo($notifiable, $notification, $callback);
12010 }
12011
12012 /**
12013 * Assert if a notification was sent on-demand a number of times.
12014 *
12015 * @param string $notification
12016 * @param int $times
12017 * @return void
12018 * @static
12019 */
12020 public static function assertSentOnDemandTimes($notification, $times = 1)
12021 {
12022 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12023 $instance->assertSentOnDemandTimes($notification, $times);
12024 }
12025
12026 /**
12027 * Assert if a notification was sent a number of times.
12028 *
12029 * @param mixed $notifiable
12030 * @param string $notification
12031 * @param int $times
12032 * @return void
12033 * @static
12034 */
12035 public static function assertSentToTimes($notifiable, $notification, $times = 1)
12036 {
12037 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12038 $instance->assertSentToTimes($notifiable, $notification, $times);
12039 }
12040
12041 /**
12042 * Determine if a notification was sent based on a truth-test callback.
12043 *
12044 * @param mixed $notifiable
12045 * @param string|\Closure $notification
12046 * @param callable|null $callback
12047 * @return void
12048 * @throws \Exception
12049 * @static
12050 */
12051 public static function assertNotSentTo($notifiable, $notification, $callback = null)
12052 {
12053 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12054 $instance->assertNotSentTo($notifiable, $notification, $callback);
12055 }
12056
12057 /**
12058 * Assert that no notifications were sent.
12059 *
12060 * @return void
12061 * @static
12062 */
12063 public static function assertNothingSent()
12064 {
12065 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12066 $instance->assertNothingSent();
12067 }
12068
12069 /**
12070 * Assert that no notifications were sent to the given notifiable.
12071 *
12072 * @param mixed $notifiable
12073 * @return void
12074 * @throws \Exception
12075 * @static
12076 */
12077 public static function assertNothingSentTo($notifiable)
12078 {
12079 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12080 $instance->assertNothingSentTo($notifiable);
12081 }
12082
12083 /**
12084 * Assert the total amount of times a notification was sent.
12085 *
12086 * @param string $notification
12087 * @param int $expectedCount
12088 * @return void
12089 * @static
12090 */
12091 public static function assertSentTimes($notification, $expectedCount)
12092 {
12093 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12094 $instance->assertSentTimes($notification, $expectedCount);
12095 }
12096
12097 /**
12098 * Assert the total count of notification that were sent.
12099 *
12100 * @param int $expectedCount
12101 * @return void
12102 * @static
12103 */
12104 public static function assertCount($expectedCount)
12105 {
12106 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12107 $instance->assertCount($expectedCount);
12108 }
12109
12110 /**
12111 * Get all of the notifications matching a truth-test callback.
12112 *
12113 * @param mixed $notifiable
12114 * @param string $notification
12115 * @param callable|null $callback
12116 * @return \Illuminate\Support\Collection
12117 * @static
12118 */
12119 public static function sent($notifiable, $notification, $callback = null)
12120 {
12121 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12122 return $instance->sent($notifiable, $notification, $callback);
12123 }
12124
12125 /**
12126 * Determine if there are more notifications left to inspect.
12127 *
12128 * @param mixed $notifiable
12129 * @param string $notification
12130 * @return bool
12131 * @static
12132 */
12133 public static function hasSent($notifiable, $notification)
12134 {
12135 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12136 return $instance->hasSent($notifiable, $notification);
12137 }
12138
12139 /**
12140 * Specify if notification should be serialized and restored when being "pushed" to the queue.
12141 *
12142 * @param bool $serializeAndRestore
12143 * @return \Illuminate\Support\Testing\Fakes\NotificationFake
12144 * @static
12145 */
12146 public static function serializeAndRestore($serializeAndRestore = true)
12147 {
12148 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12149 return $instance->serializeAndRestore($serializeAndRestore);
12150 }
12151
12152 /**
12153 * Get the notifications that have been sent.
12154 *
12155 * @return array
12156 * @static
12157 */
12158 public static function sentNotifications()
12159 {
12160 /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
12161 return $instance->sentNotifications();
12162 }
12163
12164 /**
12165 * Register a custom macro.
12166 *
12167 * @param string $name
12168 * @param object|callable $macro
12169 * @param-closure-this static $macro
12170 * @return void
12171 * @static
12172 */
12173 public static function macro($name, $macro)
12174 {
12175 \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
12176 }
12177
12178 /**
12179 * Mix another object into the class.
12180 *
12181 * @param object $mixin
12182 * @param bool $replace
12183 * @return void
12184 * @throws \ReflectionException
12185 * @static
12186 */
12187 public static function mixin($mixin, $replace = true)
12188 {
12189 \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
12190 }
12191
12192 /**
12193 * Checks if macro is registered.
12194 *
12195 * @param string $name
12196 * @return bool
12197 * @static
12198 */
12199 public static function hasMacro($name)
12200 {
12201 return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
12202 }
12203
12204 /**
12205 * Flush the existing macros.
12206 *
12207 * @return void
12208 * @static
12209 */
12210 public static function flushMacros()
12211 {
12212 \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
12213 }
12214
12215 }
12216 /**
12217 * @method static string sendResetLink(array $credentials, \Closure|null $callback = null)
12218 * @method static mixed reset(array $credentials, \Closure $callback)
12219 * @method static \Illuminate\Contracts\Auth\CanResetPassword|null getUser(array $credentials)
12220 * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
12221 * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
12222 * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
12223 * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
12224 * @method static \Illuminate\Support\Timebox getTimebox()
12225 * @see \Illuminate\Auth\Passwords\PasswordBrokerManager
12226 * @see \Illuminate\Auth\Passwords\PasswordBroker
12227 */
12228 class Password {
12229 /**
12230 * Attempt to get the broker from the local cache.
12231 *
12232 * @param string|null $name
12233 * @return \Illuminate\Contracts\Auth\PasswordBroker
12234 * @static
12235 */
12236 public static function broker($name = null)
12237 {
12238 /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
12239 return $instance->broker($name);
12240 }
12241
12242 /**
12243 * Get the default password broker name.
12244 *
12245 * @return string
12246 * @static
12247 */
12248 public static function getDefaultDriver()
12249 {
12250 /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
12251 return $instance->getDefaultDriver();
12252 }
12253
12254 /**
12255 * Set the default password broker name.
12256 *
12257 * @param string $name
12258 * @return void
12259 * @static
12260 */
12261 public static function setDefaultDriver($name)
12262 {
12263 /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
12264 $instance->setDefaultDriver($name);
12265 }
12266
12267 }
12268 /**
12269 * @method static \Illuminate\Process\PendingProcess command(array|string $command)
12270 * @method static \Illuminate\Process\PendingProcess path(string $path)
12271 * @method static \Illuminate\Process\PendingProcess timeout(int $timeout)
12272 * @method static \Illuminate\Process\PendingProcess idleTimeout(int $timeout)
12273 * @method static \Illuminate\Process\PendingProcess forever()
12274 * @method static \Illuminate\Process\PendingProcess env(array $environment)
12275 * @method static \Illuminate\Process\PendingProcess input(\Traversable|resource|string|int|float|bool|null $input)
12276 * @method static \Illuminate\Process\PendingProcess quietly()
12277 * @method static \Illuminate\Process\PendingProcess tty(bool $tty = true)
12278 * @method static \Illuminate\Process\PendingProcess options(array $options)
12279 * @method static \Illuminate\Contracts\Process\ProcessResult run(array|string|null $command = null, callable|null $output = null)
12280 * @method static \Illuminate\Process\InvokedProcess start(array|string|null $command = null, callable|null $output = null)
12281 * @method static bool supportsTty()
12282 * @method static \Illuminate\Process\PendingProcess withFakeHandlers(array $fakeHandlers)
12283 * @method static \Illuminate\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
12284 * @method static \Illuminate\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
12285 * @see \Illuminate\Process\PendingProcess
12286 * @see \Illuminate\Process\Factory
12287 */
12288 class Process {
12289 /**
12290 * Create a new fake process response for testing purposes.
12291 *
12292 * @param array|string $output
12293 * @param array|string $errorOutput
12294 * @param int $exitCode
12295 * @return \Illuminate\Process\FakeProcessResult
12296 * @static
12297 */
12298 public static function result($output = '', $errorOutput = '', $exitCode = 0)
12299 {
12300 /** @var \Illuminate\Process\Factory $instance */
12301 return $instance->result($output, $errorOutput, $exitCode);
12302 }
12303
12304 /**
12305 * Begin describing a fake process lifecycle.
12306 *
12307 * @return \Illuminate\Process\FakeProcessDescription
12308 * @static
12309 */
12310 public static function describe()
12311 {
12312 /** @var \Illuminate\Process\Factory $instance */
12313 return $instance->describe();
12314 }
12315
12316 /**
12317 * Begin describing a fake process sequence.
12318 *
12319 * @param array $processes
12320 * @return \Illuminate\Process\FakeProcessSequence
12321 * @static
12322 */
12323 public static function sequence($processes = [])
12324 {
12325 /** @var \Illuminate\Process\Factory $instance */
12326 return $instance->sequence($processes);
12327 }
12328
12329 /**
12330 * Indicate that the process factory should fake processes.
12331 *
12332 * @param \Closure|array|null $callback
12333 * @return \Illuminate\Process\Factory
12334 * @static
12335 */
12336 public static function fake($callback = null)
12337 {
12338 /** @var \Illuminate\Process\Factory $instance */
12339 return $instance->fake($callback);
12340 }
12341
12342 /**
12343 * Determine if the process factory has fake process handlers and is recording processes.
12344 *
12345 * @return bool
12346 * @static
12347 */
12348 public static function isRecording()
12349 {
12350 /** @var \Illuminate\Process\Factory $instance */
12351 return $instance->isRecording();
12352 }
12353
12354 /**
12355 * Record the given process if processes should be recorded.
12356 *
12357 * @param \Illuminate\Process\PendingProcess $process
12358 * @param \Illuminate\Contracts\Process\ProcessResult $result
12359 * @return \Illuminate\Process\Factory
12360 * @static
12361 */
12362 public static function recordIfRecording($process, $result)
12363 {
12364 /** @var \Illuminate\Process\Factory $instance */
12365 return $instance->recordIfRecording($process, $result);
12366 }
12367
12368 /**
12369 * Record the given process.
12370 *
12371 * @param \Illuminate\Process\PendingProcess $process
12372 * @param \Illuminate\Contracts\Process\ProcessResult $result
12373 * @return \Illuminate\Process\Factory
12374 * @static
12375 */
12376 public static function record($process, $result)
12377 {
12378 /** @var \Illuminate\Process\Factory $instance */
12379 return $instance->record($process, $result);
12380 }
12381
12382 /**
12383 * Indicate that an exception should be thrown if any process is not faked.
12384 *
12385 * @param bool $prevent
12386 * @return \Illuminate\Process\Factory
12387 * @static
12388 */
12389 public static function preventStrayProcesses($prevent = true)
12390 {
12391 /** @var \Illuminate\Process\Factory $instance */
12392 return $instance->preventStrayProcesses($prevent);
12393 }
12394
12395 /**
12396 * Determine if stray processes are being prevented.
12397 *
12398 * @return bool
12399 * @static
12400 */
12401 public static function preventingStrayProcesses()
12402 {
12403 /** @var \Illuminate\Process\Factory $instance */
12404 return $instance->preventingStrayProcesses();
12405 }
12406
12407 /**
12408 * Assert that a process was recorded matching a given truth test.
12409 *
12410 * @param \Closure|string $callback
12411 * @return \Illuminate\Process\Factory
12412 * @static
12413 */
12414 public static function assertRan($callback)
12415 {
12416 /** @var \Illuminate\Process\Factory $instance */
12417 return $instance->assertRan($callback);
12418 }
12419
12420 /**
12421 * Assert that a process was recorded a given number of times matching a given truth test.
12422 *
12423 * @param \Closure|string $callback
12424 * @param int $times
12425 * @return \Illuminate\Process\Factory
12426 * @static
12427 */
12428 public static function assertRanTimes($callback, $times = 1)
12429 {
12430 /** @var \Illuminate\Process\Factory $instance */
12431 return $instance->assertRanTimes($callback, $times);
12432 }
12433
12434 /**
12435 * Assert that a process was not recorded matching a given truth test.
12436 *
12437 * @param \Closure|string $callback
12438 * @return \Illuminate\Process\Factory
12439 * @static
12440 */
12441 public static function assertNotRan($callback)
12442 {
12443 /** @var \Illuminate\Process\Factory $instance */
12444 return $instance->assertNotRan($callback);
12445 }
12446
12447 /**
12448 * Assert that a process was not recorded matching a given truth test.
12449 *
12450 * @param \Closure|string $callback
12451 * @return \Illuminate\Process\Factory
12452 * @static
12453 */
12454 public static function assertDidntRun($callback)
12455 {
12456 /** @var \Illuminate\Process\Factory $instance */
12457 return $instance->assertDidntRun($callback);
12458 }
12459
12460 /**
12461 * Assert that no processes were recorded.
12462 *
12463 * @return \Illuminate\Process\Factory
12464 * @static
12465 */
12466 public static function assertNothingRan()
12467 {
12468 /** @var \Illuminate\Process\Factory $instance */
12469 return $instance->assertNothingRan();
12470 }
12471
12472 /**
12473 * Start defining a pool of processes.
12474 *
12475 * @param callable $callback
12476 * @return \Illuminate\Process\Pool
12477 * @static
12478 */
12479 public static function pool($callback)
12480 {
12481 /** @var \Illuminate\Process\Factory $instance */
12482 return $instance->pool($callback);
12483 }
12484
12485 /**
12486 * Start defining a series of piped processes.
12487 *
12488 * @param callable|array $callback
12489 * @return \Illuminate\Contracts\Process\ProcessResult
12490 * @static
12491 */
12492 public static function pipe($callback, $output = null)
12493 {
12494 /** @var \Illuminate\Process\Factory $instance */
12495 return $instance->pipe($callback, $output);
12496 }
12497
12498 /**
12499 * Run a pool of processes and wait for them to finish executing.
12500 *
12501 * @param callable $callback
12502 * @param callable|null $output
12503 * @return \Illuminate\Process\ProcessPoolResults
12504 * @static
12505 */
12506 public static function concurrently($callback, $output = null)
12507 {
12508 /** @var \Illuminate\Process\Factory $instance */
12509 return $instance->concurrently($callback, $output);
12510 }
12511
12512 /**
12513 * Create a new pending process associated with this factory.
12514 *
12515 * @return \Illuminate\Process\PendingProcess
12516 * @static
12517 */
12518 public static function newPendingProcess()
12519 {
12520 /** @var \Illuminate\Process\Factory $instance */
12521 return $instance->newPendingProcess();
12522 }
12523
12524 /**
12525 * Register a custom macro.
12526 *
12527 * @param string $name
12528 * @param object|callable $macro
12529 * @param-closure-this static $macro
12530 * @return void
12531 * @static
12532 */
12533 public static function macro($name, $macro)
12534 {
12535 \Illuminate\Process\Factory::macro($name, $macro);
12536 }
12537
12538 /**
12539 * Mix another object into the class.
12540 *
12541 * @param object $mixin
12542 * @param bool $replace
12543 * @return void
12544 * @throws \ReflectionException
12545 * @static
12546 */
12547 public static function mixin($mixin, $replace = true)
12548 {
12549 \Illuminate\Process\Factory::mixin($mixin, $replace);
12550 }
12551
12552 /**
12553 * Checks if macro is registered.
12554 *
12555 * @param string $name
12556 * @return bool
12557 * @static
12558 */
12559 public static function hasMacro($name)
12560 {
12561 return \Illuminate\Process\Factory::hasMacro($name);
12562 }
12563
12564 /**
12565 * Flush the existing macros.
12566 *
12567 * @return void
12568 * @static
12569 */
12570 public static function flushMacros()
12571 {
12572 \Illuminate\Process\Factory::flushMacros();
12573 }
12574
12575 /**
12576 * Dynamically handle calls to the class.
12577 *
12578 * @param string $method
12579 * @param array $parameters
12580 * @return mixed
12581 * @throws \BadMethodCallException
12582 * @static
12583 */
12584 public static function macroCall($method, $parameters)
12585 {
12586 /** @var \Illuminate\Process\Factory $instance */
12587 return $instance->macroCall($method, $parameters);
12588 }
12589
12590 }
12591 /**
12592 * @see \Illuminate\Queue\QueueManager
12593 * @see \Illuminate\Queue\Queue
12594 * @see \Illuminate\Support\Testing\Fakes\QueueFake
12595 */
12596 class Queue {
12597 /**
12598 * Register an event listener for the before job event.
12599 *
12600 * @param mixed $callback
12601 * @return void
12602 * @static
12603 */
12604 public static function before($callback)
12605 {
12606 /** @var \Illuminate\Queue\QueueManager $instance */
12607 $instance->before($callback);
12608 }
12609
12610 /**
12611 * Register an event listener for the after job event.
12612 *
12613 * @param mixed $callback
12614 * @return void
12615 * @static
12616 */
12617 public static function after($callback)
12618 {
12619 /** @var \Illuminate\Queue\QueueManager $instance */
12620 $instance->after($callback);
12621 }
12622
12623 /**
12624 * Register an event listener for the exception occurred job event.
12625 *
12626 * @param mixed $callback
12627 * @return void
12628 * @static
12629 */
12630 public static function exceptionOccurred($callback)
12631 {
12632 /** @var \Illuminate\Queue\QueueManager $instance */
12633 $instance->exceptionOccurred($callback);
12634 }
12635
12636 /**
12637 * Register an event listener for the daemon queue loop.
12638 *
12639 * @param mixed $callback
12640 * @return void
12641 * @static
12642 */
12643 public static function looping($callback)
12644 {
12645 /** @var \Illuminate\Queue\QueueManager $instance */
12646 $instance->looping($callback);
12647 }
12648
12649 /**
12650 * Register an event listener for the failed job event.
12651 *
12652 * @param mixed $callback
12653 * @return void
12654 * @static
12655 */
12656 public static function failing($callback)
12657 {
12658 /** @var \Illuminate\Queue\QueueManager $instance */
12659 $instance->failing($callback);
12660 }
12661
12662 /**
12663 * Register an event listener for the daemon queue starting.
12664 *
12665 * @param mixed $callback
12666 * @return void
12667 * @static
12668 */
12669 public static function starting($callback)
12670 {
12671 /** @var \Illuminate\Queue\QueueManager $instance */
12672 $instance->starting($callback);
12673 }
12674
12675 /**
12676 * Register an event listener for the daemon queue stopping.
12677 *
12678 * @param mixed $callback
12679 * @return void
12680 * @static
12681 */
12682 public static function stopping($callback)
12683 {
12684 /** @var \Illuminate\Queue\QueueManager $instance */
12685 $instance->stopping($callback);
12686 }
12687
12688 /**
12689 * Determine if the driver is connected.
12690 *
12691 * @param string|null $name
12692 * @return bool
12693 * @static
12694 */
12695 public static function connected($name = null)
12696 {
12697 /** @var \Illuminate\Queue\QueueManager $instance */
12698 return $instance->connected($name);
12699 }
12700
12701 /**
12702 * Resolve a queue connection instance.
12703 *
12704 * @param string|null $name
12705 * @return \Illuminate\Contracts\Queue\Queue
12706 * @static
12707 */
12708 public static function connection($name = null)
12709 {
12710 /** @var \Illuminate\Queue\QueueManager $instance */
12711 return $instance->connection($name);
12712 }
12713
12714 /**
12715 * Add a queue connection resolver.
12716 *
12717 * @param string $driver
12718 * @param \Closure $resolver
12719 * @return void
12720 * @static
12721 */
12722 public static function extend($driver, $resolver)
12723 {
12724 /** @var \Illuminate\Queue\QueueManager $instance */
12725 $instance->extend($driver, $resolver);
12726 }
12727
12728 /**
12729 * Add a queue connection resolver.
12730 *
12731 * @param string $driver
12732 * @param \Closure $resolver
12733 * @return void
12734 * @static
12735 */
12736 public static function addConnector($driver, $resolver)
12737 {
12738 /** @var \Illuminate\Queue\QueueManager $instance */
12739 $instance->addConnector($driver, $resolver);
12740 }
12741
12742 /**
12743 * Get the name of the default queue connection.
12744 *
12745 * @return string
12746 * @static
12747 */
12748 public static function getDefaultDriver()
12749 {
12750 /** @var \Illuminate\Queue\QueueManager $instance */
12751 return $instance->getDefaultDriver();
12752 }
12753
12754 /**
12755 * Set the name of the default queue connection.
12756 *
12757 * @param string $name
12758 * @return void
12759 * @static
12760 */
12761 public static function setDefaultDriver($name)
12762 {
12763 /** @var \Illuminate\Queue\QueueManager $instance */
12764 $instance->setDefaultDriver($name);
12765 }
12766
12767 /**
12768 * Get the full name for the given connection.
12769 *
12770 * @param string|null $connection
12771 * @return string
12772 * @static
12773 */
12774 public static function getName($connection = null)
12775 {
12776 /** @var \Illuminate\Queue\QueueManager $instance */
12777 return $instance->getName($connection);
12778 }
12779
12780 /**
12781 * Get the application instance used by the manager.
12782 *
12783 * @return \Illuminate\Contracts\Foundation\Application
12784 * @static
12785 */
12786 public static function getApplication()
12787 {
12788 /** @var \Illuminate\Queue\QueueManager $instance */
12789 return $instance->getApplication();
12790 }
12791
12792 /**
12793 * Set the application instance used by the manager.
12794 *
12795 * @param \Illuminate\Contracts\Foundation\Application $app
12796 * @return \Illuminate\Queue\QueueManager
12797 * @static
12798 */
12799 public static function setApplication($app)
12800 {
12801 /** @var \Illuminate\Queue\QueueManager $instance */
12802 return $instance->setApplication($app);
12803 }
12804
12805 /**
12806 * Specify the jobs that should be queued instead of faked.
12807 *
12808 * @param array|string $jobsToBeQueued
12809 * @return \Illuminate\Support\Testing\Fakes\QueueFake
12810 * @static
12811 */
12812 public static function except($jobsToBeQueued)
12813 {
12814 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12815 return $instance->except($jobsToBeQueued);
12816 }
12817
12818 /**
12819 * Assert if a job was pushed based on a truth-test callback.
12820 *
12821 * @param string|\Closure $job
12822 * @param callable|int|null $callback
12823 * @return void
12824 * @static
12825 */
12826 public static function assertPushed($job, $callback = null)
12827 {
12828 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12829 $instance->assertPushed($job, $callback);
12830 }
12831
12832 /**
12833 * Assert if a job was pushed based on a truth-test callback.
12834 *
12835 * @param string $queue
12836 * @param string|\Closure $job
12837 * @param callable|null $callback
12838 * @return void
12839 * @static
12840 */
12841 public static function assertPushedOn($queue, $job, $callback = null)
12842 {
12843 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12844 $instance->assertPushedOn($queue, $job, $callback);
12845 }
12846
12847 /**
12848 * Assert if a job was pushed with chained jobs based on a truth-test callback.
12849 *
12850 * @param string $job
12851 * @param array $expectedChain
12852 * @param callable|null $callback
12853 * @return void
12854 * @static
12855 */
12856 public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
12857 {
12858 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12859 $instance->assertPushedWithChain($job, $expectedChain, $callback);
12860 }
12861
12862 /**
12863 * Assert if a job was pushed with an empty chain based on a truth-test callback.
12864 *
12865 * @param string $job
12866 * @param callable|null $callback
12867 * @return void
12868 * @static
12869 */
12870 public static function assertPushedWithoutChain($job, $callback = null)
12871 {
12872 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12873 $instance->assertPushedWithoutChain($job, $callback);
12874 }
12875
12876 /**
12877 * Assert if a closure was pushed based on a truth-test callback.
12878 *
12879 * @param callable|int|null $callback
12880 * @return void
12881 * @static
12882 */
12883 public static function assertClosurePushed($callback = null)
12884 {
12885 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12886 $instance->assertClosurePushed($callback);
12887 }
12888
12889 /**
12890 * Assert that a closure was not pushed based on a truth-test callback.
12891 *
12892 * @param callable|null $callback
12893 * @return void
12894 * @static
12895 */
12896 public static function assertClosureNotPushed($callback = null)
12897 {
12898 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12899 $instance->assertClosureNotPushed($callback);
12900 }
12901
12902 /**
12903 * Determine if a job was pushed based on a truth-test callback.
12904 *
12905 * @param string|\Closure $job
12906 * @param callable|null $callback
12907 * @return void
12908 * @static
12909 */
12910 public static function assertNotPushed($job, $callback = null)
12911 {
12912 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12913 $instance->assertNotPushed($job, $callback);
12914 }
12915
12916 /**
12917 * Assert the total count of jobs that were pushed.
12918 *
12919 * @param int $expectedCount
12920 * @return void
12921 * @static
12922 */
12923 public static function assertCount($expectedCount)
12924 {
12925 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12926 $instance->assertCount($expectedCount);
12927 }
12928
12929 /**
12930 * Assert that no jobs were pushed.
12931 *
12932 * @return void
12933 * @static
12934 */
12935 public static function assertNothingPushed()
12936 {
12937 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12938 $instance->assertNothingPushed();
12939 }
12940
12941 /**
12942 * Get all of the jobs matching a truth-test callback.
12943 *
12944 * @param string $job
12945 * @param callable|null $callback
12946 * @return \Illuminate\Support\Collection
12947 * @static
12948 */
12949 public static function pushed($job, $callback = null)
12950 {
12951 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12952 return $instance->pushed($job, $callback);
12953 }
12954
12955 /**
12956 * Get all of the raw pushes matching a truth-test callback.
12957 *
12958 * @param null|\Closure(string, ?string, array): bool $callback
12959 * @return \Illuminate\Support\Collection<int, RawPushType>
12960 * @static
12961 */
12962 public static function pushedRaw($callback = null)
12963 {
12964 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12965 return $instance->pushedRaw($callback);
12966 }
12967
12968 /**
12969 * Get all of the jobs by listener class, passing an optional truth-test callback.
12970 *
12971 * @param class-string $listenerClass
12972 * @param (\Closure(mixed, \Illuminate\Events\CallQueuedListener, string|null, mixed): bool)|null $callback
12973 * @return \Illuminate\Support\Collection<int, \Illuminate\Events\CallQueuedListener>
12974 * @static
12975 */
12976 public static function listenersPushed($listenerClass, $callback = null)
12977 {
12978 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12979 return $instance->listenersPushed($listenerClass, $callback);
12980 }
12981
12982 /**
12983 * Determine if there are any stored jobs for a given class.
12984 *
12985 * @param string $job
12986 * @return bool
12987 * @static
12988 */
12989 public static function hasPushed($job)
12990 {
12991 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
12992 return $instance->hasPushed($job);
12993 }
12994
12995 /**
12996 * Get the size of the queue.
12997 *
12998 * @param string|null $queue
12999 * @return int
13000 * @static
13001 */
13002 public static function size($queue = null)
13003 {
13004 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13005 return $instance->size($queue);
13006 }
13007
13008 /**
13009 * Get the number of pending jobs.
13010 *
13011 * @param string|null $queue
13012 * @return int
13013 * @static
13014 */
13015 public static function pendingSize($queue = null)
13016 {
13017 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13018 return $instance->pendingSize($queue);
13019 }
13020
13021 /**
13022 * Get the number of delayed jobs.
13023 *
13024 * @param string|null $queue
13025 * @return int
13026 * @static
13027 */
13028 public static function delayedSize($queue = null)
13029 {
13030 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13031 return $instance->delayedSize($queue);
13032 }
13033
13034 /**
13035 * Get the number of reserved jobs.
13036 *
13037 * @param string|null $queue
13038 * @return int
13039 * @static
13040 */
13041 public static function reservedSize($queue = null)
13042 {
13043 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13044 return $instance->reservedSize($queue);
13045 }
13046
13047 /**
13048 * Get the creation timestamp of the oldest pending job, excluding delayed jobs.
13049 *
13050 * @param string|null $queue
13051 * @return int|null
13052 * @static
13053 */
13054 public static function creationTimeOfOldestPendingJob($queue = null)
13055 {
13056 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13057 return $instance->creationTimeOfOldestPendingJob($queue);
13058 }
13059
13060 /**
13061 * Push a new job onto the queue.
13062 *
13063 * @param string|object $job
13064 * @param mixed $data
13065 * @param string|null $queue
13066 * @return mixed
13067 * @static
13068 */
13069 public static function push($job, $data = '', $queue = null)
13070 {
13071 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13072 return $instance->push($job, $data, $queue);
13073 }
13074
13075 /**
13076 * Determine if a job should be faked or actually dispatched.
13077 *
13078 * @param object $job
13079 * @return bool
13080 * @static
13081 */
13082 public static function shouldFakeJob($job)
13083 {
13084 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13085 return $instance->shouldFakeJob($job);
13086 }
13087
13088 /**
13089 * Push a raw payload onto the queue.
13090 *
13091 * @param string $payload
13092 * @param string|null $queue
13093 * @param array $options
13094 * @return mixed
13095 * @static
13096 */
13097 public static function pushRaw($payload, $queue = null, $options = [])
13098 {
13099 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13100 return $instance->pushRaw($payload, $queue, $options);
13101 }
13102
13103 /**
13104 * Push a new job onto the queue after (n) seconds.
13105 *
13106 * @param \DateTimeInterface|\DateInterval|int $delay
13107 * @param string|object $job
13108 * @param mixed $data
13109 * @param string|null $queue
13110 * @return mixed
13111 * @static
13112 */
13113 public static function later($delay, $job, $data = '', $queue = null)
13114 {
13115 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13116 return $instance->later($delay, $job, $data, $queue);
13117 }
13118
13119 /**
13120 * Push a new job onto the queue.
13121 *
13122 * @param string $queue
13123 * @param string|object $job
13124 * @param mixed $data
13125 * @return mixed
13126 * @static
13127 */
13128 public static function pushOn($queue, $job, $data = '')
13129 {
13130 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13131 return $instance->pushOn($queue, $job, $data);
13132 }
13133
13134 /**
13135 * Push a new job onto a specific queue after (n) seconds.
13136 *
13137 * @param string $queue
13138 * @param \DateTimeInterface|\DateInterval|int $delay
13139 * @param string|object $job
13140 * @param mixed $data
13141 * @return mixed
13142 * @static
13143 */
13144 public static function laterOn($queue, $delay, $job, $data = '')
13145 {
13146 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13147 return $instance->laterOn($queue, $delay, $job, $data);
13148 }
13149
13150 /**
13151 * Pop the next job off of the queue.
13152 *
13153 * @param string|null $queue
13154 * @return \Illuminate\Contracts\Queue\Job|null
13155 * @static
13156 */
13157 public static function pop($queue = null)
13158 {
13159 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13160 return $instance->pop($queue);
13161 }
13162
13163 /**
13164 * Push an array of jobs onto the queue.
13165 *
13166 * @param array $jobs
13167 * @param mixed $data
13168 * @param string|null $queue
13169 * @return mixed
13170 * @static
13171 */
13172 public static function bulk($jobs, $data = '', $queue = null)
13173 {
13174 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13175 return $instance->bulk($jobs, $data, $queue);
13176 }
13177
13178 /**
13179 * Get the jobs that have been pushed.
13180 *
13181 * @return array
13182 * @static
13183 */
13184 public static function pushedJobs()
13185 {
13186 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13187 return $instance->pushedJobs();
13188 }
13189
13190 /**
13191 * Get the payloads that were pushed raw.
13192 *
13193 * @return list<RawPushType>
13194 * @static
13195 */
13196 public static function rawPushes()
13197 {
13198 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13199 return $instance->rawPushes();
13200 }
13201
13202 /**
13203 * Specify if jobs should be serialized and restored when being "pushed" to the queue.
13204 *
13205 * @param bool $serializeAndRestore
13206 * @return \Illuminate\Support\Testing\Fakes\QueueFake
13207 * @static
13208 */
13209 public static function serializeAndRestore($serializeAndRestore = true)
13210 {
13211 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13212 return $instance->serializeAndRestore($serializeAndRestore);
13213 }
13214
13215 /**
13216 * Get the connection name for the queue.
13217 *
13218 * @return string
13219 * @static
13220 */
13221 public static function getConnectionName()
13222 {
13223 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13224 return $instance->getConnectionName();
13225 }
13226
13227 /**
13228 * Set the connection name for the queue.
13229 *
13230 * @param string $name
13231 * @return \Illuminate\Support\Testing\Fakes\QueueFake
13232 * @static
13233 */
13234 public static function setConnectionName($name)
13235 {
13236 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
13237 return $instance->setConnectionName($name);
13238 }
13239
13240 /**
13241 * Release a reserved job back onto the queue after (n) seconds.
13242 *
13243 * @param string $queue
13244 * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job
13245 * @param int $delay
13246 * @return mixed
13247 * @static
13248 */
13249 public static function release($queue, $job, $delay)
13250 {
13251 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13252 return $instance->release($queue, $job, $delay);
13253 }
13254
13255 /**
13256 * Delete a reserved job from the queue.
13257 *
13258 * @param string $queue
13259 * @param string $id
13260 * @return void
13261 * @throws \Throwable
13262 * @static
13263 */
13264 public static function deleteReserved($queue, $id)
13265 {
13266 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13267 $instance->deleteReserved($queue, $id);
13268 }
13269
13270 /**
13271 * Delete a reserved job from the reserved queue and release it.
13272 *
13273 * @param string $queue
13274 * @param \Illuminate\Queue\Jobs\DatabaseJob $job
13275 * @param int $delay
13276 * @return void
13277 * @static
13278 */
13279 public static function deleteAndRelease($queue, $job, $delay)
13280 {
13281 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13282 $instance->deleteAndRelease($queue, $job, $delay);
13283 }
13284
13285 /**
13286 * Delete all of the jobs from the queue.
13287 *
13288 * @param string $queue
13289 * @return int
13290 * @static
13291 */
13292 public static function clear($queue)
13293 {
13294 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13295 return $instance->clear($queue);
13296 }
13297
13298 /**
13299 * Get the queue or return the default.
13300 *
13301 * @param string|null $queue
13302 * @return string
13303 * @static
13304 */
13305 public static function getQueue($queue)
13306 {
13307 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13308 return $instance->getQueue($queue);
13309 }
13310
13311 /**
13312 * Get the underlying database instance.
13313 *
13314 * @return \Illuminate\Database\Connection
13315 * @static
13316 */
13317 public static function getDatabase()
13318 {
13319 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13320 return $instance->getDatabase();
13321 }
13322
13323 /**
13324 * Get the maximum number of attempts for an object-based queue handler.
13325 *
13326 * @param mixed $job
13327 * @return mixed
13328 * @static
13329 */
13330 public static function getJobTries($job)
13331 {
13332 //Method inherited from \Illuminate\Queue\Queue
13333 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13334 return $instance->getJobTries($job);
13335 }
13336
13337 /**
13338 * Get the backoff for an object-based queue handler.
13339 *
13340 * @param mixed $job
13341 * @return mixed
13342 * @static
13343 */
13344 public static function getJobBackoff($job)
13345 {
13346 //Method inherited from \Illuminate\Queue\Queue
13347 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13348 return $instance->getJobBackoff($job);
13349 }
13350
13351 /**
13352 * Get the expiration timestamp for an object-based queue handler.
13353 *
13354 * @param mixed $job
13355 * @return mixed
13356 * @static
13357 */
13358 public static function getJobExpiration($job)
13359 {
13360 //Method inherited from \Illuminate\Queue\Queue
13361 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13362 return $instance->getJobExpiration($job);
13363 }
13364
13365 /**
13366 * Register a callback to be executed when creating job payloads.
13367 *
13368 * @param callable|null $callback
13369 * @return void
13370 * @static
13371 */
13372 public static function createPayloadUsing($callback)
13373 {
13374 //Method inherited from \Illuminate\Queue\Queue
13375 \Illuminate\Queue\DatabaseQueue::createPayloadUsing($callback);
13376 }
13377
13378 /**
13379 * Get the queue configuration array.
13380 *
13381 * @return array
13382 * @static
13383 */
13384 public static function getConfig()
13385 {
13386 //Method inherited from \Illuminate\Queue\Queue
13387 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13388 return $instance->getConfig();
13389 }
13390
13391 /**
13392 * Set the queue configuration array.
13393 *
13394 * @param array $config
13395 * @return \Illuminate\Queue\DatabaseQueue
13396 * @static
13397 */
13398 public static function setConfig($config)
13399 {
13400 //Method inherited from \Illuminate\Queue\Queue
13401 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13402 return $instance->setConfig($config);
13403 }
13404
13405 /**
13406 * Get the container instance being used by the connection.
13407 *
13408 * @return \Illuminate\Container\Container
13409 * @static
13410 */
13411 public static function getContainer()
13412 {
13413 //Method inherited from \Illuminate\Queue\Queue
13414 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13415 return $instance->getContainer();
13416 }
13417
13418 /**
13419 * Set the IoC container instance.
13420 *
13421 * @param \Illuminate\Container\Container $container
13422 * @return void
13423 * @static
13424 */
13425 public static function setContainer($container)
13426 {
13427 //Method inherited from \Illuminate\Queue\Queue
13428 /** @var \Illuminate\Queue\DatabaseQueue $instance */
13429 $instance->setContainer($container);
13430 }
13431
13432 }
13433 /**
13434 * @see \Illuminate\Cache\RateLimiter
13435 */
13436 class RateLimiter {
13437 /**
13438 * Register a named limiter configuration.
13439 *
13440 * @param \BackedEnum|\UnitEnum|string $name
13441 * @param \Closure $callback
13442 * @return \Illuminate\Cache\RateLimiter
13443 * @static
13444 */
13445 public static function for($name, $callback)
13446 {
13447 /** @var \Illuminate\Cache\RateLimiter $instance */
13448 return $instance->for($name, $callback);
13449 }
13450
13451 /**
13452 * Get the given named rate limiter.
13453 *
13454 * @param \BackedEnum|\UnitEnum|string $name
13455 * @return \Closure|null
13456 * @static
13457 */
13458 public static function limiter($name)
13459 {
13460 /** @var \Illuminate\Cache\RateLimiter $instance */
13461 return $instance->limiter($name);
13462 }
13463
13464 /**
13465 * Attempts to execute a callback if it's not limited.
13466 *
13467 * @param string $key
13468 * @param int $maxAttempts
13469 * @param \Closure $callback
13470 * @param \DateTimeInterface|\DateInterval|int $decaySeconds
13471 * @return mixed
13472 * @static
13473 */
13474 public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
13475 {
13476 /** @var \Illuminate\Cache\RateLimiter $instance */
13477 return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
13478 }
13479
13480 /**
13481 * Determine if the given key has been "accessed" too many times.
13482 *
13483 * @param string $key
13484 * @param int $maxAttempts
13485 * @return bool
13486 * @static
13487 */
13488 public static function tooManyAttempts($key, $maxAttempts)
13489 {
13490 /** @var \Illuminate\Cache\RateLimiter $instance */
13491 return $instance->tooManyAttempts($key, $maxAttempts);
13492 }
13493
13494 /**
13495 * Increment (by 1) the counter for a given key for a given decay time.
13496 *
13497 * @param string $key
13498 * @param \DateTimeInterface|\DateInterval|int $decaySeconds
13499 * @return int
13500 * @static
13501 */
13502 public static function hit($key, $decaySeconds = 60)
13503 {
13504 /** @var \Illuminate\Cache\RateLimiter $instance */
13505 return $instance->hit($key, $decaySeconds);
13506 }
13507
13508 /**
13509 * Increment the counter for a given key for a given decay time by a given amount.
13510 *
13511 * @param string $key
13512 * @param \DateTimeInterface|\DateInterval|int $decaySeconds
13513 * @param int $amount
13514 * @return int
13515 * @static
13516 */
13517 public static function increment($key, $decaySeconds = 60, $amount = 1)
13518 {
13519 /** @var \Illuminate\Cache\RateLimiter $instance */
13520 return $instance->increment($key, $decaySeconds, $amount);
13521 }
13522
13523 /**
13524 * Decrement the counter for a given key for a given decay time by a given amount.
13525 *
13526 * @param string $key
13527 * @param \DateTimeInterface|\DateInterval|int $decaySeconds
13528 * @param int $amount
13529 * @return int
13530 * @static
13531 */
13532 public static function decrement($key, $decaySeconds = 60, $amount = 1)
13533 {
13534 /** @var \Illuminate\Cache\RateLimiter $instance */
13535 return $instance->decrement($key, $decaySeconds, $amount);
13536 }
13537
13538 /**
13539 * Get the number of attempts for the given key.
13540 *
13541 * @param string $key
13542 * @return mixed
13543 * @static
13544 */
13545 public static function attempts($key)
13546 {
13547 /** @var \Illuminate\Cache\RateLimiter $instance */
13548 return $instance->attempts($key);
13549 }
13550
13551 /**
13552 * Reset the number of attempts for the given key.
13553 *
13554 * @param string $key
13555 * @return bool
13556 * @static
13557 */
13558 public static function resetAttempts($key)
13559 {
13560 /** @var \Illuminate\Cache\RateLimiter $instance */
13561 return $instance->resetAttempts($key);
13562 }
13563
13564 /**
13565 * Get the number of retries left for the given key.
13566 *
13567 * @param string $key
13568 * @param int $maxAttempts
13569 * @return int
13570 * @static
13571 */
13572 public static function remaining($key, $maxAttempts)
13573 {
13574 /** @var \Illuminate\Cache\RateLimiter $instance */
13575 return $instance->remaining($key, $maxAttempts);
13576 }
13577
13578 /**
13579 * Get the number of retries left for the given key.
13580 *
13581 * @param string $key
13582 * @param int $maxAttempts
13583 * @return int
13584 * @static
13585 */
13586 public static function retriesLeft($key, $maxAttempts)
13587 {
13588 /** @var \Illuminate\Cache\RateLimiter $instance */
13589 return $instance->retriesLeft($key, $maxAttempts);
13590 }
13591
13592 /**
13593 * Clear the hits and lockout timer for the given key.
13594 *
13595 * @param string $key
13596 * @return void
13597 * @static
13598 */
13599 public static function clear($key)
13600 {
13601 /** @var \Illuminate\Cache\RateLimiter $instance */
13602 $instance->clear($key);
13603 }
13604
13605 /**
13606 * Get the number of seconds until the "key" is accessible again.
13607 *
13608 * @param string $key
13609 * @return int
13610 * @static
13611 */
13612 public static function availableIn($key)
13613 {
13614 /** @var \Illuminate\Cache\RateLimiter $instance */
13615 return $instance->availableIn($key);
13616 }
13617
13618 /**
13619 * Clean the rate limiter key from unicode characters.
13620 *
13621 * @param string $key
13622 * @return string
13623 * @static
13624 */
13625 public static function cleanRateLimiterKey($key)
13626 {
13627 /** @var \Illuminate\Cache\RateLimiter $instance */
13628 return $instance->cleanRateLimiterKey($key);
13629 }
13630
13631 }
13632 /**
13633 * @see \Illuminate\Routing\Redirector
13634 */
13635 class Redirect {
13636 /**
13637 * Create a new redirect response to the previous location.
13638 *
13639 * @param int $status
13640 * @param array $headers
13641 * @param mixed $fallback
13642 * @return \Illuminate\Http\RedirectResponse
13643 * @static
13644 */
13645 public static function back($status = 302, $headers = [], $fallback = false)
13646 {
13647 /** @var \Illuminate\Routing\Redirector $instance */
13648 return $instance->back($status, $headers, $fallback);
13649 }
13650
13651 /**
13652 * Create a new redirect response to the current URI.
13653 *
13654 * @param int $status
13655 * @param array $headers
13656 * @return \Illuminate\Http\RedirectResponse
13657 * @static
13658 */
13659 public static function refresh($status = 302, $headers = [])
13660 {
13661 /** @var \Illuminate\Routing\Redirector $instance */
13662 return $instance->refresh($status, $headers);
13663 }
13664
13665 /**
13666 * Create a new redirect response, while putting the current URL in the session.
13667 *
13668 * @param string $path
13669 * @param int $status
13670 * @param array $headers
13671 * @param bool|null $secure
13672 * @return \Illuminate\Http\RedirectResponse
13673 * @static
13674 */
13675 public static function guest($path, $status = 302, $headers = [], $secure = null)
13676 {
13677 /** @var \Illuminate\Routing\Redirector $instance */
13678 return $instance->guest($path, $status, $headers, $secure);
13679 }
13680
13681 /**
13682 * Create a new redirect response to the previously intended location.
13683 *
13684 * @param mixed $default
13685 * @param int $status
13686 * @param array $headers
13687 * @param bool|null $secure
13688 * @return \Illuminate\Http\RedirectResponse
13689 * @static
13690 */
13691 public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
13692 {
13693 /** @var \Illuminate\Routing\Redirector $instance */
13694 return $instance->intended($default, $status, $headers, $secure);
13695 }
13696
13697 /**
13698 * Create a new redirect response to the given path.
13699 *
13700 * @param string $path
13701 * @param int $status
13702 * @param array $headers
13703 * @param bool|null $secure
13704 * @return \Illuminate\Http\RedirectResponse
13705 * @static
13706 */
13707 public static function to($path, $status = 302, $headers = [], $secure = null)
13708 {
13709 /** @var \Illuminate\Routing\Redirector $instance */
13710 return $instance->to($path, $status, $headers, $secure);
13711 }
13712
13713 /**
13714 * Create a new redirect response to an external URL (no validation).
13715 *
13716 * @param string $path
13717 * @param int $status
13718 * @param array $headers
13719 * @return \Illuminate\Http\RedirectResponse
13720 * @static
13721 */
13722 public static function away($path, $status = 302, $headers = [])
13723 {
13724 /** @var \Illuminate\Routing\Redirector $instance */
13725 return $instance->away($path, $status, $headers);
13726 }
13727
13728 /**
13729 * Create a new redirect response to the given HTTPS path.
13730 *
13731 * @param string $path
13732 * @param int $status
13733 * @param array $headers
13734 * @return \Illuminate\Http\RedirectResponse
13735 * @static
13736 */
13737 public static function secure($path, $status = 302, $headers = [])
13738 {
13739 /** @var \Illuminate\Routing\Redirector $instance */
13740 return $instance->secure($path, $status, $headers);
13741 }
13742
13743 /**
13744 * Create a new redirect response to a named route.
13745 *
13746 * @param \BackedEnum|string $route
13747 * @param mixed $parameters
13748 * @param int $status
13749 * @param array $headers
13750 * @return \Illuminate\Http\RedirectResponse
13751 * @static
13752 */
13753 public static function route($route, $parameters = [], $status = 302, $headers = [])
13754 {
13755 /** @var \Illuminate\Routing\Redirector $instance */
13756 return $instance->route($route, $parameters, $status, $headers);
13757 }
13758
13759 /**
13760 * Create a new redirect response to a signed named route.
13761 *
13762 * @param \BackedEnum|string $route
13763 * @param mixed $parameters
13764 * @param \DateTimeInterface|\DateInterval|int|null $expiration
13765 * @param int $status
13766 * @param array $headers
13767 * @return \Illuminate\Http\RedirectResponse
13768 * @static
13769 */
13770 public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
13771 {
13772 /** @var \Illuminate\Routing\Redirector $instance */
13773 return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
13774 }
13775
13776 /**
13777 * Create a new redirect response to a signed named route.
13778 *
13779 * @param \BackedEnum|string $route
13780 * @param \DateTimeInterface|\DateInterval|int|null $expiration
13781 * @param mixed $parameters
13782 * @param int $status
13783 * @param array $headers
13784 * @return \Illuminate\Http\RedirectResponse
13785 * @static
13786 */
13787 public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
13788 {
13789 /** @var \Illuminate\Routing\Redirector $instance */
13790 return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
13791 }
13792
13793 /**
13794 * Create a new redirect response to a controller action.
13795 *
13796 * @param string|array $action
13797 * @param mixed $parameters
13798 * @param int $status
13799 * @param array $headers
13800 * @return \Illuminate\Http\RedirectResponse
13801 * @static
13802 */
13803 public static function action($action, $parameters = [], $status = 302, $headers = [])
13804 {
13805 /** @var \Illuminate\Routing\Redirector $instance */
13806 return $instance->action($action, $parameters, $status, $headers);
13807 }
13808
13809 /**
13810 * Get the URL generator instance.
13811 *
13812 * @return \Illuminate\Routing\UrlGenerator
13813 * @static
13814 */
13815 public static function getUrlGenerator()
13816 {
13817 /** @var \Illuminate\Routing\Redirector $instance */
13818 return $instance->getUrlGenerator();
13819 }
13820
13821 /**
13822 * Set the active session store.
13823 *
13824 * @param \Illuminate\Session\Store $session
13825 * @return void
13826 * @static
13827 */
13828 public static function setSession($session)
13829 {
13830 /** @var \Illuminate\Routing\Redirector $instance */
13831 $instance->setSession($session);
13832 }
13833
13834 /**
13835 * Get the "intended" URL from the session.
13836 *
13837 * @return string|null
13838 * @static
13839 */
13840 public static function getIntendedUrl()
13841 {
13842 /** @var \Illuminate\Routing\Redirector $instance */
13843 return $instance->getIntendedUrl();
13844 }
13845
13846 /**
13847 * Set the "intended" URL in the session.
13848 *
13849 * @param string $url
13850 * @return \Illuminate\Routing\Redirector
13851 * @static
13852 */
13853 public static function setIntendedUrl($url)
13854 {
13855 /** @var \Illuminate\Routing\Redirector $instance */
13856 return $instance->setIntendedUrl($url);
13857 }
13858
13859 /**
13860 * Register a custom macro.
13861 *
13862 * @param string $name
13863 * @param object|callable $macro
13864 * @param-closure-this static $macro
13865 * @return void
13866 * @static
13867 */
13868 public static function macro($name, $macro)
13869 {
13870 \Illuminate\Routing\Redirector::macro($name, $macro);
13871 }
13872
13873 /**
13874 * Mix another object into the class.
13875 *
13876 * @param object $mixin
13877 * @param bool $replace
13878 * @return void
13879 * @throws \ReflectionException
13880 * @static
13881 */
13882 public static function mixin($mixin, $replace = true)
13883 {
13884 \Illuminate\Routing\Redirector::mixin($mixin, $replace);
13885 }
13886
13887 /**
13888 * Checks if macro is registered.
13889 *
13890 * @param string $name
13891 * @return bool
13892 * @static
13893 */
13894 public static function hasMacro($name)
13895 {
13896 return \Illuminate\Routing\Redirector::hasMacro($name);
13897 }
13898
13899 /**
13900 * Flush the existing macros.
13901 *
13902 * @return void
13903 * @static
13904 */
13905 public static function flushMacros()
13906 {
13907 \Illuminate\Routing\Redirector::flushMacros();
13908 }
13909
13910 }
13911 /**
13912 * @see \Illuminate\Http\Request
13913 */
13914 class Request {
13915 /**
13916 * Create a new Illuminate HTTP request from server variables.
13917 *
13918 * @return static
13919 * @static
13920 */
13921 public static function capture()
13922 {
13923 return \Illuminate\Http\Request::capture();
13924 }
13925
13926 /**
13927 * Return the Request instance.
13928 *
13929 * @return \Illuminate\Http\Request
13930 * @static
13931 */
13932 public static function instance()
13933 {
13934 /** @var \Illuminate\Http\Request $instance */
13935 return $instance->instance();
13936 }
13937
13938 /**
13939 * Get the request method.
13940 *
13941 * @return string
13942 * @static
13943 */
13944 public static function method()
13945 {
13946 /** @var \Illuminate\Http\Request $instance */
13947 return $instance->method();
13948 }
13949
13950 /**
13951 * Get a URI instance for the request.
13952 *
13953 * @return \Illuminate\Support\Uri
13954 * @static
13955 */
13956 public static function uri()
13957 {
13958 /** @var \Illuminate\Http\Request $instance */
13959 return $instance->uri();
13960 }
13961
13962 /**
13963 * Get the root URL for the application.
13964 *
13965 * @return string
13966 * @static
13967 */
13968 public static function root()
13969 {
13970 /** @var \Illuminate\Http\Request $instance */
13971 return $instance->root();
13972 }
13973
13974 /**
13975 * Get the URL (no query string) for the request.
13976 *
13977 * @return string
13978 * @static
13979 */
13980 public static function url()
13981 {
13982 /** @var \Illuminate\Http\Request $instance */
13983 return $instance->url();
13984 }
13985
13986 /**
13987 * Get the full URL for the request.
13988 *
13989 * @return string
13990 * @static
13991 */
13992 public static function fullUrl()
13993 {
13994 /** @var \Illuminate\Http\Request $instance */
13995 return $instance->fullUrl();
13996 }
13997
13998 /**
13999 * Get the full URL for the request with the added query string parameters.
14000 *
14001 * @param array $query
14002 * @return string
14003 * @static
14004 */
14005 public static function fullUrlWithQuery($query)
14006 {
14007 /** @var \Illuminate\Http\Request $instance */
14008 return $instance->fullUrlWithQuery($query);
14009 }
14010
14011 /**
14012 * Get the full URL for the request without the given query string parameters.
14013 *
14014 * @param array|string $keys
14015 * @return string
14016 * @static
14017 */
14018 public static function fullUrlWithoutQuery($keys)
14019 {
14020 /** @var \Illuminate\Http\Request $instance */
14021 return $instance->fullUrlWithoutQuery($keys);
14022 }
14023
14024 /**
14025 * Get the current path info for the request.
14026 *
14027 * @return string
14028 * @static
14029 */
14030 public static function path()
14031 {
14032 /** @var \Illuminate\Http\Request $instance */
14033 return $instance->path();
14034 }
14035
14036 /**
14037 * Get the current decoded path info for the request.
14038 *
14039 * @return string
14040 * @static
14041 */
14042 public static function decodedPath()
14043 {
14044 /** @var \Illuminate\Http\Request $instance */
14045 return $instance->decodedPath();
14046 }
14047
14048 /**
14049 * Get a segment from the URI (1 based index).
14050 *
14051 * @param int $index
14052 * @param string|null $default
14053 * @return string|null
14054 * @static
14055 */
14056 public static function segment($index, $default = null)
14057 {
14058 /** @var \Illuminate\Http\Request $instance */
14059 return $instance->segment($index, $default);
14060 }
14061
14062 /**
14063 * Get all of the segments for the request path.
14064 *
14065 * @return array
14066 * @static
14067 */
14068 public static function segments()
14069 {
14070 /** @var \Illuminate\Http\Request $instance */
14071 return $instance->segments();
14072 }
14073
14074 /**
14075 * Determine if the current request URI matches a pattern.
14076 *
14077 * @param mixed $patterns
14078 * @return bool
14079 * @static
14080 */
14081 public static function is(...$patterns)
14082 {
14083 /** @var \Illuminate\Http\Request $instance */
14084 return $instance->is(...$patterns);
14085 }
14086
14087 /**
14088 * Determine if the route name matches a given pattern.
14089 *
14090 * @param mixed $patterns
14091 * @return bool
14092 * @static
14093 */
14094 public static function routeIs(...$patterns)
14095 {
14096 /** @var \Illuminate\Http\Request $instance */
14097 return $instance->routeIs(...$patterns);
14098 }
14099
14100 /**
14101 * Determine if the current request URL and query string match a pattern.
14102 *
14103 * @param mixed $patterns
14104 * @return bool
14105 * @static
14106 */
14107 public static function fullUrlIs(...$patterns)
14108 {
14109 /** @var \Illuminate\Http\Request $instance */
14110 return $instance->fullUrlIs(...$patterns);
14111 }
14112
14113 /**
14114 * Get the host name.
14115 *
14116 * @return string
14117 * @static
14118 */
14119 public static function host()
14120 {
14121 /** @var \Illuminate\Http\Request $instance */
14122 return $instance->host();
14123 }
14124
14125 /**
14126 * Get the HTTP host being requested.
14127 *
14128 * @return string
14129 * @static
14130 */
14131 public static function httpHost()
14132 {
14133 /** @var \Illuminate\Http\Request $instance */
14134 return $instance->httpHost();
14135 }
14136
14137 /**
14138 * Get the scheme and HTTP host.
14139 *
14140 * @return string
14141 * @static
14142 */
14143 public static function schemeAndHttpHost()
14144 {
14145 /** @var \Illuminate\Http\Request $instance */
14146 return $instance->schemeAndHttpHost();
14147 }
14148
14149 /**
14150 * Determine if the request is the result of an AJAX call.
14151 *
14152 * @return bool
14153 * @static
14154 */
14155 public static function ajax()
14156 {
14157 /** @var \Illuminate\Http\Request $instance */
14158 return $instance->ajax();
14159 }
14160
14161 /**
14162 * Determine if the request is the result of a PJAX call.
14163 *
14164 * @return bool
14165 * @static
14166 */
14167 public static function pjax()
14168 {
14169 /** @var \Illuminate\Http\Request $instance */
14170 return $instance->pjax();
14171 }
14172
14173 /**
14174 * Determine if the request is the result of a prefetch call.
14175 *
14176 * @return bool
14177 * @static
14178 */
14179 public static function prefetch()
14180 {
14181 /** @var \Illuminate\Http\Request $instance */
14182 return $instance->prefetch();
14183 }
14184
14185 /**
14186 * Determine if the request is over HTTPS.
14187 *
14188 * @return bool
14189 * @static
14190 */
14191 public static function secure()
14192 {
14193 /** @var \Illuminate\Http\Request $instance */
14194 return $instance->secure();
14195 }
14196
14197 /**
14198 * Get the client IP address.
14199 *
14200 * @return string|null
14201 * @static
14202 */
14203 public static function ip()
14204 {
14205 /** @var \Illuminate\Http\Request $instance */
14206 return $instance->ip();
14207 }
14208
14209 /**
14210 * Get the client IP addresses.
14211 *
14212 * @return array
14213 * @static
14214 */
14215 public static function ips()
14216 {
14217 /** @var \Illuminate\Http\Request $instance */
14218 return $instance->ips();
14219 }
14220
14221 /**
14222 * Get the client user agent.
14223 *
14224 * @return string|null
14225 * @static
14226 */
14227 public static function userAgent()
14228 {
14229 /** @var \Illuminate\Http\Request $instance */
14230 return $instance->userAgent();
14231 }
14232
14233 /**
14234 * Merge new input into the current request's input array.
14235 *
14236 * @param array $input
14237 * @return \Illuminate\Http\Request
14238 * @static
14239 */
14240 public static function merge($input)
14241 {
14242 /** @var \Illuminate\Http\Request $instance */
14243 return $instance->merge($input);
14244 }
14245
14246 /**
14247 * Merge new input into the request's input, but only when that key is missing from the request.
14248 *
14249 * @param array $input
14250 * @return \Illuminate\Http\Request
14251 * @static
14252 */
14253 public static function mergeIfMissing($input)
14254 {
14255 /** @var \Illuminate\Http\Request $instance */
14256 return $instance->mergeIfMissing($input);
14257 }
14258
14259 /**
14260 * Replace the input values for the current request.
14261 *
14262 * @param array $input
14263 * @return \Illuminate\Http\Request
14264 * @static
14265 */
14266 public static function replace($input)
14267 {
14268 /** @var \Illuminate\Http\Request $instance */
14269 return $instance->replace($input);
14270 }
14271
14272 /**
14273 * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
14274 *
14275 * Instead, you may use the "input" method.
14276 *
14277 * @param string $key
14278 * @param mixed $default
14279 * @return mixed
14280 * @static
14281 */
14282 public static function get($key, $default = null)
14283 {
14284 /** @var \Illuminate\Http\Request $instance */
14285 return $instance->get($key, $default);
14286 }
14287
14288 /**
14289 * Get the JSON payload for the request.
14290 *
14291 * @param string|null $key
14292 * @param mixed $default
14293 * @return ($key is null ? \Symfony\Component\HttpFoundation\InputBag : mixed)
14294 * @static
14295 */
14296 public static function json($key = null, $default = null)
14297 {
14298 /** @var \Illuminate\Http\Request $instance */
14299 return $instance->json($key, $default);
14300 }
14301
14302 /**
14303 * Create a new request instance from the given Laravel request.
14304 *
14305 * @param \Illuminate\Http\Request $from
14306 * @param \Illuminate\Http\Request|null $to
14307 * @return static
14308 * @static
14309 */
14310 public static function createFrom($from, $to = null)
14311 {
14312 return \Illuminate\Http\Request::createFrom($from, $to);
14313 }
14314
14315 /**
14316 * Create an Illuminate request from a Symfony instance.
14317 *
14318 * @param \Symfony\Component\HttpFoundation\Request $request
14319 * @return static
14320 * @static
14321 */
14322 public static function createFromBase($request)
14323 {
14324 return \Illuminate\Http\Request::createFromBase($request);
14325 }
14326
14327 /**
14328 * Clones a request and overrides some of its parameters.
14329 *
14330 * @return static
14331 * @param array|null $query The GET parameters
14332 * @param array|null $request The POST parameters
14333 * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
14334 * @param array|null $cookies The COOKIE parameters
14335 * @param array|null $files The FILES parameters
14336 * @param array|null $server The SERVER parameters
14337 * @static
14338 */
14339 public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
14340 {
14341 /** @var \Illuminate\Http\Request $instance */
14342 return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
14343 }
14344
14345 /**
14346 * Whether the request contains a Session object.
14347 *
14348 * This method does not give any information about the state of the session object,
14349 * like whether the session is started or not. It is just a way to check if this Request
14350 * is associated with a Session instance.
14351 *
14352 * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
14353 * @static
14354 */
14355 public static function hasSession($skipIfUninitialized = false)
14356 {
14357 /** @var \Illuminate\Http\Request $instance */
14358 return $instance->hasSession($skipIfUninitialized);
14359 }
14360
14361 /**
14362 * Gets the Session.
14363 *
14364 * @throws SessionNotFoundException When session is not set properly
14365 * @static
14366 */
14367 public static function getSession()
14368 {
14369 /** @var \Illuminate\Http\Request $instance */
14370 return $instance->getSession();
14371 }
14372
14373 /**
14374 * Get the session associated with the request.
14375 *
14376 * @return \Illuminate\Contracts\Session\Session
14377 * @throws \RuntimeException
14378 * @static
14379 */
14380 public static function session()
14381 {
14382 /** @var \Illuminate\Http\Request $instance */
14383 return $instance->session();
14384 }
14385
14386 /**
14387 * Set the session instance on the request.
14388 *
14389 * @param \Illuminate\Contracts\Session\Session $session
14390 * @return void
14391 * @static
14392 */
14393 public static function setLaravelSession($session)
14394 {
14395 /** @var \Illuminate\Http\Request $instance */
14396 $instance->setLaravelSession($session);
14397 }
14398
14399 /**
14400 * Set the locale for the request instance.
14401 *
14402 * @param string $locale
14403 * @return void
14404 * @static
14405 */
14406 public static function setRequestLocale($locale)
14407 {
14408 /** @var \Illuminate\Http\Request $instance */
14409 $instance->setRequestLocale($locale);
14410 }
14411
14412 /**
14413 * Set the default locale for the request instance.
14414 *
14415 * @param string $locale
14416 * @return void
14417 * @static
14418 */
14419 public static function setDefaultRequestLocale($locale)
14420 {
14421 /** @var \Illuminate\Http\Request $instance */
14422 $instance->setDefaultRequestLocale($locale);
14423 }
14424
14425 /**
14426 * Get the user making the request.
14427 *
14428 * @param string|null $guard
14429 * @return mixed
14430 * @static
14431 */
14432 public static function user($guard = null)
14433 {
14434 /** @var \Illuminate\Http\Request $instance */
14435 return $instance->user($guard);
14436 }
14437
14438 /**
14439 * Get the route handling the request.
14440 *
14441 * @param string|null $param
14442 * @param mixed $default
14443 * @return ($param is null ? \Illuminate\Routing\Route : object|string|null)
14444 * @static
14445 */
14446 public static function route($param = null, $default = null)
14447 {
14448 /** @var \Illuminate\Http\Request $instance */
14449 return $instance->route($param, $default);
14450 }
14451
14452 /**
14453 * Get a unique fingerprint for the request / route / IP address.
14454 *
14455 * @return string
14456 * @throws \RuntimeException
14457 * @static
14458 */
14459 public static function fingerprint()
14460 {
14461 /** @var \Illuminate\Http\Request $instance */
14462 return $instance->fingerprint();
14463 }
14464
14465 /**
14466 * Set the JSON payload for the request.
14467 *
14468 * @param \Symfony\Component\HttpFoundation\InputBag $json
14469 * @return \Illuminate\Http\Request
14470 * @static
14471 */
14472 public static function setJson($json)
14473 {
14474 /** @var \Illuminate\Http\Request $instance */
14475 return $instance->setJson($json);
14476 }
14477
14478 /**
14479 * Get the user resolver callback.
14480 *
14481 * @return \Closure
14482 * @static
14483 */
14484 public static function getUserResolver()
14485 {
14486 /** @var \Illuminate\Http\Request $instance */
14487 return $instance->getUserResolver();
14488 }
14489
14490 /**
14491 * Set the user resolver callback.
14492 *
14493 * @param \Closure $callback
14494 * @return \Illuminate\Http\Request
14495 * @static
14496 */
14497 public static function setUserResolver($callback)
14498 {
14499 /** @var \Illuminate\Http\Request $instance */
14500 return $instance->setUserResolver($callback);
14501 }
14502
14503 /**
14504 * Get the route resolver callback.
14505 *
14506 * @return \Closure
14507 * @static
14508 */
14509 public static function getRouteResolver()
14510 {
14511 /** @var \Illuminate\Http\Request $instance */
14512 return $instance->getRouteResolver();
14513 }
14514
14515 /**
14516 * Set the route resolver callback.
14517 *
14518 * @param \Closure $callback
14519 * @return \Illuminate\Http\Request
14520 * @static
14521 */
14522 public static function setRouteResolver($callback)
14523 {
14524 /** @var \Illuminate\Http\Request $instance */
14525 return $instance->setRouteResolver($callback);
14526 }
14527
14528 /**
14529 * Get all of the input and files for the request.
14530 *
14531 * @return array
14532 * @static
14533 */
14534 public static function toArray()
14535 {
14536 /** @var \Illuminate\Http\Request $instance */
14537 return $instance->toArray();
14538 }
14539
14540 /**
14541 * Determine if the given offset exists.
14542 *
14543 * @param string $offset
14544 * @return bool
14545 * @static
14546 */
14547 public static function offsetExists($offset)
14548 {
14549 /** @var \Illuminate\Http\Request $instance */
14550 return $instance->offsetExists($offset);
14551 }
14552
14553 /**
14554 * Get the value at the given offset.
14555 *
14556 * @param string $offset
14557 * @return mixed
14558 * @static
14559 */
14560 public static function offsetGet($offset)
14561 {
14562 /** @var \Illuminate\Http\Request $instance */
14563 return $instance->offsetGet($offset);
14564 }
14565
14566 /**
14567 * Set the value at the given offset.
14568 *
14569 * @param string $offset
14570 * @param mixed $value
14571 * @return void
14572 * @static
14573 */
14574 public static function offsetSet($offset, $value)
14575 {
14576 /** @var \Illuminate\Http\Request $instance */
14577 $instance->offsetSet($offset, $value);
14578 }
14579
14580 /**
14581 * Remove the value at the given offset.
14582 *
14583 * @param string $offset
14584 * @return void
14585 * @static
14586 */
14587 public static function offsetUnset($offset)
14588 {
14589 /** @var \Illuminate\Http\Request $instance */
14590 $instance->offsetUnset($offset);
14591 }
14592
14593 /**
14594 * Sets the parameters for this request.
14595 *
14596 * This method also re-initializes all properties.
14597 *
14598 * @param array $query The GET parameters
14599 * @param array $request The POST parameters
14600 * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
14601 * @param array $cookies The COOKIE parameters
14602 * @param array $files The FILES parameters
14603 * @param array $server The SERVER parameters
14604 * @param string|resource|null $content The raw body data
14605 * @static
14606 */
14607 public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
14608 {
14609 //Method inherited from \Symfony\Component\HttpFoundation\Request
14610 /** @var \Illuminate\Http\Request $instance */
14611 return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
14612 }
14613
14614 /**
14615 * Creates a new request with values from PHP's super globals.
14616 *
14617 * @static
14618 */
14619 public static function createFromGlobals()
14620 {
14621 //Method inherited from \Symfony\Component\HttpFoundation\Request
14622 return \Illuminate\Http\Request::createFromGlobals();
14623 }
14624
14625 /**
14626 * Creates a Request based on a given URI and configuration.
14627 *
14628 * The information contained in the URI always take precedence
14629 * over the other information (server and parameters).
14630 *
14631 * @param string $uri The URI
14632 * @param string $method The HTTP method
14633 * @param array $parameters The query (GET) or request (POST) parameters
14634 * @param array $cookies The request cookies ($_COOKIE)
14635 * @param array $files The request files ($_FILES)
14636 * @param array $server The server parameters ($_SERVER)
14637 * @param string|resource|null $content The raw body data
14638 * @throws BadRequestException When the URI is invalid
14639 * @static
14640 */
14641 public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
14642 {
14643 //Method inherited from \Symfony\Component\HttpFoundation\Request
14644 return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
14645 }
14646
14647 /**
14648 * Sets a callable able to create a Request instance.
14649 *
14650 * This is mainly useful when you need to override the Request class
14651 * to keep BC with an existing system. It should not be used for any
14652 * other purpose.
14653 *
14654 * @static
14655 */
14656 public static function setFactory($callable)
14657 {
14658 //Method inherited from \Symfony\Component\HttpFoundation\Request
14659 return \Illuminate\Http\Request::setFactory($callable);
14660 }
14661
14662 /**
14663 * Overrides the PHP global variables according to this request instance.
14664 *
14665 * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
14666 * $_FILES is never overridden, see rfc1867
14667 *
14668 * @static
14669 */
14670 public static function overrideGlobals()
14671 {
14672 //Method inherited from \Symfony\Component\HttpFoundation\Request
14673 /** @var \Illuminate\Http\Request $instance */
14674 return $instance->overrideGlobals();
14675 }
14676
14677 /**
14678 * Sets a list of trusted proxies.
14679 *
14680 * You should only list the reverse proxies that you manage directly.
14681 *
14682 * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR'] and 'PRIVATE_SUBNETS' by IpUtils::PRIVATE_SUBNETS
14683 * @param int-mask-of<Request::HEADER_*> $trustedHeaderSet A bit field to set which headers to trust from your proxies
14684 * @static
14685 */
14686 public static function setTrustedProxies($proxies, $trustedHeaderSet)
14687 {
14688 //Method inherited from \Symfony\Component\HttpFoundation\Request
14689 return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
14690 }
14691
14692 /**
14693 * Gets the list of trusted proxies.
14694 *
14695 * @return string[]
14696 * @static
14697 */
14698 public static function getTrustedProxies()
14699 {
14700 //Method inherited from \Symfony\Component\HttpFoundation\Request
14701 return \Illuminate\Http\Request::getTrustedProxies();
14702 }
14703
14704 /**
14705 * Gets the set of trusted headers from trusted proxies.
14706 *
14707 * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
14708 * @static
14709 */
14710 public static function getTrustedHeaderSet()
14711 {
14712 //Method inherited from \Symfony\Component\HttpFoundation\Request
14713 return \Illuminate\Http\Request::getTrustedHeaderSet();
14714 }
14715
14716 /**
14717 * Sets a list of trusted host patterns.
14718 *
14719 * You should only list the hosts you manage using regexs.
14720 *
14721 * @param array $hostPatterns A list of trusted host patterns
14722 * @static
14723 */
14724 public static function setTrustedHosts($hostPatterns)
14725 {
14726 //Method inherited from \Symfony\Component\HttpFoundation\Request
14727 return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
14728 }
14729
14730 /**
14731 * Gets the list of trusted host patterns.
14732 *
14733 * @return string[]
14734 * @static
14735 */
14736 public static function getTrustedHosts()
14737 {
14738 //Method inherited from \Symfony\Component\HttpFoundation\Request
14739 return \Illuminate\Http\Request::getTrustedHosts();
14740 }
14741
14742 /**
14743 * Normalizes a query string.
14744 *
14745 * It builds a normalized query string, where keys/value pairs are alphabetized,
14746 * have consistent escaping and unneeded delimiters are removed.
14747 *
14748 * @static
14749 */
14750 public static function normalizeQueryString($qs)
14751 {
14752 //Method inherited from \Symfony\Component\HttpFoundation\Request
14753 return \Illuminate\Http\Request::normalizeQueryString($qs);
14754 }
14755
14756 /**
14757 * Enables support for the _method request parameter to determine the intended HTTP method.
14758 *
14759 * Be warned that enabling this feature might lead to CSRF issues in your code.
14760 * Check that you are using CSRF tokens when required.
14761 * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
14762 * and used to send a "PUT" or "DELETE" request via the _method request parameter.
14763 * If these methods are not protected against CSRF, this presents a possible vulnerability.
14764 *
14765 * The HTTP method can only be overridden when the real HTTP method is POST.
14766 *
14767 * @static
14768 */
14769 public static function enableHttpMethodParameterOverride()
14770 {
14771 //Method inherited from \Symfony\Component\HttpFoundation\Request
14772 return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
14773 }
14774
14775 /**
14776 * Checks whether support for the _method request parameter is enabled.
14777 *
14778 * @static
14779 */
14780 public static function getHttpMethodParameterOverride()
14781 {
14782 //Method inherited from \Symfony\Component\HttpFoundation\Request
14783 return \Illuminate\Http\Request::getHttpMethodParameterOverride();
14784 }
14785
14786 /**
14787 * Whether the request contains a Session which was started in one of the
14788 * previous requests.
14789 *
14790 * @static
14791 */
14792 public static function hasPreviousSession()
14793 {
14794 //Method inherited from \Symfony\Component\HttpFoundation\Request
14795 /** @var \Illuminate\Http\Request $instance */
14796 return $instance->hasPreviousSession();
14797 }
14798
14799 /**
14800 * @static
14801 */
14802 public static function setSession($session)
14803 {
14804 //Method inherited from \Symfony\Component\HttpFoundation\Request
14805 /** @var \Illuminate\Http\Request $instance */
14806 return $instance->setSession($session);
14807 }
14808
14809 /**
14810 * @internal
14811 * @param callable(): SessionInterface $factory
14812 * @static
14813 */
14814 public static function setSessionFactory($factory)
14815 {
14816 //Method inherited from \Symfony\Component\HttpFoundation\Request
14817 /** @var \Illuminate\Http\Request $instance */
14818 return $instance->setSessionFactory($factory);
14819 }
14820
14821 /**
14822 * Returns the client IP addresses.
14823 *
14824 * In the returned array the most trusted IP address is first, and the
14825 * least trusted one last. The "real" client IP address is the last one,
14826 * but this is also the least trusted one. Trusted proxies are stripped.
14827 *
14828 * Use this method carefully; you should use getClientIp() instead.
14829 *
14830 * @see getClientIp()
14831 * @static
14832 */
14833 public static function getClientIps()
14834 {
14835 //Method inherited from \Symfony\Component\HttpFoundation\Request
14836 /** @var \Illuminate\Http\Request $instance */
14837 return $instance->getClientIps();
14838 }
14839
14840 /**
14841 * Returns the client IP address.
14842 *
14843 * This method can read the client IP address from the "X-Forwarded-For" header
14844 * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
14845 * header value is a comma+space separated list of IP addresses, the left-most
14846 * being the original client, and each successive proxy that passed the request
14847 * adding the IP address where it received the request from.
14848 *
14849 * If your reverse proxy uses a different header name than "X-Forwarded-For",
14850 * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
14851 * argument of the Request::setTrustedProxies() method instead.
14852 *
14853 * @see getClientIps()
14854 * @see https://wikipedia.org/wiki/X-Forwarded-For
14855 * @static
14856 */
14857 public static function getClientIp()
14858 {
14859 //Method inherited from \Symfony\Component\HttpFoundation\Request
14860 /** @var \Illuminate\Http\Request $instance */
14861 return $instance->getClientIp();
14862 }
14863
14864 /**
14865 * Returns current script name.
14866 *
14867 * @static
14868 */
14869 public static function getScriptName()
14870 {
14871 //Method inherited from \Symfony\Component\HttpFoundation\Request
14872 /** @var \Illuminate\Http\Request $instance */
14873 return $instance->getScriptName();
14874 }
14875
14876 /**
14877 * Returns the path being requested relative to the executed script.
14878 *
14879 * The path info always starts with a /.
14880 *
14881 * Suppose this request is instantiated from /mysite on localhost:
14882 *
14883 * * http://localhost/mysite returns an empty string
14884 * * http://localhost/mysite/about returns '/about'
14885 * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
14886 * * http://localhost/mysite/about?var=1 returns '/about'
14887 *
14888 * @return string The raw path (i.e. not urldecoded)
14889 * @static
14890 */
14891 public static function getPathInfo()
14892 {
14893 //Method inherited from \Symfony\Component\HttpFoundation\Request
14894 /** @var \Illuminate\Http\Request $instance */
14895 return $instance->getPathInfo();
14896 }
14897
14898 /**
14899 * Returns the root path from which this request is executed.
14900 *
14901 * Suppose that an index.php file instantiates this request object:
14902 *
14903 * * http://localhost/index.php returns an empty string
14904 * * http://localhost/index.php/page returns an empty string
14905 * * http://localhost/web/index.php returns '/web'
14906 * * http://localhost/we%20b/index.php returns '/we%20b'
14907 *
14908 * @return string The raw path (i.e. not urldecoded)
14909 * @static
14910 */
14911 public static function getBasePath()
14912 {
14913 //Method inherited from \Symfony\Component\HttpFoundation\Request
14914 /** @var \Illuminate\Http\Request $instance */
14915 return $instance->getBasePath();
14916 }
14917
14918 /**
14919 * Returns the root URL from which this request is executed.
14920 *
14921 * The base URL never ends with a /.
14922 *
14923 * This is similar to getBasePath(), except that it also includes the
14924 * script filename (e.g. index.php) if one exists.
14925 *
14926 * @return string The raw URL (i.e. not urldecoded)
14927 * @static
14928 */
14929 public static function getBaseUrl()
14930 {
14931 //Method inherited from \Symfony\Component\HttpFoundation\Request
14932 /** @var \Illuminate\Http\Request $instance */
14933 return $instance->getBaseUrl();
14934 }
14935
14936 /**
14937 * Gets the request's scheme.
14938 *
14939 * @static
14940 */
14941 public static function getScheme()
14942 {
14943 //Method inherited from \Symfony\Component\HttpFoundation\Request
14944 /** @var \Illuminate\Http\Request $instance */
14945 return $instance->getScheme();
14946 }
14947
14948 /**
14949 * Returns the port on which the request is made.
14950 *
14951 * This method can read the client port from the "X-Forwarded-Port" header
14952 * when trusted proxies were set via "setTrustedProxies()".
14953 *
14954 * The "X-Forwarded-Port" header must contain the client port.
14955 *
14956 * @return int|string|null Can be a string if fetched from the server bag
14957 * @static
14958 */
14959 public static function getPort()
14960 {
14961 //Method inherited from \Symfony\Component\HttpFoundation\Request
14962 /** @var \Illuminate\Http\Request $instance */
14963 return $instance->getPort();
14964 }
14965
14966 /**
14967 * Returns the user.
14968 *
14969 * @static
14970 */
14971 public static function getUser()
14972 {
14973 //Method inherited from \Symfony\Component\HttpFoundation\Request
14974 /** @var \Illuminate\Http\Request $instance */
14975 return $instance->getUser();
14976 }
14977
14978 /**
14979 * Returns the password.
14980 *
14981 * @static
14982 */
14983 public static function getPassword()
14984 {
14985 //Method inherited from \Symfony\Component\HttpFoundation\Request
14986 /** @var \Illuminate\Http\Request $instance */
14987 return $instance->getPassword();
14988 }
14989
14990 /**
14991 * Gets the user info.
14992 *
14993 * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
14994 * @static
14995 */
14996 public static function getUserInfo()
14997 {
14998 //Method inherited from \Symfony\Component\HttpFoundation\Request
14999 /** @var \Illuminate\Http\Request $instance */
15000 return $instance->getUserInfo();
15001 }
15002
15003 /**
15004 * Returns the HTTP host being requested.
15005 *
15006 * The port name will be appended to the host if it's non-standard.
15007 *
15008 * @static
15009 */
15010 public static function getHttpHost()
15011 {
15012 //Method inherited from \Symfony\Component\HttpFoundation\Request
15013 /** @var \Illuminate\Http\Request $instance */
15014 return $instance->getHttpHost();
15015 }
15016
15017 /**
15018 * Returns the requested URI (path and query string).
15019 *
15020 * @return string The raw URI (i.e. not URI decoded)
15021 * @static
15022 */
15023 public static function getRequestUri()
15024 {
15025 //Method inherited from \Symfony\Component\HttpFoundation\Request
15026 /** @var \Illuminate\Http\Request $instance */
15027 return $instance->getRequestUri();
15028 }
15029
15030 /**
15031 * Gets the scheme and HTTP host.
15032 *
15033 * If the URL was called with basic authentication, the user
15034 * and the password are not added to the generated string.
15035 *
15036 * @static
15037 */
15038 public static function getSchemeAndHttpHost()
15039 {
15040 //Method inherited from \Symfony\Component\HttpFoundation\Request
15041 /** @var \Illuminate\Http\Request $instance */
15042 return $instance->getSchemeAndHttpHost();
15043 }
15044
15045 /**
15046 * Generates a normalized URI (URL) for the Request.
15047 *
15048 * @see getQueryString()
15049 * @static
15050 */
15051 public static function getUri()
15052 {
15053 //Method inherited from \Symfony\Component\HttpFoundation\Request
15054 /** @var \Illuminate\Http\Request $instance */
15055 return $instance->getUri();
15056 }
15057
15058 /**
15059 * Generates a normalized URI for the given path.
15060 *
15061 * @param string $path A path to use instead of the current one
15062 * @static
15063 */
15064 public static function getUriForPath($path)
15065 {
15066 //Method inherited from \Symfony\Component\HttpFoundation\Request
15067 /** @var \Illuminate\Http\Request $instance */
15068 return $instance->getUriForPath($path);
15069 }
15070
15071 /**
15072 * Returns the path as relative reference from the current Request path.
15073 *
15074 * Only the URIs path component (no schema, host etc.) is relevant and must be given.
15075 * Both paths must be absolute and not contain relative parts.
15076 * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
15077 * Furthermore, they can be used to reduce the link size in documents.
15078 *
15079 * Example target paths, given a base path of "/a/b/c/d":
15080 * - "/a/b/c/d" -> ""
15081 * - "/a/b/c/" -> "./"
15082 * - "/a/b/" -> "../"
15083 * - "/a/b/c/other" -> "other"
15084 * - "/a/x/y" -> "../../x/y"
15085 *
15086 * @static
15087 */
15088 public static function getRelativeUriForPath($path)
15089 {
15090 //Method inherited from \Symfony\Component\HttpFoundation\Request
15091 /** @var \Illuminate\Http\Request $instance */
15092 return $instance->getRelativeUriForPath($path);
15093 }
15094
15095 /**
15096 * Generates the normalized query string for the Request.
15097 *
15098 * It builds a normalized query string, where keys/value pairs are alphabetized
15099 * and have consistent escaping.
15100 *
15101 * @static
15102 */
15103 public static function getQueryString()
15104 {
15105 //Method inherited from \Symfony\Component\HttpFoundation\Request
15106 /** @var \Illuminate\Http\Request $instance */
15107 return $instance->getQueryString();
15108 }
15109
15110 /**
15111 * Checks whether the request is secure or not.
15112 *
15113 * This method can read the client protocol from the "X-Forwarded-Proto" header
15114 * when trusted proxies were set via "setTrustedProxies()".
15115 *
15116 * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
15117 *
15118 * @static
15119 */
15120 public static function isSecure()
15121 {
15122 //Method inherited from \Symfony\Component\HttpFoundation\Request
15123 /** @var \Illuminate\Http\Request $instance */
15124 return $instance->isSecure();
15125 }
15126
15127 /**
15128 * Returns the host name.
15129 *
15130 * This method can read the client host name from the "X-Forwarded-Host" header
15131 * when trusted proxies were set via "setTrustedProxies()".
15132 *
15133 * The "X-Forwarded-Host" header must contain the client host name.
15134 *
15135 * @throws SuspiciousOperationException when the host name is invalid or not trusted
15136 * @static
15137 */
15138 public static function getHost()
15139 {
15140 //Method inherited from \Symfony\Component\HttpFoundation\Request
15141 /** @var \Illuminate\Http\Request $instance */
15142 return $instance->getHost();
15143 }
15144
15145 /**
15146 * Sets the request method.
15147 *
15148 * @static
15149 */
15150 public static function setMethod($method)
15151 {
15152 //Method inherited from \Symfony\Component\HttpFoundation\Request
15153 /** @var \Illuminate\Http\Request $instance */
15154 return $instance->setMethod($method);
15155 }
15156
15157 /**
15158 * Gets the request "intended" method.
15159 *
15160 * If the X-HTTP-Method-Override header is set, and if the method is a POST,
15161 * then it is used to determine the "real" intended HTTP method.
15162 *
15163 * The _method request parameter can also be used to determine the HTTP method,
15164 * but only if enableHttpMethodParameterOverride() has been called.
15165 *
15166 * The method is always an uppercased string.
15167 *
15168 * @see getRealMethod()
15169 * @static
15170 */
15171 public static function getMethod()
15172 {
15173 //Method inherited from \Symfony\Component\HttpFoundation\Request
15174 /** @var \Illuminate\Http\Request $instance */
15175 return $instance->getMethod();
15176 }
15177
15178 /**
15179 * Gets the "real" request method.
15180 *
15181 * @see getMethod()
15182 * @static
15183 */
15184 public static function getRealMethod()
15185 {
15186 //Method inherited from \Symfony\Component\HttpFoundation\Request
15187 /** @var \Illuminate\Http\Request $instance */
15188 return $instance->getRealMethod();
15189 }
15190
15191 /**
15192 * Gets the mime type associated with the format.
15193 *
15194 * @static
15195 */
15196 public static function getMimeType($format)
15197 {
15198 //Method inherited from \Symfony\Component\HttpFoundation\Request
15199 /** @var \Illuminate\Http\Request $instance */
15200 return $instance->getMimeType($format);
15201 }
15202
15203 /**
15204 * Gets the mime types associated with the format.
15205 *
15206 * @return string[]
15207 * @static
15208 */
15209 public static function getMimeTypes($format)
15210 {
15211 //Method inherited from \Symfony\Component\HttpFoundation\Request
15212 return \Illuminate\Http\Request::getMimeTypes($format);
15213 }
15214
15215 /**
15216 * Gets the format associated with the mime type.
15217 *
15218 * @static
15219 */
15220 public static function getFormat($mimeType)
15221 {
15222 //Method inherited from \Symfony\Component\HttpFoundation\Request
15223 /** @var \Illuminate\Http\Request $instance */
15224 return $instance->getFormat($mimeType);
15225 }
15226
15227 /**
15228 * Associates a format with mime types.
15229 *
15230 * @param string|string[] $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
15231 * @static
15232 */
15233 public static function setFormat($format, $mimeTypes)
15234 {
15235 //Method inherited from \Symfony\Component\HttpFoundation\Request
15236 /** @var \Illuminate\Http\Request $instance */
15237 return $instance->setFormat($format, $mimeTypes);
15238 }
15239
15240 /**
15241 * Gets the request format.
15242 *
15243 * Here is the process to determine the format:
15244 *
15245 * * format defined by the user (with setRequestFormat())
15246 * * _format request attribute
15247 * * $default
15248 *
15249 * @see getPreferredFormat
15250 * @static
15251 */
15252 public static function getRequestFormat($default = 'html')
15253 {
15254 //Method inherited from \Symfony\Component\HttpFoundation\Request
15255 /** @var \Illuminate\Http\Request $instance */
15256 return $instance->getRequestFormat($default);
15257 }
15258
15259 /**
15260 * Sets the request format.
15261 *
15262 * @static
15263 */
15264 public static function setRequestFormat($format)
15265 {
15266 //Method inherited from \Symfony\Component\HttpFoundation\Request
15267 /** @var \Illuminate\Http\Request $instance */
15268 return $instance->setRequestFormat($format);
15269 }
15270
15271 /**
15272 * Gets the usual name of the format associated with the request's media type (provided in the Content-Type header).
15273 *
15274 * @see Request::$formats
15275 * @static
15276 */
15277 public static function getContentTypeFormat()
15278 {
15279 //Method inherited from \Symfony\Component\HttpFoundation\Request
15280 /** @var \Illuminate\Http\Request $instance */
15281 return $instance->getContentTypeFormat();
15282 }
15283
15284 /**
15285 * Sets the default locale.
15286 *
15287 * @static
15288 */
15289 public static function setDefaultLocale($locale)
15290 {
15291 //Method inherited from \Symfony\Component\HttpFoundation\Request
15292 /** @var \Illuminate\Http\Request $instance */
15293 return $instance->setDefaultLocale($locale);
15294 }
15295
15296 /**
15297 * Get the default locale.
15298 *
15299 * @static
15300 */
15301 public static function getDefaultLocale()
15302 {
15303 //Method inherited from \Symfony\Component\HttpFoundation\Request
15304 /** @var \Illuminate\Http\Request $instance */
15305 return $instance->getDefaultLocale();
15306 }
15307
15308 /**
15309 * Sets the locale.
15310 *
15311 * @static
15312 */
15313 public static function setLocale($locale)
15314 {
15315 //Method inherited from \Symfony\Component\HttpFoundation\Request
15316 /** @var \Illuminate\Http\Request $instance */
15317 return $instance->setLocale($locale);
15318 }
15319
15320 /**
15321 * Get the locale.
15322 *
15323 * @static
15324 */
15325 public static function getLocale()
15326 {
15327 //Method inherited from \Symfony\Component\HttpFoundation\Request
15328 /** @var \Illuminate\Http\Request $instance */
15329 return $instance->getLocale();
15330 }
15331
15332 /**
15333 * Checks if the request method is of specified type.
15334 *
15335 * @param string $method Uppercase request method (GET, POST etc)
15336 * @static
15337 */
15338 public static function isMethod($method)
15339 {
15340 //Method inherited from \Symfony\Component\HttpFoundation\Request
15341 /** @var \Illuminate\Http\Request $instance */
15342 return $instance->isMethod($method);
15343 }
15344
15345 /**
15346 * Checks whether or not the method is safe.
15347 *
15348 * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
15349 * @static
15350 */
15351 public static function isMethodSafe()
15352 {
15353 //Method inherited from \Symfony\Component\HttpFoundation\Request
15354 /** @var \Illuminate\Http\Request $instance */
15355 return $instance->isMethodSafe();
15356 }
15357
15358 /**
15359 * Checks whether or not the method is idempotent.
15360 *
15361 * @static
15362 */
15363 public static function isMethodIdempotent()
15364 {
15365 //Method inherited from \Symfony\Component\HttpFoundation\Request
15366 /** @var \Illuminate\Http\Request $instance */
15367 return $instance->isMethodIdempotent();
15368 }
15369
15370 /**
15371 * Checks whether the method is cacheable or not.
15372 *
15373 * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
15374 * @static
15375 */
15376 public static function isMethodCacheable()
15377 {
15378 //Method inherited from \Symfony\Component\HttpFoundation\Request
15379 /** @var \Illuminate\Http\Request $instance */
15380 return $instance->isMethodCacheable();
15381 }
15382
15383 /**
15384 * Returns the protocol version.
15385 *
15386 * If the application is behind a proxy, the protocol version used in the
15387 * requests between the client and the proxy and between the proxy and the
15388 * server might be different. This returns the former (from the "Via" header)
15389 * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
15390 * the latter (from the "SERVER_PROTOCOL" server parameter).
15391 *
15392 * @static
15393 */
15394 public static function getProtocolVersion()
15395 {
15396 //Method inherited from \Symfony\Component\HttpFoundation\Request
15397 /** @var \Illuminate\Http\Request $instance */
15398 return $instance->getProtocolVersion();
15399 }
15400
15401 /**
15402 * Returns the request body content.
15403 *
15404 * @param bool $asResource If true, a resource will be returned
15405 * @return string|resource
15406 * @psalm-return ($asResource is true ? resource : string)
15407 * @static
15408 */
15409 public static function getContent($asResource = false)
15410 {
15411 //Method inherited from \Symfony\Component\HttpFoundation\Request
15412 /** @var \Illuminate\Http\Request $instance */
15413 return $instance->getContent($asResource);
15414 }
15415
15416 /**
15417 * Gets the decoded form or json request body.
15418 *
15419 * @throws JsonException When the body cannot be decoded to an array
15420 * @static
15421 */
15422 public static function getPayload()
15423 {
15424 //Method inherited from \Symfony\Component\HttpFoundation\Request
15425 /** @var \Illuminate\Http\Request $instance */
15426 return $instance->getPayload();
15427 }
15428
15429 /**
15430 * Gets the Etags.
15431 *
15432 * @static
15433 */
15434 public static function getETags()
15435 {
15436 //Method inherited from \Symfony\Component\HttpFoundation\Request
15437 /** @var \Illuminate\Http\Request $instance */
15438 return $instance->getETags();
15439 }
15440
15441 /**
15442 * @static
15443 */
15444 public static function isNoCache()
15445 {
15446 //Method inherited from \Symfony\Component\HttpFoundation\Request
15447 /** @var \Illuminate\Http\Request $instance */
15448 return $instance->isNoCache();
15449 }
15450
15451 /**
15452 * Gets the preferred format for the response by inspecting, in the following order:
15453 * * the request format set using setRequestFormat;
15454 * * the values of the Accept HTTP header.
15455 *
15456 * Note that if you use this method, you should send the "Vary: Accept" header
15457 * in the response to prevent any issues with intermediary HTTP caches.
15458 *
15459 * @static
15460 */
15461 public static function getPreferredFormat($default = 'html')
15462 {
15463 //Method inherited from \Symfony\Component\HttpFoundation\Request
15464 /** @var \Illuminate\Http\Request $instance */
15465 return $instance->getPreferredFormat($default);
15466 }
15467
15468 /**
15469 * Returns the preferred language.
15470 *
15471 * @param string[] $locales An array of ordered available locales
15472 * @static
15473 */
15474 public static function getPreferredLanguage($locales = null)
15475 {
15476 //Method inherited from \Symfony\Component\HttpFoundation\Request
15477 /** @var \Illuminate\Http\Request $instance */
15478 return $instance->getPreferredLanguage($locales);
15479 }
15480
15481 /**
15482 * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
15483 *
15484 * @return string[]
15485 * @static
15486 */
15487 public static function getLanguages()
15488 {
15489 //Method inherited from \Symfony\Component\HttpFoundation\Request
15490 /** @var \Illuminate\Http\Request $instance */
15491 return $instance->getLanguages();
15492 }
15493
15494 /**
15495 * Gets a list of charsets acceptable by the client browser in preferable order.
15496 *
15497 * @return string[]
15498 * @static
15499 */
15500 public static function getCharsets()
15501 {
15502 //Method inherited from \Symfony\Component\HttpFoundation\Request
15503 /** @var \Illuminate\Http\Request $instance */
15504 return $instance->getCharsets();
15505 }
15506
15507 /**
15508 * Gets a list of encodings acceptable by the client browser in preferable order.
15509 *
15510 * @return string[]
15511 * @static
15512 */
15513 public static function getEncodings()
15514 {
15515 //Method inherited from \Symfony\Component\HttpFoundation\Request
15516 /** @var \Illuminate\Http\Request $instance */
15517 return $instance->getEncodings();
15518 }
15519
15520 /**
15521 * Gets a list of content types acceptable by the client browser in preferable order.
15522 *
15523 * @return string[]
15524 * @static
15525 */
15526 public static function getAcceptableContentTypes()
15527 {
15528 //Method inherited from \Symfony\Component\HttpFoundation\Request
15529 /** @var \Illuminate\Http\Request $instance */
15530 return $instance->getAcceptableContentTypes();
15531 }
15532
15533 /**
15534 * Returns true if the request is an XMLHttpRequest.
15535 *
15536 * It works if your JavaScript library sets an X-Requested-With HTTP header.
15537 * It is known to work with common JavaScript frameworks:
15538 *
15539 * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
15540 * @static
15541 */
15542 public static function isXmlHttpRequest()
15543 {
15544 //Method inherited from \Symfony\Component\HttpFoundation\Request
15545 /** @var \Illuminate\Http\Request $instance */
15546 return $instance->isXmlHttpRequest();
15547 }
15548
15549 /**
15550 * Checks whether the client browser prefers safe content or not according to RFC8674.
15551 *
15552 * @see https://tools.ietf.org/html/rfc8674
15553 * @static
15554 */
15555 public static function preferSafeContent()
15556 {
15557 //Method inherited from \Symfony\Component\HttpFoundation\Request
15558 /** @var \Illuminate\Http\Request $instance */
15559 return $instance->preferSafeContent();
15560 }
15561
15562 /**
15563 * Indicates whether this request originated from a trusted proxy.
15564 *
15565 * This can be useful to determine whether or not to trust the
15566 * contents of a proxy-specific header.
15567 *
15568 * @static
15569 */
15570 public static function isFromTrustedProxy()
15571 {
15572 //Method inherited from \Symfony\Component\HttpFoundation\Request
15573 /** @var \Illuminate\Http\Request $instance */
15574 return $instance->isFromTrustedProxy();
15575 }
15576
15577 /**
15578 * Filter the given array of rules into an array of rules that are included in precognitive headers.
15579 *
15580 * @param array $rules
15581 * @return array
15582 * @static
15583 */
15584 public static function filterPrecognitiveRules($rules)
15585 {
15586 /** @var \Illuminate\Http\Request $instance */
15587 return $instance->filterPrecognitiveRules($rules);
15588 }
15589
15590 /**
15591 * Determine if the request is attempting to be precognitive.
15592 *
15593 * @return bool
15594 * @static
15595 */
15596 public static function isAttemptingPrecognition()
15597 {
15598 /** @var \Illuminate\Http\Request $instance */
15599 return $instance->isAttemptingPrecognition();
15600 }
15601
15602 /**
15603 * Determine if the request is precognitive.
15604 *
15605 * @return bool
15606 * @static
15607 */
15608 public static function isPrecognitive()
15609 {
15610 /** @var \Illuminate\Http\Request $instance */
15611 return $instance->isPrecognitive();
15612 }
15613
15614 /**
15615 * Determine if the request is sending JSON.
15616 *
15617 * @return bool
15618 * @static
15619 */
15620 public static function isJson()
15621 {
15622 /** @var \Illuminate\Http\Request $instance */
15623 return $instance->isJson();
15624 }
15625
15626 /**
15627 * Determine if the current request probably expects a JSON response.
15628 *
15629 * @return bool
15630 * @static
15631 */
15632 public static function expectsJson()
15633 {
15634 /** @var \Illuminate\Http\Request $instance */
15635 return $instance->expectsJson();
15636 }
15637
15638 /**
15639 * Determine if the current request is asking for JSON.
15640 *
15641 * @return bool
15642 * @static
15643 */
15644 public static function wantsJson()
15645 {
15646 /** @var \Illuminate\Http\Request $instance */
15647 return $instance->wantsJson();
15648 }
15649
15650 /**
15651 * Determines whether the current requests accepts a given content type.
15652 *
15653 * @param string|array $contentTypes
15654 * @return bool
15655 * @static
15656 */
15657 public static function accepts($contentTypes)
15658 {
15659 /** @var \Illuminate\Http\Request $instance */
15660 return $instance->accepts($contentTypes);
15661 }
15662
15663 /**
15664 * Return the most suitable content type from the given array based on content negotiation.
15665 *
15666 * @param string|array $contentTypes
15667 * @return string|null
15668 * @static
15669 */
15670 public static function prefers($contentTypes)
15671 {
15672 /** @var \Illuminate\Http\Request $instance */
15673 return $instance->prefers($contentTypes);
15674 }
15675
15676 /**
15677 * Determine if the current request accepts any content type.
15678 *
15679 * @return bool
15680 * @static
15681 */
15682 public static function acceptsAnyContentType()
15683 {
15684 /** @var \Illuminate\Http\Request $instance */
15685 return $instance->acceptsAnyContentType();
15686 }
15687
15688 /**
15689 * Determines whether a request accepts JSON.
15690 *
15691 * @return bool
15692 * @static
15693 */
15694 public static function acceptsJson()
15695 {
15696 /** @var \Illuminate\Http\Request $instance */
15697 return $instance->acceptsJson();
15698 }
15699
15700 /**
15701 * Determines whether a request accepts HTML.
15702 *
15703 * @return bool
15704 * @static
15705 */
15706 public static function acceptsHtml()
15707 {
15708 /** @var \Illuminate\Http\Request $instance */
15709 return $instance->acceptsHtml();
15710 }
15711
15712 /**
15713 * Determine if the given content types match.
15714 *
15715 * @param string $actual
15716 * @param string $type
15717 * @return bool
15718 * @static
15719 */
15720 public static function matchesType($actual, $type)
15721 {
15722 return \Illuminate\Http\Request::matchesType($actual, $type);
15723 }
15724
15725 /**
15726 * Get the data format expected in the response.
15727 *
15728 * @param string $default
15729 * @return string
15730 * @static
15731 */
15732 public static function format($default = 'html')
15733 {
15734 /** @var \Illuminate\Http\Request $instance */
15735 return $instance->format($default);
15736 }
15737
15738 /**
15739 * Retrieve an old input item.
15740 *
15741 * @param string|null $key
15742 * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
15743 * @return string|array|null
15744 * @static
15745 */
15746 public static function old($key = null, $default = null)
15747 {
15748 /** @var \Illuminate\Http\Request $instance */
15749 return $instance->old($key, $default);
15750 }
15751
15752 /**
15753 * Flash the input for the current request to the session.
15754 *
15755 * @return void
15756 * @static
15757 */
15758 public static function flash()
15759 {
15760 /** @var \Illuminate\Http\Request $instance */
15761 $instance->flash();
15762 }
15763
15764 /**
15765 * Flash only some of the input to the session.
15766 *
15767 * @param mixed $keys
15768 * @return void
15769 * @static
15770 */
15771 public static function flashOnly($keys)
15772 {
15773 /** @var \Illuminate\Http\Request $instance */
15774 $instance->flashOnly($keys);
15775 }
15776
15777 /**
15778 * Flash only some of the input to the session.
15779 *
15780 * @param mixed $keys
15781 * @return void
15782 * @static
15783 */
15784 public static function flashExcept($keys)
15785 {
15786 /** @var \Illuminate\Http\Request $instance */
15787 $instance->flashExcept($keys);
15788 }
15789
15790 /**
15791 * Flush all of the old input from the session.
15792 *
15793 * @return void
15794 * @static
15795 */
15796 public static function flush()
15797 {
15798 /** @var \Illuminate\Http\Request $instance */
15799 $instance->flush();
15800 }
15801
15802 /**
15803 * Retrieve a server variable from the request.
15804 *
15805 * @param string|null $key
15806 * @param string|array|null $default
15807 * @return string|array|null
15808 * @static
15809 */
15810 public static function server($key = null, $default = null)
15811 {
15812 /** @var \Illuminate\Http\Request $instance */
15813 return $instance->server($key, $default);
15814 }
15815
15816 /**
15817 * Determine if a header is set on the request.
15818 *
15819 * @param string $key
15820 * @return bool
15821 * @static
15822 */
15823 public static function hasHeader($key)
15824 {
15825 /** @var \Illuminate\Http\Request $instance */
15826 return $instance->hasHeader($key);
15827 }
15828
15829 /**
15830 * Retrieve a header from the request.
15831 *
15832 * @param string|null $key
15833 * @param string|array|null $default
15834 * @return string|array|null
15835 * @static
15836 */
15837 public static function header($key = null, $default = null)
15838 {
15839 /** @var \Illuminate\Http\Request $instance */
15840 return $instance->header($key, $default);
15841 }
15842
15843 /**
15844 * Get the bearer token from the request headers.
15845 *
15846 * @return string|null
15847 * @static
15848 */
15849 public static function bearerToken()
15850 {
15851 /** @var \Illuminate\Http\Request $instance */
15852 return $instance->bearerToken();
15853 }
15854
15855 /**
15856 * Get the keys for all of the input and files.
15857 *
15858 * @return array
15859 * @static
15860 */
15861 public static function keys()
15862 {
15863 /** @var \Illuminate\Http\Request $instance */
15864 return $instance->keys();
15865 }
15866
15867 /**
15868 * Get all of the input and files for the request.
15869 *
15870 * @param mixed $keys
15871 * @return array
15872 * @static
15873 */
15874 public static function all($keys = null)
15875 {
15876 /** @var \Illuminate\Http\Request $instance */
15877 return $instance->all($keys);
15878 }
15879
15880 /**
15881 * Retrieve an input item from the request.
15882 *
15883 * @param string|null $key
15884 * @param mixed $default
15885 * @return mixed
15886 * @static
15887 */
15888 public static function input($key = null, $default = null)
15889 {
15890 /** @var \Illuminate\Http\Request $instance */
15891 return $instance->input($key, $default);
15892 }
15893
15894 /**
15895 * Retrieve input from the request as a Fluent object instance.
15896 *
15897 * @param array|string|null $key
15898 * @return \Illuminate\Support\Fluent
15899 * @static
15900 */
15901 public static function fluent($key = null)
15902 {
15903 /** @var \Illuminate\Http\Request $instance */
15904 return $instance->fluent($key);
15905 }
15906
15907 /**
15908 * Retrieve a query string item from the request.
15909 *
15910 * @param string|null $key
15911 * @param string|array|null $default
15912 * @return string|array|null
15913 * @static
15914 */
15915 public static function query($key = null, $default = null)
15916 {
15917 /** @var \Illuminate\Http\Request $instance */
15918 return $instance->query($key, $default);
15919 }
15920
15921 /**
15922 * Retrieve a request payload item from the request.
15923 *
15924 * @param string|null $key
15925 * @param string|array|null $default
15926 * @return string|array|null
15927 * @static
15928 */
15929 public static function post($key = null, $default = null)
15930 {
15931 /** @var \Illuminate\Http\Request $instance */
15932 return $instance->post($key, $default);
15933 }
15934
15935 /**
15936 * Determine if a cookie is set on the request.
15937 *
15938 * @param string $key
15939 * @return bool
15940 * @static
15941 */
15942 public static function hasCookie($key)
15943 {
15944 /** @var \Illuminate\Http\Request $instance */
15945 return $instance->hasCookie($key);
15946 }
15947
15948 /**
15949 * Retrieve a cookie from the request.
15950 *
15951 * @param string|null $key
15952 * @param string|array|null $default
15953 * @return string|array|null
15954 * @static
15955 */
15956 public static function cookie($key = null, $default = null)
15957 {
15958 /** @var \Illuminate\Http\Request $instance */
15959 return $instance->cookie($key, $default);
15960 }
15961
15962 /**
15963 * Get an array of all of the files on the request.
15964 *
15965 * @return array<string, \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]>
15966 * @static
15967 */
15968 public static function allFiles()
15969 {
15970 /** @var \Illuminate\Http\Request $instance */
15971 return $instance->allFiles();
15972 }
15973
15974 /**
15975 * Determine if the uploaded data contains a file.
15976 *
15977 * @param string $key
15978 * @return bool
15979 * @static
15980 */
15981 public static function hasFile($key)
15982 {
15983 /** @var \Illuminate\Http\Request $instance */
15984 return $instance->hasFile($key);
15985 }
15986
15987 /**
15988 * Retrieve a file from the request.
15989 *
15990 * @param string|null $key
15991 * @param mixed $default
15992 * @return ($key is null ? array<string, \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]> : \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|null)
15993 * @static
15994 */
15995 public static function file($key = null, $default = null)
15996 {
15997 /** @var \Illuminate\Http\Request $instance */
15998 return $instance->file($key, $default);
15999 }
16000
16001 /**
16002 * Dump the items.
16003 *
16004 * @param mixed $keys
16005 * @return \Illuminate\Http\Request
16006 * @static
16007 */
16008 public static function dump($keys = [])
16009 {
16010 /** @var \Illuminate\Http\Request $instance */
16011 return $instance->dump($keys);
16012 }
16013
16014 /**
16015 * Dump the given arguments and terminate execution.
16016 *
16017 * @param mixed $args
16018 * @return never
16019 * @static
16020 */
16021 public static function dd(...$args)
16022 {
16023 /** @var \Illuminate\Http\Request $instance */
16024 return $instance->dd(...$args);
16025 }
16026
16027 /**
16028 * Determine if the data contains a given key.
16029 *
16030 * @param string|array $key
16031 * @return bool
16032 * @static
16033 */
16034 public static function exists($key)
16035 {
16036 /** @var \Illuminate\Http\Request $instance */
16037 return $instance->exists($key);
16038 }
16039
16040 /**
16041 * Determine if the data contains a given key.
16042 *
16043 * @param string|array $key
16044 * @return bool
16045 * @static
16046 */
16047 public static function has($key)
16048 {
16049 /** @var \Illuminate\Http\Request $instance */
16050 return $instance->has($key);
16051 }
16052
16053 /**
16054 * Determine if the instance contains any of the given keys.
16055 *
16056 * @param string|array $keys
16057 * @return bool
16058 * @static
16059 */
16060 public static function hasAny($keys)
16061 {
16062 /** @var \Illuminate\Http\Request $instance */
16063 return $instance->hasAny($keys);
16064 }
16065
16066 /**
16067 * Apply the callback if the instance contains the given key.
16068 *
16069 * @param string $key
16070 * @param callable $callback
16071 * @param callable|null $default
16072 * @return $this|mixed
16073 * @static
16074 */
16075 public static function whenHas($key, $callback, $default = null)
16076 {
16077 /** @var \Illuminate\Http\Request $instance */
16078 return $instance->whenHas($key, $callback, $default);
16079 }
16080
16081 /**
16082 * Determine if the instance contains a non-empty value for the given key.
16083 *
16084 * @param string|array $key
16085 * @return bool
16086 * @static
16087 */
16088 public static function filled($key)
16089 {
16090 /** @var \Illuminate\Http\Request $instance */
16091 return $instance->filled($key);
16092 }
16093
16094 /**
16095 * Determine if the instance contains an empty value for the given key.
16096 *
16097 * @param string|array $key
16098 * @return bool
16099 * @static
16100 */
16101 public static function isNotFilled($key)
16102 {
16103 /** @var \Illuminate\Http\Request $instance */
16104 return $instance->isNotFilled($key);
16105 }
16106
16107 /**
16108 * Determine if the instance contains a non-empty value for any of the given keys.
16109 *
16110 * @param string|array $keys
16111 * @return bool
16112 * @static
16113 */
16114 public static function anyFilled($keys)
16115 {
16116 /** @var \Illuminate\Http\Request $instance */
16117 return $instance->anyFilled($keys);
16118 }
16119
16120 /**
16121 * Apply the callback if the instance contains a non-empty value for the given key.
16122 *
16123 * @param string $key
16124 * @param callable $callback
16125 * @param callable|null $default
16126 * @return $this|mixed
16127 * @static
16128 */
16129 public static function whenFilled($key, $callback, $default = null)
16130 {
16131 /** @var \Illuminate\Http\Request $instance */
16132 return $instance->whenFilled($key, $callback, $default);
16133 }
16134
16135 /**
16136 * Determine if the instance is missing a given key.
16137 *
16138 * @param string|array $key
16139 * @return bool
16140 * @static
16141 */
16142 public static function missing($key)
16143 {
16144 /** @var \Illuminate\Http\Request $instance */
16145 return $instance->missing($key);
16146 }
16147
16148 /**
16149 * Apply the callback if the instance is missing the given key.
16150 *
16151 * @param string $key
16152 * @param callable $callback
16153 * @param callable|null $default
16154 * @return $this|mixed
16155 * @static
16156 */
16157 public static function whenMissing($key, $callback, $default = null)
16158 {
16159 /** @var \Illuminate\Http\Request $instance */
16160 return $instance->whenMissing($key, $callback, $default);
16161 }
16162
16163 /**
16164 * Retrieve data from the instance as a Stringable instance.
16165 *
16166 * @param string $key
16167 * @param mixed $default
16168 * @return \Illuminate\Support\Stringable
16169 * @static
16170 */
16171 public static function str($key, $default = null)
16172 {
16173 /** @var \Illuminate\Http\Request $instance */
16174 return $instance->str($key, $default);
16175 }
16176
16177 /**
16178 * Retrieve data from the instance as a Stringable instance.
16179 *
16180 * @param string $key
16181 * @param mixed $default
16182 * @return \Illuminate\Support\Stringable
16183 * @static
16184 */
16185 public static function string($key, $default = null)
16186 {
16187 /** @var \Illuminate\Http\Request $instance */
16188 return $instance->string($key, $default);
16189 }
16190
16191 /**
16192 * Retrieve data as a boolean value.
16193 *
16194 * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
16195 *
16196 * @param string|null $key
16197 * @param bool $default
16198 * @return bool
16199 * @static
16200 */
16201 public static function boolean($key = null, $default = false)
16202 {
16203 /** @var \Illuminate\Http\Request $instance */
16204 return $instance->boolean($key, $default);
16205 }
16206
16207 /**
16208 * Retrieve data as an integer value.
16209 *
16210 * @param string $key
16211 * @param int $default
16212 * @return int
16213 * @static
16214 */
16215 public static function integer($key, $default = 0)
16216 {
16217 /** @var \Illuminate\Http\Request $instance */
16218 return $instance->integer($key, $default);
16219 }
16220
16221 /**
16222 * Retrieve data as a float value.
16223 *
16224 * @param string $key
16225 * @param float $default
16226 * @return float
16227 * @static
16228 */
16229 public static function float($key, $default = 0.0)
16230 {
16231 /** @var \Illuminate\Http\Request $instance */
16232 return $instance->float($key, $default);
16233 }
16234
16235 /**
16236 * Retrieve data from the instance as a Carbon instance.
16237 *
16238 * @param string $key
16239 * @param string|null $format
16240 * @param \UnitEnum|string|null $tz
16241 * @return \Illuminate\Support\Carbon|null
16242 * @throws \Carbon\Exceptions\InvalidFormatException
16243 * @static
16244 */
16245 public static function date($key, $format = null, $tz = null)
16246 {
16247 /** @var \Illuminate\Http\Request $instance */
16248 return $instance->date($key, $format, $tz);
16249 }
16250
16251 /**
16252 * Retrieve data from the instance as an enum.
16253 *
16254 * @template TEnum of \BackedEnum
16255 * @param string $key
16256 * @param class-string<TEnum> $enumClass
16257 * @param TEnum|null $default
16258 * @return TEnum|null
16259 * @static
16260 */
16261 public static function enum($key, $enumClass, $default = null)
16262 {
16263 /** @var \Illuminate\Http\Request $instance */
16264 return $instance->enum($key, $enumClass, $default);
16265 }
16266
16267 /**
16268 * Retrieve data from the instance as an array of enums.
16269 *
16270 * @template TEnum of \BackedEnum
16271 * @param string $key
16272 * @param class-string<TEnum> $enumClass
16273 * @return TEnum[]
16274 * @static
16275 */
16276 public static function enums($key, $enumClass)
16277 {
16278 /** @var \Illuminate\Http\Request $instance */
16279 return $instance->enums($key, $enumClass);
16280 }
16281
16282 /**
16283 * Retrieve data from the instance as an array.
16284 *
16285 * @param array|string|null $key
16286 * @return array
16287 * @static
16288 */
16289 public static function array($key = null)
16290 {
16291 /** @var \Illuminate\Http\Request $instance */
16292 return $instance->array($key);
16293 }
16294
16295 /**
16296 * Retrieve data from the instance as a collection.
16297 *
16298 * @param array|string|null $key
16299 * @return \Illuminate\Support\Collection
16300 * @static
16301 */
16302 public static function collect($key = null)
16303 {
16304 /** @var \Illuminate\Http\Request $instance */
16305 return $instance->collect($key);
16306 }
16307
16308 /**
16309 * Get a subset containing the provided keys with values from the instance data.
16310 *
16311 * @param mixed $keys
16312 * @return array
16313 * @static
16314 */
16315 public static function only($keys)
16316 {
16317 /** @var \Illuminate\Http\Request $instance */
16318 return $instance->only($keys);
16319 }
16320
16321 /**
16322 * Get all of the data except for a specified array of items.
16323 *
16324 * @param mixed $keys
16325 * @return array
16326 * @static
16327 */
16328 public static function except($keys)
16329 {
16330 /** @var \Illuminate\Http\Request $instance */
16331 return $instance->except($keys);
16332 }
16333
16334 /**
16335 * Apply the callback if the given "value" is (or resolves to) truthy.
16336 *
16337 * @template TWhenParameter
16338 * @template TWhenReturnType
16339 * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
16340 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
16341 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
16342 * @return $this|TWhenReturnType
16343 * @static
16344 */
16345 public static function when($value = null, $callback = null, $default = null)
16346 {
16347 /** @var \Illuminate\Http\Request $instance */
16348 return $instance->when($value, $callback, $default);
16349 }
16350
16351 /**
16352 * Apply the callback if the given "value" is (or resolves to) falsy.
16353 *
16354 * @template TUnlessParameter
16355 * @template TUnlessReturnType
16356 * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
16357 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
16358 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
16359 * @return $this|TUnlessReturnType
16360 * @static
16361 */
16362 public static function unless($value = null, $callback = null, $default = null)
16363 {
16364 /** @var \Illuminate\Http\Request $instance */
16365 return $instance->unless($value, $callback, $default);
16366 }
16367
16368 /**
16369 * Register a custom macro.
16370 *
16371 * @param string $name
16372 * @param object|callable $macro
16373 * @param-closure-this static $macro
16374 * @return void
16375 * @static
16376 */
16377 public static function macro($name, $macro)
16378 {
16379 \Illuminate\Http\Request::macro($name, $macro);
16380 }
16381
16382 /**
16383 * Mix another object into the class.
16384 *
16385 * @param object $mixin
16386 * @param bool $replace
16387 * @return void
16388 * @throws \ReflectionException
16389 * @static
16390 */
16391 public static function mixin($mixin, $replace = true)
16392 {
16393 \Illuminate\Http\Request::mixin($mixin, $replace);
16394 }
16395
16396 /**
16397 * Checks if macro is registered.
16398 *
16399 * @param string $name
16400 * @return bool
16401 * @static
16402 */
16403 public static function hasMacro($name)
16404 {
16405 return \Illuminate\Http\Request::hasMacro($name);
16406 }
16407
16408 /**
16409 * Flush the existing macros.
16410 *
16411 * @return void
16412 * @static
16413 */
16414 public static function flushMacros()
16415 {
16416 \Illuminate\Http\Request::flushMacros();
16417 }
16418
16419 /**
16420 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
16421 * @param array $rules
16422 * @param mixed $params
16423 * @static
16424 */
16425 public static function validate($rules, ...$params)
16426 {
16427 return \Illuminate\Http\Request::validate($rules, ...$params);
16428 }
16429
16430 /**
16431 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
16432 * @param string $errorBag
16433 * @param array $rules
16434 * @param mixed $params
16435 * @static
16436 */
16437 public static function validateWithBag($errorBag, $rules, ...$params)
16438 {
16439 return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
16440 }
16441
16442 /**
16443 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
16444 * @param mixed $absolute
16445 * @static
16446 */
16447 public static function hasValidSignature($absolute = true)
16448 {
16449 return \Illuminate\Http\Request::hasValidSignature($absolute);
16450 }
16451
16452 /**
16453 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
16454 * @static
16455 */
16456 public static function hasValidRelativeSignature()
16457 {
16458 return \Illuminate\Http\Request::hasValidRelativeSignature();
16459 }
16460
16461 /**
16462 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
16463 * @param mixed $ignoreQuery
16464 * @param mixed $absolute
16465 * @static
16466 */
16467 public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
16468 {
16469 return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
16470 }
16471
16472 /**
16473 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
16474 * @param mixed $ignoreQuery
16475 * @static
16476 */
16477 public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
16478 {
16479 return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
16480 }
16481
16482 }
16483 /**
16484 * @see \Illuminate\Routing\ResponseFactory
16485 */
16486 class Response {
16487 /**
16488 * Create a new response instance.
16489 *
16490 * @param mixed $content
16491 * @param int $status
16492 * @param array $headers
16493 * @return \Illuminate\Http\Response
16494 * @static
16495 */
16496 public static function make($content = '', $status = 200, $headers = [])
16497 {
16498 /** @var \Illuminate\Routing\ResponseFactory $instance */
16499 return $instance->make($content, $status, $headers);
16500 }
16501
16502 /**
16503 * Create a new "no content" response.
16504 *
16505 * @param int $status
16506 * @param array $headers
16507 * @return \Illuminate\Http\Response
16508 * @static
16509 */
16510 public static function noContent($status = 204, $headers = [])
16511 {
16512 /** @var \Illuminate\Routing\ResponseFactory $instance */
16513 return $instance->noContent($status, $headers);
16514 }
16515
16516 /**
16517 * Create a new response for a given view.
16518 *
16519 * @param string|array $view
16520 * @param array $data
16521 * @param int $status
16522 * @param array $headers
16523 * @return \Illuminate\Http\Response
16524 * @static
16525 */
16526 public static function view($view, $data = [], $status = 200, $headers = [])
16527 {
16528 /** @var \Illuminate\Routing\ResponseFactory $instance */
16529 return $instance->view($view, $data, $status, $headers);
16530 }
16531
16532 /**
16533 * Create a new JSON response instance.
16534 *
16535 * @param mixed $data
16536 * @param int $status
16537 * @param array $headers
16538 * @param int $options
16539 * @return \Illuminate\Http\JsonResponse
16540 * @static
16541 */
16542 public static function json($data = [], $status = 200, $headers = [], $options = 0)
16543 {
16544 /** @var \Illuminate\Routing\ResponseFactory $instance */
16545 return $instance->json($data, $status, $headers, $options);
16546 }
16547
16548 /**
16549 * Create a new JSONP response instance.
16550 *
16551 * @param string $callback
16552 * @param mixed $data
16553 * @param int $status
16554 * @param array $headers
16555 * @param int $options
16556 * @return \Illuminate\Http\JsonResponse
16557 * @static
16558 */
16559 public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
16560 {
16561 /** @var \Illuminate\Routing\ResponseFactory $instance */
16562 return $instance->jsonp($callback, $data, $status, $headers, $options);
16563 }
16564
16565 /**
16566 * Create a new event stream response.
16567 *
16568 * @param \Closure $callback
16569 * @param array $headers
16570 * @param \Illuminate\Http\StreamedEvent|string|null $endStreamWith
16571 * @return \Symfony\Component\HttpFoundation\StreamedResponse
16572 * @static
16573 */
16574 public static function eventStream($callback, $headers = [], $endStreamWith = '</stream>')
16575 {
16576 /** @var \Illuminate\Routing\ResponseFactory $instance */
16577 return $instance->eventStream($callback, $headers, $endStreamWith);
16578 }
16579
16580 /**
16581 * Create a new streamed response instance.
16582 *
16583 * @param callable|null $callback
16584 * @param int $status
16585 * @param array $headers
16586 * @return \Symfony\Component\HttpFoundation\StreamedResponse
16587 * @static
16588 */
16589 public static function stream($callback, $status = 200, $headers = [])
16590 {
16591 /** @var \Illuminate\Routing\ResponseFactory $instance */
16592 return $instance->stream($callback, $status, $headers);
16593 }
16594
16595 /**
16596 * Create a new streamed JSON response instance.
16597 *
16598 * @param array $data
16599 * @param int $status
16600 * @param array $headers
16601 * @param int $encodingOptions
16602 * @return \Symfony\Component\HttpFoundation\StreamedJsonResponse
16603 * @static
16604 */
16605 public static function streamJson($data, $status = 200, $headers = [], $encodingOptions = 15)
16606 {
16607 /** @var \Illuminate\Routing\ResponseFactory $instance */
16608 return $instance->streamJson($data, $status, $headers, $encodingOptions);
16609 }
16610
16611 /**
16612 * Create a new streamed response instance as a file download.
16613 *
16614 * @param callable $callback
16615 * @param string|null $name
16616 * @param array $headers
16617 * @param string|null $disposition
16618 * @return \Symfony\Component\HttpFoundation\StreamedResponse
16619 * @throws \Illuminate\Routing\Exceptions\StreamedResponseException
16620 * @static
16621 */
16622 public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
16623 {
16624 /** @var \Illuminate\Routing\ResponseFactory $instance */
16625 return $instance->streamDownload($callback, $name, $headers, $disposition);
16626 }
16627
16628 /**
16629 * Create a new file download response.
16630 *
16631 * @param \SplFileInfo|string $file
16632 * @param string|null $name
16633 * @param array $headers
16634 * @param string|null $disposition
16635 * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
16636 * @static
16637 */
16638 public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
16639 {
16640 /** @var \Illuminate\Routing\ResponseFactory $instance */
16641 return $instance->download($file, $name, $headers, $disposition);
16642 }
16643
16644 /**
16645 * Return the raw contents of a binary file.
16646 *
16647 * @param \SplFileInfo|string $file
16648 * @param array $headers
16649 * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
16650 * @static
16651 */
16652 public static function file($file, $headers = [])
16653 {
16654 /** @var \Illuminate\Routing\ResponseFactory $instance */
16655 return $instance->file($file, $headers);
16656 }
16657
16658 /**
16659 * Create a new redirect response to the given path.
16660 *
16661 * @param string $path
16662 * @param int $status
16663 * @param array $headers
16664 * @param bool|null $secure
16665 * @return \Illuminate\Http\RedirectResponse
16666 * @static
16667 */
16668 public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
16669 {
16670 /** @var \Illuminate\Routing\ResponseFactory $instance */
16671 return $instance->redirectTo($path, $status, $headers, $secure);
16672 }
16673
16674 /**
16675 * Create a new redirect response to a named route.
16676 *
16677 * @param \BackedEnum|string $route
16678 * @param mixed $parameters
16679 * @param int $status
16680 * @param array $headers
16681 * @return \Illuminate\Http\RedirectResponse
16682 * @static
16683 */
16684 public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
16685 {
16686 /** @var \Illuminate\Routing\ResponseFactory $instance */
16687 return $instance->redirectToRoute($route, $parameters, $status, $headers);
16688 }
16689
16690 /**
16691 * Create a new redirect response to a controller action.
16692 *
16693 * @param array|string $action
16694 * @param mixed $parameters
16695 * @param int $status
16696 * @param array $headers
16697 * @return \Illuminate\Http\RedirectResponse
16698 * @static
16699 */
16700 public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
16701 {
16702 /** @var \Illuminate\Routing\ResponseFactory $instance */
16703 return $instance->redirectToAction($action, $parameters, $status, $headers);
16704 }
16705
16706 /**
16707 * Create a new redirect response, while putting the current URL in the session.
16708 *
16709 * @param string $path
16710 * @param int $status
16711 * @param array $headers
16712 * @param bool|null $secure
16713 * @return \Illuminate\Http\RedirectResponse
16714 * @static
16715 */
16716 public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
16717 {
16718 /** @var \Illuminate\Routing\ResponseFactory $instance */
16719 return $instance->redirectGuest($path, $status, $headers, $secure);
16720 }
16721
16722 /**
16723 * Create a new redirect response to the previously intended location.
16724 *
16725 * @param string $default
16726 * @param int $status
16727 * @param array $headers
16728 * @param bool|null $secure
16729 * @return \Illuminate\Http\RedirectResponse
16730 * @static
16731 */
16732 public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
16733 {
16734 /** @var \Illuminate\Routing\ResponseFactory $instance */
16735 return $instance->redirectToIntended($default, $status, $headers, $secure);
16736 }
16737
16738 /**
16739 * Register a custom macro.
16740 *
16741 * @param string $name
16742 * @param object|callable $macro
16743 * @param-closure-this static $macro
16744 * @return void
16745 * @static
16746 */
16747 public static function macro($name, $macro)
16748 {
16749 \Illuminate\Routing\ResponseFactory::macro($name, $macro);
16750 }
16751
16752 /**
16753 * Mix another object into the class.
16754 *
16755 * @param object $mixin
16756 * @param bool $replace
16757 * @return void
16758 * @throws \ReflectionException
16759 * @static
16760 */
16761 public static function mixin($mixin, $replace = true)
16762 {
16763 \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
16764 }
16765
16766 /**
16767 * Checks if macro is registered.
16768 *
16769 * @param string $name
16770 * @return bool
16771 * @static
16772 */
16773 public static function hasMacro($name)
16774 {
16775 return \Illuminate\Routing\ResponseFactory::hasMacro($name);
16776 }
16777
16778 /**
16779 * Flush the existing macros.
16780 *
16781 * @return void
16782 * @static
16783 */
16784 public static function flushMacros()
16785 {
16786 \Illuminate\Routing\ResponseFactory::flushMacros();
16787 }
16788
16789 }
16790 /**
16791 * @method static \Illuminate\Routing\RouteRegistrar attribute(string $key, mixed $value)
16792 * @method static \Illuminate\Routing\RouteRegistrar whereAlpha(array|string $parameters)
16793 * @method static \Illuminate\Routing\RouteRegistrar whereAlphaNumeric(array|string $parameters)
16794 * @method static \Illuminate\Routing\RouteRegistrar whereNumber(array|string $parameters)
16795 * @method static \Illuminate\Routing\RouteRegistrar whereUlid(array|string $parameters)
16796 * @method static \Illuminate\Routing\RouteRegistrar whereUuid(array|string $parameters)
16797 * @method static \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
16798 * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
16799 * @method static \Illuminate\Routing\RouteRegistrar can(\UnitEnum|string $ability, array|string $models = [])
16800 * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
16801 * @method static \Illuminate\Routing\RouteRegistrar domain(\BackedEnum|string $value)
16802 * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
16803 * @method static \Illuminate\Routing\RouteRegistrar missing(\Closure $missing)
16804 * @method static \Illuminate\Routing\RouteRegistrar name(\BackedEnum|string $value)
16805 * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
16806 * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
16807 * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
16808 * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
16809 * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
16810 * @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
16811 * @see \Illuminate\Routing\Router
16812 */
16813 class Route {
16814 /**
16815 * Register a new GET route with the router.
16816 *
16817 * @param string $uri
16818 * @param array|string|callable|null $action
16819 * @return \Illuminate\Routing\Route
16820 * @static
16821 */
16822 public static function get($uri, $action = null)
16823 {
16824 /** @var \Illuminate\Routing\Router $instance */
16825 return $instance->get($uri, $action);
16826 }
16827
16828 /**
16829 * Register a new POST route with the router.
16830 *
16831 * @param string $uri
16832 * @param array|string|callable|null $action
16833 * @return \Illuminate\Routing\Route
16834 * @static
16835 */
16836 public static function post($uri, $action = null)
16837 {
16838 /** @var \Illuminate\Routing\Router $instance */
16839 return $instance->post($uri, $action);
16840 }
16841
16842 /**
16843 * Register a new PUT route with the router.
16844 *
16845 * @param string $uri
16846 * @param array|string|callable|null $action
16847 * @return \Illuminate\Routing\Route
16848 * @static
16849 */
16850 public static function put($uri, $action = null)
16851 {
16852 /** @var \Illuminate\Routing\Router $instance */
16853 return $instance->put($uri, $action);
16854 }
16855
16856 /**
16857 * Register a new PATCH route with the router.
16858 *
16859 * @param string $uri
16860 * @param array|string|callable|null $action
16861 * @return \Illuminate\Routing\Route
16862 * @static
16863 */
16864 public static function patch($uri, $action = null)
16865 {
16866 /** @var \Illuminate\Routing\Router $instance */
16867 return $instance->patch($uri, $action);
16868 }
16869
16870 /**
16871 * Register a new DELETE route with the router.
16872 *
16873 * @param string $uri
16874 * @param array|string|callable|null $action
16875 * @return \Illuminate\Routing\Route
16876 * @static
16877 */
16878 public static function delete($uri, $action = null)
16879 {
16880 /** @var \Illuminate\Routing\Router $instance */
16881 return $instance->delete($uri, $action);
16882 }
16883
16884 /**
16885 * Register a new OPTIONS route with the router.
16886 *
16887 * @param string $uri
16888 * @param array|string|callable|null $action
16889 * @return \Illuminate\Routing\Route
16890 * @static
16891 */
16892 public static function options($uri, $action = null)
16893 {
16894 /** @var \Illuminate\Routing\Router $instance */
16895 return $instance->options($uri, $action);
16896 }
16897
16898 /**
16899 * Register a new route responding to all verbs.
16900 *
16901 * @param string $uri
16902 * @param array|string|callable|null $action
16903 * @return \Illuminate\Routing\Route
16904 * @static
16905 */
16906 public static function any($uri, $action = null)
16907 {
16908 /** @var \Illuminate\Routing\Router $instance */
16909 return $instance->any($uri, $action);
16910 }
16911
16912 /**
16913 * Register a new fallback route with the router.
16914 *
16915 * @param array|string|callable|null $action
16916 * @return \Illuminate\Routing\Route
16917 * @static
16918 */
16919 public static function fallback($action)
16920 {
16921 /** @var \Illuminate\Routing\Router $instance */
16922 return $instance->fallback($action);
16923 }
16924
16925 /**
16926 * Create a redirect from one URI to another.
16927 *
16928 * @param string $uri
16929 * @param string $destination
16930 * @param int $status
16931 * @return \Illuminate\Routing\Route
16932 * @static
16933 */
16934 public static function redirect($uri, $destination, $status = 302)
16935 {
16936 /** @var \Illuminate\Routing\Router $instance */
16937 return $instance->redirect($uri, $destination, $status);
16938 }
16939
16940 /**
16941 * Create a permanent redirect from one URI to another.
16942 *
16943 * @param string $uri
16944 * @param string $destination
16945 * @return \Illuminate\Routing\Route
16946 * @static
16947 */
16948 public static function permanentRedirect($uri, $destination)
16949 {
16950 /** @var \Illuminate\Routing\Router $instance */
16951 return $instance->permanentRedirect($uri, $destination);
16952 }
16953
16954 /**
16955 * Register a new route that returns a view.
16956 *
16957 * @param string $uri
16958 * @param string $view
16959 * @param array $data
16960 * @param int|array $status
16961 * @param array $headers
16962 * @return \Illuminate\Routing\Route
16963 * @static
16964 */
16965 public static function view($uri, $view, $data = [], $status = 200, $headers = [])
16966 {
16967 /** @var \Illuminate\Routing\Router $instance */
16968 return $instance->view($uri, $view, $data, $status, $headers);
16969 }
16970
16971 /**
16972 * Register a new route with the given verbs.
16973 *
16974 * @param array|string $methods
16975 * @param string $uri
16976 * @param array|string|callable|null $action
16977 * @return \Illuminate\Routing\Route
16978 * @static
16979 */
16980 public static function match($methods, $uri, $action = null)
16981 {
16982 /** @var \Illuminate\Routing\Router $instance */
16983 return $instance->match($methods, $uri, $action);
16984 }
16985
16986 /**
16987 * Register an array of resource controllers.
16988 *
16989 * @param array $resources
16990 * @param array $options
16991 * @return void
16992 * @static
16993 */
16994 public static function resources($resources, $options = [])
16995 {
16996 /** @var \Illuminate\Routing\Router $instance */
16997 $instance->resources($resources, $options);
16998 }
16999
17000 /**
17001 * Register an array of resource controllers that can be soft deleted.
17002 *
17003 * @param array $resources
17004 * @param array $options
17005 * @return void
17006 * @static
17007 */
17008 public static function softDeletableResources($resources, $options = [])
17009 {
17010 /** @var \Illuminate\Routing\Router $instance */
17011 $instance->softDeletableResources($resources, $options);
17012 }
17013
17014 /**
17015 * Route a resource to a controller.
17016 *
17017 * @param string $name
17018 * @param string $controller
17019 * @param array $options
17020 * @return \Illuminate\Routing\PendingResourceRegistration
17021 * @static
17022 */
17023 public static function resource($name, $controller, $options = [])
17024 {
17025 /** @var \Illuminate\Routing\Router $instance */
17026 return $instance->resource($name, $controller, $options);
17027 }
17028
17029 /**
17030 * Register an array of API resource controllers.
17031 *
17032 * @param array $resources
17033 * @param array $options
17034 * @return void
17035 * @static
17036 */
17037 public static function apiResources($resources, $options = [])
17038 {
17039 /** @var \Illuminate\Routing\Router $instance */
17040 $instance->apiResources($resources, $options);
17041 }
17042
17043 /**
17044 * Route an API resource to a controller.
17045 *
17046 * @param string $name
17047 * @param string $controller
17048 * @param array $options
17049 * @return \Illuminate\Routing\PendingResourceRegistration
17050 * @static
17051 */
17052 public static function apiResource($name, $controller, $options = [])
17053 {
17054 /** @var \Illuminate\Routing\Router $instance */
17055 return $instance->apiResource($name, $controller, $options);
17056 }
17057
17058 /**
17059 * Register an array of singleton resource controllers.
17060 *
17061 * @param array $singletons
17062 * @param array $options
17063 * @return void
17064 * @static
17065 */
17066 public static function singletons($singletons, $options = [])
17067 {
17068 /** @var \Illuminate\Routing\Router $instance */
17069 $instance->singletons($singletons, $options);
17070 }
17071
17072 /**
17073 * Route a singleton resource to a controller.
17074 *
17075 * @param string $name
17076 * @param string $controller
17077 * @param array $options
17078 * @return \Illuminate\Routing\PendingSingletonResourceRegistration
17079 * @static
17080 */
17081 public static function singleton($name, $controller, $options = [])
17082 {
17083 /** @var \Illuminate\Routing\Router $instance */
17084 return $instance->singleton($name, $controller, $options);
17085 }
17086
17087 /**
17088 * Register an array of API singleton resource controllers.
17089 *
17090 * @param array $singletons
17091 * @param array $options
17092 * @return void
17093 * @static
17094 */
17095 public static function apiSingletons($singletons, $options = [])
17096 {
17097 /** @var \Illuminate\Routing\Router $instance */
17098 $instance->apiSingletons($singletons, $options);
17099 }
17100
17101 /**
17102 * Route an API singleton resource to a controller.
17103 *
17104 * @param string $name
17105 * @param string $controller
17106 * @param array $options
17107 * @return \Illuminate\Routing\PendingSingletonResourceRegistration
17108 * @static
17109 */
17110 public static function apiSingleton($name, $controller, $options = [])
17111 {
17112 /** @var \Illuminate\Routing\Router $instance */
17113 return $instance->apiSingleton($name, $controller, $options);
17114 }
17115
17116 /**
17117 * Create a route group with shared attributes.
17118 *
17119 * @param array $attributes
17120 * @param \Closure|array|string $routes
17121 * @return \Illuminate\Routing\Router
17122 * @static
17123 */
17124 public static function group($attributes, $routes)
17125 {
17126 /** @var \Illuminate\Routing\Router $instance */
17127 return $instance->group($attributes, $routes);
17128 }
17129
17130 /**
17131 * Merge the given array with the last group stack.
17132 *
17133 * @param array $new
17134 * @param bool $prependExistingPrefix
17135 * @return array
17136 * @static
17137 */
17138 public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
17139 {
17140 /** @var \Illuminate\Routing\Router $instance */
17141 return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
17142 }
17143
17144 /**
17145 * Get the prefix from the last group on the stack.
17146 *
17147 * @return string
17148 * @static
17149 */
17150 public static function getLastGroupPrefix()
17151 {
17152 /** @var \Illuminate\Routing\Router $instance */
17153 return $instance->getLastGroupPrefix();
17154 }
17155
17156 /**
17157 * Add a route to the underlying route collection.
17158 *
17159 * @param array|string $methods
17160 * @param string $uri
17161 * @param array|string|callable|null $action
17162 * @return \Illuminate\Routing\Route
17163 * @static
17164 */
17165 public static function addRoute($methods, $uri, $action)
17166 {
17167 /** @var \Illuminate\Routing\Router $instance */
17168 return $instance->addRoute($methods, $uri, $action);
17169 }
17170
17171 /**
17172 * Create a new Route object.
17173 *
17174 * @param array|string $methods
17175 * @param string $uri
17176 * @param mixed $action
17177 * @return \Illuminate\Routing\Route
17178 * @static
17179 */
17180 public static function newRoute($methods, $uri, $action)
17181 {
17182 /** @var \Illuminate\Routing\Router $instance */
17183 return $instance->newRoute($methods, $uri, $action);
17184 }
17185
17186 /**
17187 * Return the response returned by the given route.
17188 *
17189 * @param string $name
17190 * @return \Symfony\Component\HttpFoundation\Response
17191 * @static
17192 */
17193 public static function respondWithRoute($name)
17194 {
17195 /** @var \Illuminate\Routing\Router $instance */
17196 return $instance->respondWithRoute($name);
17197 }
17198
17199 /**
17200 * Dispatch the request to the application.
17201 *
17202 * @param \Illuminate\Http\Request $request
17203 * @return \Symfony\Component\HttpFoundation\Response
17204 * @static
17205 */
17206 public static function dispatch($request)
17207 {
17208 /** @var \Illuminate\Routing\Router $instance */
17209 return $instance->dispatch($request);
17210 }
17211
17212 /**
17213 * Dispatch the request to a route and return the response.
17214 *
17215 * @param \Illuminate\Http\Request $request
17216 * @return \Symfony\Component\HttpFoundation\Response
17217 * @static
17218 */
17219 public static function dispatchToRoute($request)
17220 {
17221 /** @var \Illuminate\Routing\Router $instance */
17222 return $instance->dispatchToRoute($request);
17223 }
17224
17225 /**
17226 * Gather the middleware for the given route with resolved class names.
17227 *
17228 * @param \Illuminate\Routing\Route $route
17229 * @return array
17230 * @static
17231 */
17232 public static function gatherRouteMiddleware($route)
17233 {
17234 /** @var \Illuminate\Routing\Router $instance */
17235 return $instance->gatherRouteMiddleware($route);
17236 }
17237
17238 /**
17239 * Resolve a flat array of middleware classes from the provided array.
17240 *
17241 * @param array $middleware
17242 * @param array $excluded
17243 * @return array
17244 * @static
17245 */
17246 public static function resolveMiddleware($middleware, $excluded = [])
17247 {
17248 /** @var \Illuminate\Routing\Router $instance */
17249 return $instance->resolveMiddleware($middleware, $excluded);
17250 }
17251
17252 /**
17253 * Create a response instance from the given value.
17254 *
17255 * @param \Symfony\Component\HttpFoundation\Request $request
17256 * @param mixed $response
17257 * @return \Symfony\Component\HttpFoundation\Response
17258 * @static
17259 */
17260 public static function prepareResponse($request, $response)
17261 {
17262 /** @var \Illuminate\Routing\Router $instance */
17263 return $instance->prepareResponse($request, $response);
17264 }
17265
17266 /**
17267 * Static version of prepareResponse.
17268 *
17269 * @param \Symfony\Component\HttpFoundation\Request $request
17270 * @param mixed $response
17271 * @return \Symfony\Component\HttpFoundation\Response
17272 * @static
17273 */
17274 public static function toResponse($request, $response)
17275 {
17276 return \Illuminate\Routing\Router::toResponse($request, $response);
17277 }
17278
17279 /**
17280 * Substitute the route bindings onto the route.
17281 *
17282 * @param \Illuminate\Routing\Route $route
17283 * @return \Illuminate\Routing\Route
17284 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
17285 * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
17286 * @static
17287 */
17288 public static function substituteBindings($route)
17289 {
17290 /** @var \Illuminate\Routing\Router $instance */
17291 return $instance->substituteBindings($route);
17292 }
17293
17294 /**
17295 * Substitute the implicit route bindings for the given route.
17296 *
17297 * @param \Illuminate\Routing\Route $route
17298 * @return void
17299 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
17300 * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
17301 * @static
17302 */
17303 public static function substituteImplicitBindings($route)
17304 {
17305 /** @var \Illuminate\Routing\Router $instance */
17306 $instance->substituteImplicitBindings($route);
17307 }
17308
17309 /**
17310 * Register a callback to run after implicit bindings are substituted.
17311 *
17312 * @param callable $callback
17313 * @return \Illuminate\Routing\Router
17314 * @static
17315 */
17316 public static function substituteImplicitBindingsUsing($callback)
17317 {
17318 /** @var \Illuminate\Routing\Router $instance */
17319 return $instance->substituteImplicitBindingsUsing($callback);
17320 }
17321
17322 /**
17323 * Register a route matched event listener.
17324 *
17325 * @param string|callable $callback
17326 * @return void
17327 * @static
17328 */
17329 public static function matched($callback)
17330 {
17331 /** @var \Illuminate\Routing\Router $instance */
17332 $instance->matched($callback);
17333 }
17334
17335 /**
17336 * Get all of the defined middleware short-hand names.
17337 *
17338 * @return array
17339 * @static
17340 */
17341 public static function getMiddleware()
17342 {
17343 /** @var \Illuminate\Routing\Router $instance */
17344 return $instance->getMiddleware();
17345 }
17346
17347 /**
17348 * Register a short-hand name for a middleware.
17349 *
17350 * @param string $name
17351 * @param string $class
17352 * @return \Illuminate\Routing\Router
17353 * @static
17354 */
17355 public static function aliasMiddleware($name, $class)
17356 {
17357 /** @var \Illuminate\Routing\Router $instance */
17358 return $instance->aliasMiddleware($name, $class);
17359 }
17360
17361 /**
17362 * Check if a middlewareGroup with the given name exists.
17363 *
17364 * @param string $name
17365 * @return bool
17366 * @static
17367 */
17368 public static function hasMiddlewareGroup($name)
17369 {
17370 /** @var \Illuminate\Routing\Router $instance */
17371 return $instance->hasMiddlewareGroup($name);
17372 }
17373
17374 /**
17375 * Get all of the defined middleware groups.
17376 *
17377 * @return array
17378 * @static
17379 */
17380 public static function getMiddlewareGroups()
17381 {
17382 /** @var \Illuminate\Routing\Router $instance */
17383 return $instance->getMiddlewareGroups();
17384 }
17385
17386 /**
17387 * Register a group of middleware.
17388 *
17389 * @param string $name
17390 * @param array $middleware
17391 * @return \Illuminate\Routing\Router
17392 * @static
17393 */
17394 public static function middlewareGroup($name, $middleware)
17395 {
17396 /** @var \Illuminate\Routing\Router $instance */
17397 return $instance->middlewareGroup($name, $middleware);
17398 }
17399
17400 /**
17401 * Add a middleware to the beginning of a middleware group.
17402 *
17403 * If the middleware is already in the group, it will not be added again.
17404 *
17405 * @param string $group
17406 * @param string $middleware
17407 * @return \Illuminate\Routing\Router
17408 * @static
17409 */
17410 public static function prependMiddlewareToGroup($group, $middleware)
17411 {
17412 /** @var \Illuminate\Routing\Router $instance */
17413 return $instance->prependMiddlewareToGroup($group, $middleware);
17414 }
17415
17416 /**
17417 * Add a middleware to the end of a middleware group.
17418 *
17419 * If the middleware is already in the group, it will not be added again.
17420 *
17421 * @param string $group
17422 * @param string $middleware
17423 * @return \Illuminate\Routing\Router
17424 * @static
17425 */
17426 public static function pushMiddlewareToGroup($group, $middleware)
17427 {
17428 /** @var \Illuminate\Routing\Router $instance */
17429 return $instance->pushMiddlewareToGroup($group, $middleware);
17430 }
17431
17432 /**
17433 * Remove the given middleware from the specified group.
17434 *
17435 * @param string $group
17436 * @param string $middleware
17437 * @return \Illuminate\Routing\Router
17438 * @static
17439 */
17440 public static function removeMiddlewareFromGroup($group, $middleware)
17441 {
17442 /** @var \Illuminate\Routing\Router $instance */
17443 return $instance->removeMiddlewareFromGroup($group, $middleware);
17444 }
17445
17446 /**
17447 * Flush the router's middleware groups.
17448 *
17449 * @return \Illuminate\Routing\Router
17450 * @static
17451 */
17452 public static function flushMiddlewareGroups()
17453 {
17454 /** @var \Illuminate\Routing\Router $instance */
17455 return $instance->flushMiddlewareGroups();
17456 }
17457
17458 /**
17459 * Add a new route parameter binder.
17460 *
17461 * @param string $key
17462 * @param string|callable $binder
17463 * @return void
17464 * @static
17465 */
17466 public static function bind($key, $binder)
17467 {
17468 /** @var \Illuminate\Routing\Router $instance */
17469 $instance->bind($key, $binder);
17470 }
17471
17472 /**
17473 * Register a model binder for a wildcard.
17474 *
17475 * @param string $key
17476 * @param string $class
17477 * @param \Closure|null $callback
17478 * @return void
17479 * @static
17480 */
17481 public static function model($key, $class, $callback = null)
17482 {
17483 /** @var \Illuminate\Routing\Router $instance */
17484 $instance->model($key, $class, $callback);
17485 }
17486
17487 /**
17488 * Get the binding callback for a given binding.
17489 *
17490 * @param string $key
17491 * @return \Closure|null
17492 * @static
17493 */
17494 public static function getBindingCallback($key)
17495 {
17496 /** @var \Illuminate\Routing\Router $instance */
17497 return $instance->getBindingCallback($key);
17498 }
17499
17500 /**
17501 * Get the global "where" patterns.
17502 *
17503 * @return array
17504 * @static
17505 */
17506 public static function getPatterns()
17507 {
17508 /** @var \Illuminate\Routing\Router $instance */
17509 return $instance->getPatterns();
17510 }
17511
17512 /**
17513 * Set a global where pattern on all routes.
17514 *
17515 * @param string $key
17516 * @param string $pattern
17517 * @return void
17518 * @static
17519 */
17520 public static function pattern($key, $pattern)
17521 {
17522 /** @var \Illuminate\Routing\Router $instance */
17523 $instance->pattern($key, $pattern);
17524 }
17525
17526 /**
17527 * Set a group of global where patterns on all routes.
17528 *
17529 * @param array $patterns
17530 * @return void
17531 * @static
17532 */
17533 public static function patterns($patterns)
17534 {
17535 /** @var \Illuminate\Routing\Router $instance */
17536 $instance->patterns($patterns);
17537 }
17538
17539 /**
17540 * Determine if the router currently has a group stack.
17541 *
17542 * @return bool
17543 * @static
17544 */
17545 public static function hasGroupStack()
17546 {
17547 /** @var \Illuminate\Routing\Router $instance */
17548 return $instance->hasGroupStack();
17549 }
17550
17551 /**
17552 * Get the current group stack for the router.
17553 *
17554 * @return array
17555 * @static
17556 */
17557 public static function getGroupStack()
17558 {
17559 /** @var \Illuminate\Routing\Router $instance */
17560 return $instance->getGroupStack();
17561 }
17562
17563 /**
17564 * Get a route parameter for the current route.
17565 *
17566 * @param string $key
17567 * @param string|null $default
17568 * @return mixed
17569 * @static
17570 */
17571 public static function input($key, $default = null)
17572 {
17573 /** @var \Illuminate\Routing\Router $instance */
17574 return $instance->input($key, $default);
17575 }
17576
17577 /**
17578 * Get the request currently being dispatched.
17579 *
17580 * @return \Illuminate\Http\Request
17581 * @static
17582 */
17583 public static function getCurrentRequest()
17584 {
17585 /** @var \Illuminate\Routing\Router $instance */
17586 return $instance->getCurrentRequest();
17587 }
17588
17589 /**
17590 * Get the currently dispatched route instance.
17591 *
17592 * @return \Illuminate\Routing\Route|null
17593 * @static
17594 */
17595 public static function getCurrentRoute()
17596 {
17597 /** @var \Illuminate\Routing\Router $instance */
17598 return $instance->getCurrentRoute();
17599 }
17600
17601 /**
17602 * Get the currently dispatched route instance.
17603 *
17604 * @return \Illuminate\Routing\Route|null
17605 * @static
17606 */
17607 public static function current()
17608 {
17609 /** @var \Illuminate\Routing\Router $instance */
17610 return $instance->current();
17611 }
17612
17613 /**
17614 * Check if a route with the given name exists.
17615 *
17616 * @param string|array $name
17617 * @return bool
17618 * @static
17619 */
17620 public static function has($name)
17621 {
17622 /** @var \Illuminate\Routing\Router $instance */
17623 return $instance->has($name);
17624 }
17625
17626 /**
17627 * Get the current route name.
17628 *
17629 * @return string|null
17630 * @static
17631 */
17632 public static function currentRouteName()
17633 {
17634 /** @var \Illuminate\Routing\Router $instance */
17635 return $instance->currentRouteName();
17636 }
17637
17638 /**
17639 * Alias for the "currentRouteNamed" method.
17640 *
17641 * @param mixed $patterns
17642 * @return bool
17643 * @static
17644 */
17645 public static function is(...$patterns)
17646 {
17647 /** @var \Illuminate\Routing\Router $instance */
17648 return $instance->is(...$patterns);
17649 }
17650
17651 /**
17652 * Determine if the current route matches a pattern.
17653 *
17654 * @param mixed $patterns
17655 * @return bool
17656 * @static
17657 */
17658 public static function currentRouteNamed(...$patterns)
17659 {
17660 /** @var \Illuminate\Routing\Router $instance */
17661 return $instance->currentRouteNamed(...$patterns);
17662 }
17663
17664 /**
17665 * Get the current route action.
17666 *
17667 * @return string|null
17668 * @static
17669 */
17670 public static function currentRouteAction()
17671 {
17672 /** @var \Illuminate\Routing\Router $instance */
17673 return $instance->currentRouteAction();
17674 }
17675
17676 /**
17677 * Alias for the "currentRouteUses" method.
17678 *
17679 * @param array|string $patterns
17680 * @return bool
17681 * @static
17682 */
17683 public static function uses(...$patterns)
17684 {
17685 /** @var \Illuminate\Routing\Router $instance */
17686 return $instance->uses(...$patterns);
17687 }
17688
17689 /**
17690 * Determine if the current route action matches a given action.
17691 *
17692 * @param string $action
17693 * @return bool
17694 * @static
17695 */
17696 public static function currentRouteUses($action)
17697 {
17698 /** @var \Illuminate\Routing\Router $instance */
17699 return $instance->currentRouteUses($action);
17700 }
17701
17702 /**
17703 * Set the unmapped global resource parameters to singular.
17704 *
17705 * @param bool $singular
17706 * @return void
17707 * @static
17708 */
17709 public static function singularResourceParameters($singular = true)
17710 {
17711 /** @var \Illuminate\Routing\Router $instance */
17712 $instance->singularResourceParameters($singular);
17713 }
17714
17715 /**
17716 * Set the global resource parameter mapping.
17717 *
17718 * @param array $parameters
17719 * @return void
17720 * @static
17721 */
17722 public static function resourceParameters($parameters = [])
17723 {
17724 /** @var \Illuminate\Routing\Router $instance */
17725 $instance->resourceParameters($parameters);
17726 }
17727
17728 /**
17729 * Get or set the verbs used in the resource URIs.
17730 *
17731 * @param array $verbs
17732 * @return array|null
17733 * @static
17734 */
17735 public static function resourceVerbs($verbs = [])
17736 {
17737 /** @var \Illuminate\Routing\Router $instance */
17738 return $instance->resourceVerbs($verbs);
17739 }
17740
17741 /**
17742 * Get the underlying route collection.
17743 *
17744 * @return \Illuminate\Routing\RouteCollectionInterface
17745 * @static
17746 */
17747 public static function getRoutes()
17748 {
17749 /** @var \Illuminate\Routing\Router $instance */
17750 return $instance->getRoutes();
17751 }
17752
17753 /**
17754 * Set the route collection instance.
17755 *
17756 * @param \Illuminate\Routing\RouteCollection $routes
17757 * @return void
17758 * @static
17759 */
17760 public static function setRoutes($routes)
17761 {
17762 /** @var \Illuminate\Routing\Router $instance */
17763 $instance->setRoutes($routes);
17764 }
17765
17766 /**
17767 * Set the compiled route collection instance.
17768 *
17769 * @param array $routes
17770 * @return void
17771 * @static
17772 */
17773 public static function setCompiledRoutes($routes)
17774 {
17775 /** @var \Illuminate\Routing\Router $instance */
17776 $instance->setCompiledRoutes($routes);
17777 }
17778
17779 /**
17780 * Remove any duplicate middleware from the given array.
17781 *
17782 * @param array $middleware
17783 * @return array
17784 * @static
17785 */
17786 public static function uniqueMiddleware($middleware)
17787 {
17788 return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
17789 }
17790
17791 /**
17792 * Set the container instance used by the router.
17793 *
17794 * @param \Illuminate\Container\Container $container
17795 * @return \Illuminate\Routing\Router
17796 * @static
17797 */
17798 public static function setContainer($container)
17799 {
17800 /** @var \Illuminate\Routing\Router $instance */
17801 return $instance->setContainer($container);
17802 }
17803
17804 /**
17805 * Register a custom macro.
17806 *
17807 * @param string $name
17808 * @param object|callable $macro
17809 * @param-closure-this static $macro
17810 * @return void
17811 * @static
17812 */
17813 public static function macro($name, $macro)
17814 {
17815 \Illuminate\Routing\Router::macro($name, $macro);
17816 }
17817
17818 /**
17819 * Mix another object into the class.
17820 *
17821 * @param object $mixin
17822 * @param bool $replace
17823 * @return void
17824 * @throws \ReflectionException
17825 * @static
17826 */
17827 public static function mixin($mixin, $replace = true)
17828 {
17829 \Illuminate\Routing\Router::mixin($mixin, $replace);
17830 }
17831
17832 /**
17833 * Checks if macro is registered.
17834 *
17835 * @param string $name
17836 * @return bool
17837 * @static
17838 */
17839 public static function hasMacro($name)
17840 {
17841 return \Illuminate\Routing\Router::hasMacro($name);
17842 }
17843
17844 /**
17845 * Flush the existing macros.
17846 *
17847 * @return void
17848 * @static
17849 */
17850 public static function flushMacros()
17851 {
17852 \Illuminate\Routing\Router::flushMacros();
17853 }
17854
17855 /**
17856 * Dynamically handle calls to the class.
17857 *
17858 * @param string $method
17859 * @param array $parameters
17860 * @return mixed
17861 * @throws \BadMethodCallException
17862 * @static
17863 */
17864 public static function macroCall($method, $parameters)
17865 {
17866 /** @var \Illuminate\Routing\Router $instance */
17867 return $instance->macroCall($method, $parameters);
17868 }
17869
17870 /**
17871 * Call the given Closure with this instance then return the instance.
17872 *
17873 * @param (callable($this): mixed)|null $callback
17874 * @return ($callback is null ? \Illuminate\Support\HigherOrderTapProxy : $this)
17875 * @static
17876 */
17877 public static function tap($callback = null)
17878 {
17879 /** @var \Illuminate\Routing\Router $instance */
17880 return $instance->tap($callback);
17881 }
17882
17883 }
17884 /**
17885 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes withoutOverlapping(int $expiresAt = 1440)
17886 * @method static void mergeAttributes(\Illuminate\Console\Scheduling\Event $event)
17887 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes user(string $user)
17888 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes environments(mixed $environments)
17889 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes evenInMaintenanceMode()
17890 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes onOneServer()
17891 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes runInBackground()
17892 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes when(\Closure|bool $callback)
17893 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes skip(\Closure|bool $callback)
17894 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes name(string $description)
17895 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes description(string $description)
17896 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes cron(string $expression)
17897 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes between(string $startTime, string $endTime)
17898 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes unlessBetween(string $startTime, string $endTime)
17899 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySecond()
17900 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoSeconds()
17901 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveSeconds()
17902 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenSeconds()
17903 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenSeconds()
17904 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwentySeconds()
17905 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtySeconds()
17906 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyMinute()
17907 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoMinutes()
17908 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeMinutes()
17909 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourMinutes()
17910 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveMinutes()
17911 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenMinutes()
17912 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenMinutes()
17913 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtyMinutes()
17914 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourly()
17915 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int|int[] $offset)
17916 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyOddHour(array|string|int $offset = 0)
17917 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoHours(array|string|int $offset = 0)
17918 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeHours(array|string|int $offset = 0)
17919 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourHours(array|string|int $offset = 0)
17920 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySixHours(array|string|int $offset = 0)
17921 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes daily()
17922 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes at(string $time)
17923 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes dailyAt(string $time)
17924 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDaily(int $first = 1, int $second = 13)
17925 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDailyAt(int $first = 1, int $second = 13, int $offset = 0)
17926 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekdays()
17927 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekends()
17928 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes mondays()
17929 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes tuesdays()
17930 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes wednesdays()
17931 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes thursdays()
17932 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes fridays()
17933 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes saturdays()
17934 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes sundays()
17935 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekly()
17936 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weeklyOn(mixed $dayOfWeek, string $time = '0:0')
17937 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthly()
17938 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthlyOn(int $dayOfMonth = 1, string $time = '0:0')
17939 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')
17940 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes lastDayOfMonth(string $time = '0:0')
17941 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterly()
17942 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')
17943 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearly()
17944 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')
17945 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes days(mixed $days)
17946 * @method static \Illuminate\Console\Scheduling\PendingEventAttributes timezone(\UnitEnum|\DateTimeZone|string $timezone)
17947 * @see \Illuminate\Console\Scheduling\Schedule
17948 */
17949 class Schedule {
17950 /**
17951 * Add a new callback event to the schedule.
17952 *
17953 * @param string|callable $callback
17954 * @param array $parameters
17955 * @return \Illuminate\Console\Scheduling\CallbackEvent
17956 * @static
17957 */
17958 public static function call($callback, $parameters = [])
17959 {
17960 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
17961 return $instance->call($callback, $parameters);
17962 }
17963
17964 /**
17965 * Add a new Artisan command event to the schedule.
17966 *
17967 * @param \Symfony\Component\Console\Command\Command|string $command
17968 * @param array $parameters
17969 * @return \Illuminate\Console\Scheduling\Event
17970 * @static
17971 */
17972 public static function command($command, $parameters = [])
17973 {
17974 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
17975 return $instance->command($command, $parameters);
17976 }
17977
17978 /**
17979 * Add a new job callback event to the schedule.
17980 *
17981 * @param object|string $job
17982 * @param \UnitEnum|string|null $queue
17983 * @param \UnitEnum|string|null $connection
17984 * @return \Illuminate\Console\Scheduling\CallbackEvent
17985 * @static
17986 */
17987 public static function job($job, $queue = null, $connection = null)
17988 {
17989 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
17990 return $instance->job($job, $queue, $connection);
17991 }
17992
17993 /**
17994 * Add a new command event to the schedule.
17995 *
17996 * @param string $command
17997 * @param array $parameters
17998 * @return \Illuminate\Console\Scheduling\Event
17999 * @static
18000 */
18001 public static function exec($command, $parameters = [])
18002 {
18003 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18004 return $instance->exec($command, $parameters);
18005 }
18006
18007 /**
18008 * Create new schedule group.
18009 *
18010 * @param \Illuminate\Console\Scheduling\Event $event
18011 * @return void
18012 * @throws \RuntimeException
18013 * @static
18014 */
18015 public static function group($events)
18016 {
18017 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18018 $instance->group($events);
18019 }
18020
18021 /**
18022 * Compile array input for a command.
18023 *
18024 * @param string|int $key
18025 * @param array $value
18026 * @return string
18027 * @static
18028 */
18029 public static function compileArrayInput($key, $value)
18030 {
18031 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18032 return $instance->compileArrayInput($key, $value);
18033 }
18034
18035 /**
18036 * Determine if the server is allowed to run this event.
18037 *
18038 * @param \Illuminate\Console\Scheduling\Event $event
18039 * @param \DateTimeInterface $time
18040 * @return bool
18041 * @static
18042 */
18043 public static function serverShouldRun($event, $time)
18044 {
18045 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18046 return $instance->serverShouldRun($event, $time);
18047 }
18048
18049 /**
18050 * Get all of the events on the schedule that are due.
18051 *
18052 * @param \Illuminate\Contracts\Foundation\Application $app
18053 * @return \Illuminate\Support\Collection
18054 * @static
18055 */
18056 public static function dueEvents($app)
18057 {
18058 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18059 return $instance->dueEvents($app);
18060 }
18061
18062 /**
18063 * Get all of the events on the schedule.
18064 *
18065 * @return \Illuminate\Console\Scheduling\Event[]
18066 * @static
18067 */
18068 public static function events()
18069 {
18070 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18071 return $instance->events();
18072 }
18073
18074 /**
18075 * Specify the cache store that should be used to store mutexes.
18076 *
18077 * @param \UnitEnum|string $store
18078 * @return \Illuminate\Console\Scheduling\Schedule
18079 * @static
18080 */
18081 public static function useCache($store)
18082 {
18083 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18084 return $instance->useCache($store);
18085 }
18086
18087 /**
18088 * Register a custom macro.
18089 *
18090 * @param string $name
18091 * @param object|callable $macro
18092 * @param-closure-this static $macro
18093 * @return void
18094 * @static
18095 */
18096 public static function macro($name, $macro)
18097 {
18098 \Illuminate\Console\Scheduling\Schedule::macro($name, $macro);
18099 }
18100
18101 /**
18102 * Mix another object into the class.
18103 *
18104 * @param object $mixin
18105 * @param bool $replace
18106 * @return void
18107 * @throws \ReflectionException
18108 * @static
18109 */
18110 public static function mixin($mixin, $replace = true)
18111 {
18112 \Illuminate\Console\Scheduling\Schedule::mixin($mixin, $replace);
18113 }
18114
18115 /**
18116 * Checks if macro is registered.
18117 *
18118 * @param string $name
18119 * @return bool
18120 * @static
18121 */
18122 public static function hasMacro($name)
18123 {
18124 return \Illuminate\Console\Scheduling\Schedule::hasMacro($name);
18125 }
18126
18127 /**
18128 * Flush the existing macros.
18129 *
18130 * @return void
18131 * @static
18132 */
18133 public static function flushMacros()
18134 {
18135 \Illuminate\Console\Scheduling\Schedule::flushMacros();
18136 }
18137
18138 /**
18139 * Dynamically handle calls to the class.
18140 *
18141 * @param string $method
18142 * @param array $parameters
18143 * @return mixed
18144 * @throws \BadMethodCallException
18145 * @static
18146 */
18147 public static function macroCall($method, $parameters)
18148 {
18149 /** @var \Illuminate\Console\Scheduling\Schedule $instance */
18150 return $instance->macroCall($method, $parameters);
18151 }
18152
18153 }
18154 /**
18155 * @see \Illuminate\Database\Schema\Builder
18156 */
18157 class Schema {
18158 /**
18159 * Drop all tables from the database.
18160 *
18161 * @return void
18162 * @static
18163 */
18164 public static function dropAllTables()
18165 {
18166 //Method inherited from \Illuminate\Database\Schema\MySqlBuilder
18167 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18168 $instance->dropAllTables();
18169 }
18170
18171 /**
18172 * Drop all views from the database.
18173 *
18174 * @return void
18175 * @static
18176 */
18177 public static function dropAllViews()
18178 {
18179 //Method inherited from \Illuminate\Database\Schema\MySqlBuilder
18180 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18181 $instance->dropAllViews();
18182 }
18183
18184 /**
18185 * Get the names of current schemas for the connection.
18186 *
18187 * @return string[]|null
18188 * @static
18189 */
18190 public static function getCurrentSchemaListing()
18191 {
18192 //Method inherited from \Illuminate\Database\Schema\MySqlBuilder
18193 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18194 return $instance->getCurrentSchemaListing();
18195 }
18196
18197 /**
18198 * Set the default string length for migrations.
18199 *
18200 * @param int $length
18201 * @return void
18202 * @static
18203 */
18204 public static function defaultStringLength($length)
18205 {
18206 //Method inherited from \Illuminate\Database\Schema\Builder
18207 \Illuminate\Database\Schema\MariaDbBuilder::defaultStringLength($length);
18208 }
18209
18210 /**
18211 * Set the default time precision for migrations.
18212 *
18213 * @static
18214 */
18215 public static function defaultTimePrecision($precision)
18216 {
18217 //Method inherited from \Illuminate\Database\Schema\Builder
18218 return \Illuminate\Database\Schema\MariaDbBuilder::defaultTimePrecision($precision);
18219 }
18220
18221 /**
18222 * Set the default morph key type for migrations.
18223 *
18224 * @param string $type
18225 * @return void
18226 * @throws \InvalidArgumentException
18227 * @static
18228 */
18229 public static function defaultMorphKeyType($type)
18230 {
18231 //Method inherited from \Illuminate\Database\Schema\Builder
18232 \Illuminate\Database\Schema\MariaDbBuilder::defaultMorphKeyType($type);
18233 }
18234
18235 /**
18236 * Set the default morph key type for migrations to UUIDs.
18237 *
18238 * @return void
18239 * @static
18240 */
18241 public static function morphUsingUuids()
18242 {
18243 //Method inherited from \Illuminate\Database\Schema\Builder
18244 \Illuminate\Database\Schema\MariaDbBuilder::morphUsingUuids();
18245 }
18246
18247 /**
18248 * Set the default morph key type for migrations to ULIDs.
18249 *
18250 * @return void
18251 * @static
18252 */
18253 public static function morphUsingUlids()
18254 {
18255 //Method inherited from \Illuminate\Database\Schema\Builder
18256 \Illuminate\Database\Schema\MariaDbBuilder::morphUsingUlids();
18257 }
18258
18259 /**
18260 * Create a database in the schema.
18261 *
18262 * @param string $name
18263 * @return bool
18264 * @static
18265 */
18266 public static function createDatabase($name)
18267 {
18268 //Method inherited from \Illuminate\Database\Schema\Builder
18269 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18270 return $instance->createDatabase($name);
18271 }
18272
18273 /**
18274 * Drop a database from the schema if the database exists.
18275 *
18276 * @param string $name
18277 * @return bool
18278 * @static
18279 */
18280 public static function dropDatabaseIfExists($name)
18281 {
18282 //Method inherited from \Illuminate\Database\Schema\Builder
18283 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18284 return $instance->dropDatabaseIfExists($name);
18285 }
18286
18287 /**
18288 * Get the schemas that belong to the connection.
18289 *
18290 * @return \Illuminate\Database\Schema\list<array{name: string, path: string|null, default: bool}>
18291 * @static
18292 */
18293 public static function getSchemas()
18294 {
18295 //Method inherited from \Illuminate\Database\Schema\Builder
18296 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18297 return $instance->getSchemas();
18298 }
18299
18300 /**
18301 * Determine if the given table exists.
18302 *
18303 * @param string $table
18304 * @return bool
18305 * @static
18306 */
18307 public static function hasTable($table)
18308 {
18309 //Method inherited from \Illuminate\Database\Schema\Builder
18310 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18311 return $instance->hasTable($table);
18312 }
18313
18314 /**
18315 * Determine if the given view exists.
18316 *
18317 * @param string $view
18318 * @return bool
18319 * @static
18320 */
18321 public static function hasView($view)
18322 {
18323 //Method inherited from \Illuminate\Database\Schema\Builder
18324 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18325 return $instance->hasView($view);
18326 }
18327
18328 /**
18329 * Get the tables that belong to the connection.
18330 *
18331 * @param string|string[]|null $schema
18332 * @return \Illuminate\Database\Schema\list<array{name: string, schema: string|null, schema_qualified_name: string, size: int|null, comment: string|null, collation: string|null, engine: string|null}>
18333 * @static
18334 */
18335 public static function getTables($schema = null)
18336 {
18337 //Method inherited from \Illuminate\Database\Schema\Builder
18338 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18339 return $instance->getTables($schema);
18340 }
18341
18342 /**
18343 * Get the names of the tables that belong to the connection.
18344 *
18345 * @param string|string[]|null $schema
18346 * @param bool $schemaQualified
18347 * @return list<string>
18348 * @static
18349 */
18350 public static function getTableListing($schema = null, $schemaQualified = true)
18351 {
18352 //Method inherited from \Illuminate\Database\Schema\Builder
18353 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18354 return $instance->getTableListing($schema, $schemaQualified);
18355 }
18356
18357 /**
18358 * Get the views that belong to the connection.
18359 *
18360 * @param string|string[]|null $schema
18361 * @return \Illuminate\Database\Schema\list<array{name: string, schema: string|null, schema_qualified_name: string, definition: string}>
18362 * @static
18363 */
18364 public static function getViews($schema = null)
18365 {
18366 //Method inherited from \Illuminate\Database\Schema\Builder
18367 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18368 return $instance->getViews($schema);
18369 }
18370
18371 /**
18372 * Get the user-defined types that belong to the connection.
18373 *
18374 * @param string|string[]|null $schema
18375 * @return \Illuminate\Database\Schema\list<array{name: string, schema: string, type: string, type: string, category: string, implicit: bool}>
18376 * @static
18377 */
18378 public static function getTypes($schema = null)
18379 {
18380 //Method inherited from \Illuminate\Database\Schema\Builder
18381 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18382 return $instance->getTypes($schema);
18383 }
18384
18385 /**
18386 * Determine if the given table has a given column.
18387 *
18388 * @param string $table
18389 * @param string $column
18390 * @return bool
18391 * @static
18392 */
18393 public static function hasColumn($table, $column)
18394 {
18395 //Method inherited from \Illuminate\Database\Schema\Builder
18396 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18397 return $instance->hasColumn($table, $column);
18398 }
18399
18400 /**
18401 * Determine if the given table has given columns.
18402 *
18403 * @param string $table
18404 * @param array<string> $columns
18405 * @return bool
18406 * @static
18407 */
18408 public static function hasColumns($table, $columns)
18409 {
18410 //Method inherited from \Illuminate\Database\Schema\Builder
18411 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18412 return $instance->hasColumns($table, $columns);
18413 }
18414
18415 /**
18416 * Execute a table builder callback if the given table has a given column.
18417 *
18418 * @param string $table
18419 * @param string $column
18420 * @param \Closure $callback
18421 * @return void
18422 * @static
18423 */
18424 public static function whenTableHasColumn($table, $column, $callback)
18425 {
18426 //Method inherited from \Illuminate\Database\Schema\Builder
18427 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18428 $instance->whenTableHasColumn($table, $column, $callback);
18429 }
18430
18431 /**
18432 * Execute a table builder callback if the given table doesn't have a given column.
18433 *
18434 * @param string $table
18435 * @param string $column
18436 * @param \Closure $callback
18437 * @return void
18438 * @static
18439 */
18440 public static function whenTableDoesntHaveColumn($table, $column, $callback)
18441 {
18442 //Method inherited from \Illuminate\Database\Schema\Builder
18443 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18444 $instance->whenTableDoesntHaveColumn($table, $column, $callback);
18445 }
18446
18447 /**
18448 * Get the data type for the given column name.
18449 *
18450 * @param string $table
18451 * @param string $column
18452 * @param bool $fullDefinition
18453 * @return string
18454 * @static
18455 */
18456 public static function getColumnType($table, $column, $fullDefinition = false)
18457 {
18458 //Method inherited from \Illuminate\Database\Schema\Builder
18459 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18460 return $instance->getColumnType($table, $column, $fullDefinition);
18461 }
18462
18463 /**
18464 * Get the column listing for a given table.
18465 *
18466 * @param string $table
18467 * @return list<string>
18468 * @static
18469 */
18470 public static function getColumnListing($table)
18471 {
18472 //Method inherited from \Illuminate\Database\Schema\Builder
18473 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18474 return $instance->getColumnListing($table);
18475 }
18476
18477 /**
18478 * Get the columns for a given table.
18479 *
18480 * @param string $table
18481 * @return \Illuminate\Database\Schema\list<array{name: string, type: string, type_name: string, nullable: bool, default: mixed, auto_increment: bool, comment: string|null, generation: array{type: string, expression: string|null}|null}>
18482 * @static
18483 */
18484 public static function getColumns($table)
18485 {
18486 //Method inherited from \Illuminate\Database\Schema\Builder
18487 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18488 return $instance->getColumns($table);
18489 }
18490
18491 /**
18492 * Get the indexes for a given table.
18493 *
18494 * @param string $table
18495 * @return \Illuminate\Database\Schema\list<array{name: string, columns: list<string>, type: string, unique: bool, primary: bool}>
18496 * @static
18497 */
18498 public static function getIndexes($table)
18499 {
18500 //Method inherited from \Illuminate\Database\Schema\Builder
18501 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18502 return $instance->getIndexes($table);
18503 }
18504
18505 /**
18506 * Get the names of the indexes for a given table.
18507 *
18508 * @param string $table
18509 * @return list<string>
18510 * @static
18511 */
18512 public static function getIndexListing($table)
18513 {
18514 //Method inherited from \Illuminate\Database\Schema\Builder
18515 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18516 return $instance->getIndexListing($table);
18517 }
18518
18519 /**
18520 * Determine if the given table has a given index.
18521 *
18522 * @param string $table
18523 * @param string|array $index
18524 * @param string|null $type
18525 * @return bool
18526 * @static
18527 */
18528 public static function hasIndex($table, $index, $type = null)
18529 {
18530 //Method inherited from \Illuminate\Database\Schema\Builder
18531 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18532 return $instance->hasIndex($table, $index, $type);
18533 }
18534
18535 /**
18536 * Get the foreign keys for a given table.
18537 *
18538 * @param string $table
18539 * @return array
18540 * @static
18541 */
18542 public static function getForeignKeys($table)
18543 {
18544 //Method inherited from \Illuminate\Database\Schema\Builder
18545 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18546 return $instance->getForeignKeys($table);
18547 }
18548
18549 /**
18550 * Modify a table on the schema.
18551 *
18552 * @param string $table
18553 * @param \Closure $callback
18554 * @return void
18555 * @static
18556 */
18557 public static function table($table, $callback)
18558 {
18559 //Method inherited from \Illuminate\Database\Schema\Builder
18560 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18561 $instance->table($table, $callback);
18562 }
18563
18564 /**
18565 * Create a new table on the schema.
18566 *
18567 * @param string $table
18568 * @param \Closure $callback
18569 * @return void
18570 * @static
18571 */
18572 public static function create($table, $callback)
18573 {
18574 //Method inherited from \Illuminate\Database\Schema\Builder
18575 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18576 $instance->create($table, $callback);
18577 }
18578
18579 /**
18580 * Drop a table from the schema.
18581 *
18582 * @param string $table
18583 * @return void
18584 * @static
18585 */
18586 public static function drop($table)
18587 {
18588 //Method inherited from \Illuminate\Database\Schema\Builder
18589 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18590 $instance->drop($table);
18591 }
18592
18593 /**
18594 * Drop a table from the schema if it exists.
18595 *
18596 * @param string $table
18597 * @return void
18598 * @static
18599 */
18600 public static function dropIfExists($table)
18601 {
18602 //Method inherited from \Illuminate\Database\Schema\Builder
18603 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18604 $instance->dropIfExists($table);
18605 }
18606
18607 /**
18608 * Drop columns from a table schema.
18609 *
18610 * @param string $table
18611 * @param string|array<string> $columns
18612 * @return void
18613 * @static
18614 */
18615 public static function dropColumns($table, $columns)
18616 {
18617 //Method inherited from \Illuminate\Database\Schema\Builder
18618 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18619 $instance->dropColumns($table, $columns);
18620 }
18621
18622 /**
18623 * Drop all types from the database.
18624 *
18625 * @return void
18626 * @throws \LogicException
18627 * @static
18628 */
18629 public static function dropAllTypes()
18630 {
18631 //Method inherited from \Illuminate\Database\Schema\Builder
18632 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18633 $instance->dropAllTypes();
18634 }
18635
18636 /**
18637 * Rename a table on the schema.
18638 *
18639 * @param string $from
18640 * @param string $to
18641 * @return void
18642 * @static
18643 */
18644 public static function rename($from, $to)
18645 {
18646 //Method inherited from \Illuminate\Database\Schema\Builder
18647 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18648 $instance->rename($from, $to);
18649 }
18650
18651 /**
18652 * Enable foreign key constraints.
18653 *
18654 * @return bool
18655 * @static
18656 */
18657 public static function enableForeignKeyConstraints()
18658 {
18659 //Method inherited from \Illuminate\Database\Schema\Builder
18660 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18661 return $instance->enableForeignKeyConstraints();
18662 }
18663
18664 /**
18665 * Disable foreign key constraints.
18666 *
18667 * @return bool
18668 * @static
18669 */
18670 public static function disableForeignKeyConstraints()
18671 {
18672 //Method inherited from \Illuminate\Database\Schema\Builder
18673 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18674 return $instance->disableForeignKeyConstraints();
18675 }
18676
18677 /**
18678 * Disable foreign key constraints during the execution of a callback.
18679 *
18680 * @param \Closure $callback
18681 * @return mixed
18682 * @static
18683 */
18684 public static function withoutForeignKeyConstraints($callback)
18685 {
18686 //Method inherited from \Illuminate\Database\Schema\Builder
18687 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18688 return $instance->withoutForeignKeyConstraints($callback);
18689 }
18690
18691 /**
18692 * Get the default schema name for the connection.
18693 *
18694 * @return string|null
18695 * @static
18696 */
18697 public static function getCurrentSchemaName()
18698 {
18699 //Method inherited from \Illuminate\Database\Schema\Builder
18700 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18701 return $instance->getCurrentSchemaName();
18702 }
18703
18704 /**
18705 * Parse the given database object reference and extract the schema and table.
18706 *
18707 * @param string $reference
18708 * @param string|bool|null $withDefaultSchema
18709 * @return array
18710 * @static
18711 */
18712 public static function parseSchemaAndTable($reference, $withDefaultSchema = null)
18713 {
18714 //Method inherited from \Illuminate\Database\Schema\Builder
18715 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18716 return $instance->parseSchemaAndTable($reference, $withDefaultSchema);
18717 }
18718
18719 /**
18720 * Get the database connection instance.
18721 *
18722 * @return \Illuminate\Database\Connection
18723 * @static
18724 */
18725 public static function getConnection()
18726 {
18727 //Method inherited from \Illuminate\Database\Schema\Builder
18728 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18729 return $instance->getConnection();
18730 }
18731
18732 /**
18733 * Set the Schema Blueprint resolver callback.
18734 *
18735 * @param \Closure(\Illuminate\Database\Connection, string, \Closure|null): \Illuminate\Database\Schema\Blueprint $resolver
18736 * @return void
18737 * @static
18738 */
18739 public static function blueprintResolver($resolver)
18740 {
18741 //Method inherited from \Illuminate\Database\Schema\Builder
18742 /** @var \Illuminate\Database\Schema\MariaDbBuilder $instance */
18743 $instance->blueprintResolver($resolver);
18744 }
18745
18746 /**
18747 * Register a custom macro.
18748 *
18749 * @param string $name
18750 * @param object|callable $macro
18751 * @param-closure-this static $macro
18752 * @return void
18753 * @static
18754 */
18755 public static function macro($name, $macro)
18756 {
18757 //Method inherited from \Illuminate\Database\Schema\Builder
18758 \Illuminate\Database\Schema\MariaDbBuilder::macro($name, $macro);
18759 }
18760
18761 /**
18762 * Mix another object into the class.
18763 *
18764 * @param object $mixin
18765 * @param bool $replace
18766 * @return void
18767 * @throws \ReflectionException
18768 * @static
18769 */
18770 public static function mixin($mixin, $replace = true)
18771 {
18772 //Method inherited from \Illuminate\Database\Schema\Builder
18773 \Illuminate\Database\Schema\MariaDbBuilder::mixin($mixin, $replace);
18774 }
18775
18776 /**
18777 * Checks if macro is registered.
18778 *
18779 * @param string $name
18780 * @return bool
18781 * @static
18782 */
18783 public static function hasMacro($name)
18784 {
18785 //Method inherited from \Illuminate\Database\Schema\Builder
18786 return \Illuminate\Database\Schema\MariaDbBuilder::hasMacro($name);
18787 }
18788
18789 /**
18790 * Flush the existing macros.
18791 *
18792 * @return void
18793 * @static
18794 */
18795 public static function flushMacros()
18796 {
18797 //Method inherited from \Illuminate\Database\Schema\Builder
18798 \Illuminate\Database\Schema\MariaDbBuilder::flushMacros();
18799 }
18800
18801 }
18802 /**
18803 * @see \Illuminate\Session\SessionManager
18804 */
18805 class Session {
18806 /**
18807 * Determine if requests for the same session should wait for each to finish before executing.
18808 *
18809 * @return bool
18810 * @static
18811 */
18812 public static function shouldBlock()
18813 {
18814 /** @var \Illuminate\Session\SessionManager $instance */
18815 return $instance->shouldBlock();
18816 }
18817
18818 /**
18819 * Get the name of the cache store / driver that should be used to acquire session locks.
18820 *
18821 * @return string|null
18822 * @static
18823 */
18824 public static function blockDriver()
18825 {
18826 /** @var \Illuminate\Session\SessionManager $instance */
18827 return $instance->blockDriver();
18828 }
18829
18830 /**
18831 * Get the maximum number of seconds the session lock should be held for.
18832 *
18833 * @return int
18834 * @static
18835 */
18836 public static function defaultRouteBlockLockSeconds()
18837 {
18838 /** @var \Illuminate\Session\SessionManager $instance */
18839 return $instance->defaultRouteBlockLockSeconds();
18840 }
18841
18842 /**
18843 * Get the maximum number of seconds to wait while attempting to acquire a route block session lock.
18844 *
18845 * @return int
18846 * @static
18847 */
18848 public static function defaultRouteBlockWaitSeconds()
18849 {
18850 /** @var \Illuminate\Session\SessionManager $instance */
18851 return $instance->defaultRouteBlockWaitSeconds();
18852 }
18853
18854 /**
18855 * Get the session configuration.
18856 *
18857 * @return array
18858 * @static
18859 */
18860 public static function getSessionConfig()
18861 {
18862 /** @var \Illuminate\Session\SessionManager $instance */
18863 return $instance->getSessionConfig();
18864 }
18865
18866 /**
18867 * Get the default session driver name.
18868 *
18869 * @return string|null
18870 * @static
18871 */
18872 public static function getDefaultDriver()
18873 {
18874 /** @var \Illuminate\Session\SessionManager $instance */
18875 return $instance->getDefaultDriver();
18876 }
18877
18878 /**
18879 * Set the default session driver name.
18880 *
18881 * @param string $name
18882 * @return void
18883 * @static
18884 */
18885 public static function setDefaultDriver($name)
18886 {
18887 /** @var \Illuminate\Session\SessionManager $instance */
18888 $instance->setDefaultDriver($name);
18889 }
18890
18891 /**
18892 * Get a driver instance.
18893 *
18894 * @param string|null $driver
18895 * @return mixed
18896 * @throws \InvalidArgumentException
18897 * @static
18898 */
18899 public static function driver($driver = null)
18900 {
18901 //Method inherited from \Illuminate\Support\Manager
18902 /** @var \Illuminate\Session\SessionManager $instance */
18903 return $instance->driver($driver);
18904 }
18905
18906 /**
18907 * Register a custom driver creator Closure.
18908 *
18909 * @param string $driver
18910 * @param \Closure $callback
18911 * @return \Illuminate\Session\SessionManager
18912 * @static
18913 */
18914 public static function extend($driver, $callback)
18915 {
18916 //Method inherited from \Illuminate\Support\Manager
18917 /** @var \Illuminate\Session\SessionManager $instance */
18918 return $instance->extend($driver, $callback);
18919 }
18920
18921 /**
18922 * Get all of the created "drivers".
18923 *
18924 * @return array
18925 * @static
18926 */
18927 public static function getDrivers()
18928 {
18929 //Method inherited from \Illuminate\Support\Manager
18930 /** @var \Illuminate\Session\SessionManager $instance */
18931 return $instance->getDrivers();
18932 }
18933
18934 /**
18935 * Get the container instance used by the manager.
18936 *
18937 * @return \Illuminate\Contracts\Container\Container
18938 * @static
18939 */
18940 public static function getContainer()
18941 {
18942 //Method inherited from \Illuminate\Support\Manager
18943 /** @var \Illuminate\Session\SessionManager $instance */
18944 return $instance->getContainer();
18945 }
18946
18947 /**
18948 * Set the container instance used by the manager.
18949 *
18950 * @param \Illuminate\Contracts\Container\Container $container
18951 * @return \Illuminate\Session\SessionManager
18952 * @static
18953 */
18954 public static function setContainer($container)
18955 {
18956 //Method inherited from \Illuminate\Support\Manager
18957 /** @var \Illuminate\Session\SessionManager $instance */
18958 return $instance->setContainer($container);
18959 }
18960
18961 /**
18962 * Forget all of the resolved driver instances.
18963 *
18964 * @return \Illuminate\Session\SessionManager
18965 * @static
18966 */
18967 public static function forgetDrivers()
18968 {
18969 //Method inherited from \Illuminate\Support\Manager
18970 /** @var \Illuminate\Session\SessionManager $instance */
18971 return $instance->forgetDrivers();
18972 }
18973
18974 /**
18975 * Start the session, reading the data from a handler.
18976 *
18977 * @return bool
18978 * @static
18979 */
18980 public static function start()
18981 {
18982 /** @var \Illuminate\Session\Store $instance */
18983 return $instance->start();
18984 }
18985
18986 /**
18987 * Save the session data to storage.
18988 *
18989 * @return void
18990 * @static
18991 */
18992 public static function save()
18993 {
18994 /** @var \Illuminate\Session\Store $instance */
18995 $instance->save();
18996 }
18997
18998 /**
18999 * Age the flash data for the session.
19000 *
19001 * @return void
19002 * @static
19003 */
19004 public static function ageFlashData()
19005 {
19006 /** @var \Illuminate\Session\Store $instance */
19007 $instance->ageFlashData();
19008 }
19009
19010 /**
19011 * Get all of the session data.
19012 *
19013 * @return array
19014 * @static
19015 */
19016 public static function all()
19017 {
19018 /** @var \Illuminate\Session\Store $instance */
19019 return $instance->all();
19020 }
19021
19022 /**
19023 * Get a subset of the session data.
19024 *
19025 * @param array $keys
19026 * @return array
19027 * @static
19028 */
19029 public static function only($keys)
19030 {
19031 /** @var \Illuminate\Session\Store $instance */
19032 return $instance->only($keys);
19033 }
19034
19035 /**
19036 * Get all the session data except for a specified array of items.
19037 *
19038 * @param array $keys
19039 * @return array
19040 * @static
19041 */
19042 public static function except($keys)
19043 {
19044 /** @var \Illuminate\Session\Store $instance */
19045 return $instance->except($keys);
19046 }
19047
19048 /**
19049 * Checks if a key exists.
19050 *
19051 * @param string|array $key
19052 * @return bool
19053 * @static
19054 */
19055 public static function exists($key)
19056 {
19057 /** @var \Illuminate\Session\Store $instance */
19058 return $instance->exists($key);
19059 }
19060
19061 /**
19062 * Determine if the given key is missing from the session data.
19063 *
19064 * @param string|array $key
19065 * @return bool
19066 * @static
19067 */
19068 public static function missing($key)
19069 {
19070 /** @var \Illuminate\Session\Store $instance */
19071 return $instance->missing($key);
19072 }
19073
19074 /**
19075 * Determine if a key is present and not null.
19076 *
19077 * @param string|array $key
19078 * @return bool
19079 * @static
19080 */
19081 public static function has($key)
19082 {
19083 /** @var \Illuminate\Session\Store $instance */
19084 return $instance->has($key);
19085 }
19086
19087 /**
19088 * Determine if any of the given keys are present and not null.
19089 *
19090 * @param string|array $key
19091 * @return bool
19092 * @static
19093 */
19094 public static function hasAny($key)
19095 {
19096 /** @var \Illuminate\Session\Store $instance */
19097 return $instance->hasAny($key);
19098 }
19099
19100 /**
19101 * Get an item from the session.
19102 *
19103 * @param string $key
19104 * @param mixed $default
19105 * @return mixed
19106 * @static
19107 */
19108 public static function get($key, $default = null)
19109 {
19110 /** @var \Illuminate\Session\Store $instance */
19111 return $instance->get($key, $default);
19112 }
19113
19114 /**
19115 * Get the value of a given key and then forget it.
19116 *
19117 * @param string $key
19118 * @param mixed $default
19119 * @return mixed
19120 * @static
19121 */
19122 public static function pull($key, $default = null)
19123 {
19124 /** @var \Illuminate\Session\Store $instance */
19125 return $instance->pull($key, $default);
19126 }
19127
19128 /**
19129 * Determine if the session contains old input.
19130 *
19131 * @param string|null $key
19132 * @return bool
19133 * @static
19134 */
19135 public static function hasOldInput($key = null)
19136 {
19137 /** @var \Illuminate\Session\Store $instance */
19138 return $instance->hasOldInput($key);
19139 }
19140
19141 /**
19142 * Get the requested item from the flashed input array.
19143 *
19144 * @param string|null $key
19145 * @param mixed $default
19146 * @return mixed
19147 * @static
19148 */
19149 public static function getOldInput($key = null, $default = null)
19150 {
19151 /** @var \Illuminate\Session\Store $instance */
19152 return $instance->getOldInput($key, $default);
19153 }
19154
19155 /**
19156 * Replace the given session attributes entirely.
19157 *
19158 * @param array $attributes
19159 * @return void
19160 * @static
19161 */
19162 public static function replace($attributes)
19163 {
19164 /** @var \Illuminate\Session\Store $instance */
19165 $instance->replace($attributes);
19166 }
19167
19168 /**
19169 * Put a key / value pair or array of key / value pairs in the session.
19170 *
19171 * @param string|array $key
19172 * @param mixed $value
19173 * @return void
19174 * @static
19175 */
19176 public static function put($key, $value = null)
19177 {
19178 /** @var \Illuminate\Session\Store $instance */
19179 $instance->put($key, $value);
19180 }
19181
19182 /**
19183 * Get an item from the session, or store the default value.
19184 *
19185 * @param string $key
19186 * @param \Closure $callback
19187 * @return mixed
19188 * @static
19189 */
19190 public static function remember($key, $callback)
19191 {
19192 /** @var \Illuminate\Session\Store $instance */
19193 return $instance->remember($key, $callback);
19194 }
19195
19196 /**
19197 * Push a value onto a session array.
19198 *
19199 * @param string $key
19200 * @param mixed $value
19201 * @return void
19202 * @static
19203 */
19204 public static function push($key, $value)
19205 {
19206 /** @var \Illuminate\Session\Store $instance */
19207 $instance->push($key, $value);
19208 }
19209
19210 /**
19211 * Increment the value of an item in the session.
19212 *
19213 * @param string $key
19214 * @param int $amount
19215 * @return mixed
19216 * @static
19217 */
19218 public static function increment($key, $amount = 1)
19219 {
19220 /** @var \Illuminate\Session\Store $instance */
19221 return $instance->increment($key, $amount);
19222 }
19223
19224 /**
19225 * Decrement the value of an item in the session.
19226 *
19227 * @param string $key
19228 * @param int $amount
19229 * @return int
19230 * @static
19231 */
19232 public static function decrement($key, $amount = 1)
19233 {
19234 /** @var \Illuminate\Session\Store $instance */
19235 return $instance->decrement($key, $amount);
19236 }
19237
19238 /**
19239 * Flash a key / value pair to the session.
19240 *
19241 * @param string $key
19242 * @param mixed $value
19243 * @return void
19244 * @static
19245 */
19246 public static function flash($key, $value = true)
19247 {
19248 /** @var \Illuminate\Session\Store $instance */
19249 $instance->flash($key, $value);
19250 }
19251
19252 /**
19253 * Flash a key / value pair to the session for immediate use.
19254 *
19255 * @param string $key
19256 * @param mixed $value
19257 * @return void
19258 * @static
19259 */
19260 public static function now($key, $value)
19261 {
19262 /** @var \Illuminate\Session\Store $instance */
19263 $instance->now($key, $value);
19264 }
19265
19266 /**
19267 * Reflash all of the session flash data.
19268 *
19269 * @return void
19270 * @static
19271 */
19272 public static function reflash()
19273 {
19274 /** @var \Illuminate\Session\Store $instance */
19275 $instance->reflash();
19276 }
19277
19278 /**
19279 * Reflash a subset of the current flash data.
19280 *
19281 * @param mixed $keys
19282 * @return void
19283 * @static
19284 */
19285 public static function keep($keys = null)
19286 {
19287 /** @var \Illuminate\Session\Store $instance */
19288 $instance->keep($keys);
19289 }
19290
19291 /**
19292 * Flash an input array to the session.
19293 *
19294 * @param array $value
19295 * @return void
19296 * @static
19297 */
19298 public static function flashInput($value)
19299 {
19300 /** @var \Illuminate\Session\Store $instance */
19301 $instance->flashInput($value);
19302 }
19303
19304 /**
19305 * Get the session cache instance.
19306 *
19307 * @return \Illuminate\Contracts\Cache\Repository
19308 * @static
19309 */
19310 public static function cache()
19311 {
19312 /** @var \Illuminate\Session\Store $instance */
19313 return $instance->cache();
19314 }
19315
19316 /**
19317 * Remove an item from the session, returning its value.
19318 *
19319 * @param string $key
19320 * @return mixed
19321 * @static
19322 */
19323 public static function remove($key)
19324 {
19325 /** @var \Illuminate\Session\Store $instance */
19326 return $instance->remove($key);
19327 }
19328
19329 /**
19330 * Remove one or many items from the session.
19331 *
19332 * @param string|array $keys
19333 * @return void
19334 * @static
19335 */
19336 public static function forget($keys)
19337 {
19338 /** @var \Illuminate\Session\Store $instance */
19339 $instance->forget($keys);
19340 }
19341
19342 /**
19343 * Remove all of the items from the session.
19344 *
19345 * @return void
19346 * @static
19347 */
19348 public static function flush()
19349 {
19350 /** @var \Illuminate\Session\Store $instance */
19351 $instance->flush();
19352 }
19353
19354 /**
19355 * Flush the session data and regenerate the ID.
19356 *
19357 * @return bool
19358 * @static
19359 */
19360 public static function invalidate()
19361 {
19362 /** @var \Illuminate\Session\Store $instance */
19363 return $instance->invalidate();
19364 }
19365
19366 /**
19367 * Generate a new session identifier.
19368 *
19369 * @param bool $destroy
19370 * @return bool
19371 * @static
19372 */
19373 public static function regenerate($destroy = false)
19374 {
19375 /** @var \Illuminate\Session\Store $instance */
19376 return $instance->regenerate($destroy);
19377 }
19378
19379 /**
19380 * Generate a new session ID for the session.
19381 *
19382 * @param bool $destroy
19383 * @return bool
19384 * @static
19385 */
19386 public static function migrate($destroy = false)
19387 {
19388 /** @var \Illuminate\Session\Store $instance */
19389 return $instance->migrate($destroy);
19390 }
19391
19392 /**
19393 * Determine if the session has been started.
19394 *
19395 * @return bool
19396 * @static
19397 */
19398 public static function isStarted()
19399 {
19400 /** @var \Illuminate\Session\Store $instance */
19401 return $instance->isStarted();
19402 }
19403
19404 /**
19405 * Get the name of the session.
19406 *
19407 * @return string
19408 * @static
19409 */
19410 public static function getName()
19411 {
19412 /** @var \Illuminate\Session\Store $instance */
19413 return $instance->getName();
19414 }
19415
19416 /**
19417 * Set the name of the session.
19418 *
19419 * @param string $name
19420 * @return void
19421 * @static
19422 */
19423 public static function setName($name)
19424 {
19425 /** @var \Illuminate\Session\Store $instance */
19426 $instance->setName($name);
19427 }
19428
19429 /**
19430 * Get the current session ID.
19431 *
19432 * @return string
19433 * @static
19434 */
19435 public static function id()
19436 {
19437 /** @var \Illuminate\Session\Store $instance */
19438 return $instance->id();
19439 }
19440
19441 /**
19442 * Get the current session ID.
19443 *
19444 * @return string
19445 * @static
19446 */
19447 public static function getId()
19448 {
19449 /** @var \Illuminate\Session\Store $instance */
19450 return $instance->getId();
19451 }
19452
19453 /**
19454 * Set the session ID.
19455 *
19456 * @param string|null $id
19457 * @return void
19458 * @static
19459 */
19460 public static function setId($id)
19461 {
19462 /** @var \Illuminate\Session\Store $instance */
19463 $instance->setId($id);
19464 }
19465
19466 /**
19467 * Determine if this is a valid session ID.
19468 *
19469 * @param string|null $id
19470 * @return bool
19471 * @static
19472 */
19473 public static function isValidId($id)
19474 {
19475 /** @var \Illuminate\Session\Store $instance */
19476 return $instance->isValidId($id);
19477 }
19478
19479 /**
19480 * Set the existence of the session on the handler if applicable.
19481 *
19482 * @param bool $value
19483 * @return void
19484 * @static
19485 */
19486 public static function setExists($value)
19487 {
19488 /** @var \Illuminate\Session\Store $instance */
19489 $instance->setExists($value);
19490 }
19491
19492 /**
19493 * Get the CSRF token value.
19494 *
19495 * @return string
19496 * @static
19497 */
19498 public static function token()
19499 {
19500 /** @var \Illuminate\Session\Store $instance */
19501 return $instance->token();
19502 }
19503
19504 /**
19505 * Regenerate the CSRF token value.
19506 *
19507 * @return void
19508 * @static
19509 */
19510 public static function regenerateToken()
19511 {
19512 /** @var \Illuminate\Session\Store $instance */
19513 $instance->regenerateToken();
19514 }
19515
19516 /**
19517 * Determine if the previous URI is available.
19518 *
19519 * @return bool
19520 * @static
19521 */
19522 public static function hasPreviousUri()
19523 {
19524 /** @var \Illuminate\Session\Store $instance */
19525 return $instance->hasPreviousUri();
19526 }
19527
19528 /**
19529 * Get the previous URL from the session as a URI instance.
19530 *
19531 * @return \Illuminate\Support\Uri
19532 * @throws \RuntimeException
19533 * @static
19534 */
19535 public static function previousUri()
19536 {
19537 /** @var \Illuminate\Session\Store $instance */
19538 return $instance->previousUri();
19539 }
19540
19541 /**
19542 * Get the previous URL from the session.
19543 *
19544 * @return string|null
19545 * @static
19546 */
19547 public static function previousUrl()
19548 {
19549 /** @var \Illuminate\Session\Store $instance */
19550 return $instance->previousUrl();
19551 }
19552
19553 /**
19554 * Set the "previous" URL in the session.
19555 *
19556 * @param string $url
19557 * @return void
19558 * @static
19559 */
19560 public static function setPreviousUrl($url)
19561 {
19562 /** @var \Illuminate\Session\Store $instance */
19563 $instance->setPreviousUrl($url);
19564 }
19565
19566 /**
19567 * Get the previous route name from the session.
19568 *
19569 * @return string|null
19570 * @static
19571 */
19572 public static function previousRoute()
19573 {
19574 /** @var \Illuminate\Session\Store $instance */
19575 return $instance->previousRoute();
19576 }
19577
19578 /**
19579 * Set the "previous" route name in the session.
19580 *
19581 * @param string|null $route
19582 * @return void
19583 * @static
19584 */
19585 public static function setPreviousRoute($route)
19586 {
19587 /** @var \Illuminate\Session\Store $instance */
19588 $instance->setPreviousRoute($route);
19589 }
19590
19591 /**
19592 * Specify that the user has confirmed their password.
19593 *
19594 * @return void
19595 * @static
19596 */
19597 public static function passwordConfirmed()
19598 {
19599 /** @var \Illuminate\Session\Store $instance */
19600 $instance->passwordConfirmed();
19601 }
19602
19603 /**
19604 * Get the underlying session handler implementation.
19605 *
19606 * @return \SessionHandlerInterface
19607 * @static
19608 */
19609 public static function getHandler()
19610 {
19611 /** @var \Illuminate\Session\Store $instance */
19612 return $instance->getHandler();
19613 }
19614
19615 /**
19616 * Set the underlying session handler implementation.
19617 *
19618 * @param \SessionHandlerInterface $handler
19619 * @return \SessionHandlerInterface
19620 * @static
19621 */
19622 public static function setHandler($handler)
19623 {
19624 /** @var \Illuminate\Session\Store $instance */
19625 return $instance->setHandler($handler);
19626 }
19627
19628 /**
19629 * Determine if the session handler needs a request.
19630 *
19631 * @return bool
19632 * @static
19633 */
19634 public static function handlerNeedsRequest()
19635 {
19636 /** @var \Illuminate\Session\Store $instance */
19637 return $instance->handlerNeedsRequest();
19638 }
19639
19640 /**
19641 * Set the request on the handler instance.
19642 *
19643 * @param \Illuminate\Http\Request $request
19644 * @return void
19645 * @static
19646 */
19647 public static function setRequestOnHandler($request)
19648 {
19649 /** @var \Illuminate\Session\Store $instance */
19650 $instance->setRequestOnHandler($request);
19651 }
19652
19653 /**
19654 * Register a custom macro.
19655 *
19656 * @param string $name
19657 * @param object|callable $macro
19658 * @param-closure-this static $macro
19659 * @return void
19660 * @static
19661 */
19662 public static function macro($name, $macro)
19663 {
19664 \Illuminate\Session\Store::macro($name, $macro);
19665 }
19666
19667 /**
19668 * Mix another object into the class.
19669 *
19670 * @param object $mixin
19671 * @param bool $replace
19672 * @return void
19673 * @throws \ReflectionException
19674 * @static
19675 */
19676 public static function mixin($mixin, $replace = true)
19677 {
19678 \Illuminate\Session\Store::mixin($mixin, $replace);
19679 }
19680
19681 /**
19682 * Checks if macro is registered.
19683 *
19684 * @param string $name
19685 * @return bool
19686 * @static
19687 */
19688 public static function hasMacro($name)
19689 {
19690 return \Illuminate\Session\Store::hasMacro($name);
19691 }
19692
19693 /**
19694 * Flush the existing macros.
19695 *
19696 * @return void
19697 * @static
19698 */
19699 public static function flushMacros()
19700 {
19701 \Illuminate\Session\Store::flushMacros();
19702 }
19703
19704 }
19705 /**
19706 * @method static bool has(string $location)
19707 * @method static string read(string $location)
19708 * @method static \League\Flysystem\DirectoryListing listContents(string $location, bool $deep = false)
19709 * @method static int fileSize(string $path)
19710 * @method static string visibility(string $path)
19711 * @method static void write(string $location, string $contents, array $config = [])
19712 * @method static void createDirectory(string $location, array $config = [])
19713 * @see \Illuminate\Filesystem\FilesystemManager
19714 */
19715 class Storage {
19716 /**
19717 * Get a filesystem instance.
19718 *
19719 * @param string|null $name
19720 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19721 * @static
19722 */
19723 public static function drive($name = null)
19724 {
19725 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19726 return $instance->drive($name);
19727 }
19728
19729 /**
19730 * Get a filesystem instance.
19731 *
19732 * @param \UnitEnum|string|null $name
19733 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19734 * @static
19735 */
19736 public static function disk($name = null)
19737 {
19738 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19739 return $instance->disk($name);
19740 }
19741
19742 /**
19743 * Get a default cloud filesystem instance.
19744 *
19745 * @return \Illuminate\Contracts\Filesystem\Cloud
19746 * @static
19747 */
19748 public static function cloud()
19749 {
19750 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19751 return $instance->cloud();
19752 }
19753
19754 /**
19755 * Build an on-demand disk.
19756 *
19757 * @param string|array $config
19758 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19759 * @static
19760 */
19761 public static function build($config)
19762 {
19763 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19764 return $instance->build($config);
19765 }
19766
19767 /**
19768 * Create an instance of the local driver.
19769 *
19770 * @param array $config
19771 * @param string $name
19772 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19773 * @static
19774 */
19775 public static function createLocalDriver($config, $name = 'local')
19776 {
19777 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19778 return $instance->createLocalDriver($config, $name);
19779 }
19780
19781 /**
19782 * Create an instance of the ftp driver.
19783 *
19784 * @param array $config
19785 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19786 * @static
19787 */
19788 public static function createFtpDriver($config)
19789 {
19790 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19791 return $instance->createFtpDriver($config);
19792 }
19793
19794 /**
19795 * Create an instance of the sftp driver.
19796 *
19797 * @param array $config
19798 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19799 * @static
19800 */
19801 public static function createSftpDriver($config)
19802 {
19803 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19804 return $instance->createSftpDriver($config);
19805 }
19806
19807 /**
19808 * Create an instance of the Amazon S3 driver.
19809 *
19810 * @param array $config
19811 * @return \Illuminate\Contracts\Filesystem\Cloud
19812 * @static
19813 */
19814 public static function createS3Driver($config)
19815 {
19816 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19817 return $instance->createS3Driver($config);
19818 }
19819
19820 /**
19821 * Create a scoped driver.
19822 *
19823 * @param array $config
19824 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19825 * @static
19826 */
19827 public static function createScopedDriver($config)
19828 {
19829 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19830 return $instance->createScopedDriver($config);
19831 }
19832
19833 /**
19834 * Set the given disk instance.
19835 *
19836 * @param string $name
19837 * @param mixed $disk
19838 * @return \Illuminate\Filesystem\FilesystemManager
19839 * @static
19840 */
19841 public static function set($name, $disk)
19842 {
19843 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19844 return $instance->set($name, $disk);
19845 }
19846
19847 /**
19848 * Get the default driver name.
19849 *
19850 * @return string
19851 * @static
19852 */
19853 public static function getDefaultDriver()
19854 {
19855 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19856 return $instance->getDefaultDriver();
19857 }
19858
19859 /**
19860 * Get the default cloud driver name.
19861 *
19862 * @return string
19863 * @static
19864 */
19865 public static function getDefaultCloudDriver()
19866 {
19867 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19868 return $instance->getDefaultCloudDriver();
19869 }
19870
19871 /**
19872 * Unset the given disk instances.
19873 *
19874 * @param array|string $disk
19875 * @return \Illuminate\Filesystem\FilesystemManager
19876 * @static
19877 */
19878 public static function forgetDisk($disk)
19879 {
19880 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19881 return $instance->forgetDisk($disk);
19882 }
19883
19884 /**
19885 * Disconnect the given disk and remove from local cache.
19886 *
19887 * @param string|null $name
19888 * @return void
19889 * @static
19890 */
19891 public static function purge($name = null)
19892 {
19893 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19894 $instance->purge($name);
19895 }
19896
19897 /**
19898 * Register a custom driver creator Closure.
19899 *
19900 * @param string $driver
19901 * @param \Closure $callback
19902 * @return \Illuminate\Filesystem\FilesystemManager
19903 * @static
19904 */
19905 public static function extend($driver, $callback)
19906 {
19907 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19908 return $instance->extend($driver, $callback);
19909 }
19910
19911 /**
19912 * Set the application instance used by the manager.
19913 *
19914 * @param \Illuminate\Contracts\Foundation\Application $app
19915 * @return \Illuminate\Filesystem\FilesystemManager
19916 * @static
19917 */
19918 public static function setApplication($app)
19919 {
19920 /** @var \Illuminate\Filesystem\FilesystemManager $instance */
19921 return $instance->setApplication($app);
19922 }
19923
19924 /**
19925 * Determine if temporary URLs can be generated.
19926 *
19927 * @return bool
19928 * @static
19929 */
19930 public static function providesTemporaryUrls()
19931 {
19932 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
19933 return $instance->providesTemporaryUrls();
19934 }
19935
19936 /**
19937 * Get a temporary URL for the file at the given path.
19938 *
19939 * @param string $path
19940 * @param \DateTimeInterface $expiration
19941 * @param array $options
19942 * @return string
19943 * @static
19944 */
19945 public static function temporaryUrl($path, $expiration, $options = [])
19946 {
19947 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
19948 return $instance->temporaryUrl($path, $expiration, $options);
19949 }
19950
19951 /**
19952 * Specify the name of the disk the adapter is managing.
19953 *
19954 * @param string $disk
19955 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19956 * @static
19957 */
19958 public static function diskName($disk)
19959 {
19960 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
19961 return $instance->diskName($disk);
19962 }
19963
19964 /**
19965 * Indicate that signed URLs should serve the corresponding files.
19966 *
19967 * @param bool $serve
19968 * @param \Closure|null $urlGeneratorResolver
19969 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19970 * @static
19971 */
19972 public static function shouldServeSignedUrls($serve = true, $urlGeneratorResolver = null)
19973 {
19974 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
19975 return $instance->shouldServeSignedUrls($serve, $urlGeneratorResolver);
19976 }
19977
19978 /**
19979 * Assert that the given file or directory exists.
19980 *
19981 * @param string|array $path
19982 * @param string|null $content
19983 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
19984 * @static
19985 */
19986 public static function assertExists($path, $content = null)
19987 {
19988 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
19989 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
19990 return $instance->assertExists($path, $content);
19991 }
19992
19993 /**
19994 * Assert that the number of files in path equals the expected count.
19995 *
19996 * @param string $path
19997 * @param int $count
19998 * @param bool $recursive
19999 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
20000 * @static
20001 */
20002 public static function assertCount($path, $count, $recursive = false)
20003 {
20004 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20005 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20006 return $instance->assertCount($path, $count, $recursive);
20007 }
20008
20009 /**
20010 * Assert that the given file or directory does not exist.
20011 *
20012 * @param string|array $path
20013 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
20014 * @static
20015 */
20016 public static function assertMissing($path)
20017 {
20018 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20019 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20020 return $instance->assertMissing($path);
20021 }
20022
20023 /**
20024 * Assert that the given directory is empty.
20025 *
20026 * @param string $path
20027 * @return \Illuminate\Filesystem\LocalFilesystemAdapter
20028 * @static
20029 */
20030 public static function assertDirectoryEmpty($path)
20031 {
20032 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20033 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20034 return $instance->assertDirectoryEmpty($path);
20035 }
20036
20037 /**
20038 * Determine if a file or directory exists.
20039 *
20040 * @param string $path
20041 * @return bool
20042 * @static
20043 */
20044 public static function exists($path)
20045 {
20046 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20047 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20048 return $instance->exists($path);
20049 }
20050
20051 /**
20052 * Determine if a file or directory is missing.
20053 *
20054 * @param string $path
20055 * @return bool
20056 * @static
20057 */
20058 public static function missing($path)
20059 {
20060 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20061 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20062 return $instance->missing($path);
20063 }
20064
20065 /**
20066 * Determine if a file exists.
20067 *
20068 * @param string $path
20069 * @return bool
20070 * @static
20071 */
20072 public static function fileExists($path)
20073 {
20074 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20075 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20076 return $instance->fileExists($path);
20077 }
20078
20079 /**
20080 * Determine if a file is missing.
20081 *
20082 * @param string $path
20083 * @return bool
20084 * @static
20085 */
20086 public static function fileMissing($path)
20087 {
20088 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20089 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20090 return $instance->fileMissing($path);
20091 }
20092
20093 /**
20094 * Determine if a directory exists.
20095 *
20096 * @param string $path
20097 * @return bool
20098 * @static
20099 */
20100 public static function directoryExists($path)
20101 {
20102 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20103 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20104 return $instance->directoryExists($path);
20105 }
20106
20107 /**
20108 * Determine if a directory is missing.
20109 *
20110 * @param string $path
20111 * @return bool
20112 * @static
20113 */
20114 public static function directoryMissing($path)
20115 {
20116 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20117 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20118 return $instance->directoryMissing($path);
20119 }
20120
20121 /**
20122 * Get the full path to the file that exists at the given relative path.
20123 *
20124 * @param string $path
20125 * @return string
20126 * @static
20127 */
20128 public static function path($path)
20129 {
20130 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20131 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20132 return $instance->path($path);
20133 }
20134
20135 /**
20136 * Get the contents of a file.
20137 *
20138 * @param string $path
20139 * @return string|null
20140 * @static
20141 */
20142 public static function get($path)
20143 {
20144 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20145 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20146 return $instance->get($path);
20147 }
20148
20149 /**
20150 * Get the contents of a file as decoded JSON.
20151 *
20152 * @param string $path
20153 * @param int $flags
20154 * @return array|null
20155 * @static
20156 */
20157 public static function json($path, $flags = 0)
20158 {
20159 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20160 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20161 return $instance->json($path, $flags);
20162 }
20163
20164 /**
20165 * Create a streamed response for a given file.
20166 *
20167 * @param string $path
20168 * @param string|null $name
20169 * @param array $headers
20170 * @param string|null $disposition
20171 * @return \Symfony\Component\HttpFoundation\StreamedResponse
20172 * @static
20173 */
20174 public static function response($path, $name = null, $headers = [], $disposition = 'inline')
20175 {
20176 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20177 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20178 return $instance->response($path, $name, $headers, $disposition);
20179 }
20180
20181 /**
20182 * Create a streamed download response for a given file.
20183 *
20184 * @param \Illuminate\Http\Request $request
20185 * @param string $path
20186 * @param string|null $name
20187 * @param array $headers
20188 * @return \Symfony\Component\HttpFoundation\StreamedResponse
20189 * @static
20190 */
20191 public static function serve($request, $path, $name = null, $headers = [])
20192 {
20193 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20194 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20195 return $instance->serve($request, $path, $name, $headers);
20196 }
20197
20198 /**
20199 * Create a streamed download response for a given file.
20200 *
20201 * @param string $path
20202 * @param string|null $name
20203 * @param array $headers
20204 * @return \Symfony\Component\HttpFoundation\StreamedResponse
20205 * @static
20206 */
20207 public static function download($path, $name = null, $headers = [])
20208 {
20209 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20210 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20211 return $instance->download($path, $name, $headers);
20212 }
20213
20214 /**
20215 * Write the contents of a file.
20216 *
20217 * @param string $path
20218 * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
20219 * @param mixed $options
20220 * @return string|bool
20221 * @static
20222 */
20223 public static function put($path, $contents, $options = [])
20224 {
20225 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20226 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20227 return $instance->put($path, $contents, $options);
20228 }
20229
20230 /**
20231 * Store the uploaded file on the disk.
20232 *
20233 * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
20234 * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
20235 * @param mixed $options
20236 * @return string|false
20237 * @static
20238 */
20239 public static function putFile($path, $file = null, $options = [])
20240 {
20241 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20242 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20243 return $instance->putFile($path, $file, $options);
20244 }
20245
20246 /**
20247 * Store the uploaded file on the disk with a given name.
20248 *
20249 * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
20250 * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
20251 * @param string|array|null $name
20252 * @param mixed $options
20253 * @return string|false
20254 * @static
20255 */
20256 public static function putFileAs($path, $file, $name = null, $options = [])
20257 {
20258 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20259 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20260 return $instance->putFileAs($path, $file, $name, $options);
20261 }
20262
20263 /**
20264 * Get the visibility for the given path.
20265 *
20266 * @param string $path
20267 * @return string
20268 * @static
20269 */
20270 public static function getVisibility($path)
20271 {
20272 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20273 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20274 return $instance->getVisibility($path);
20275 }
20276
20277 /**
20278 * Set the visibility for the given path.
20279 *
20280 * @param string $path
20281 * @param string $visibility
20282 * @return bool
20283 * @static
20284 */
20285 public static function setVisibility($path, $visibility)
20286 {
20287 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20288 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20289 return $instance->setVisibility($path, $visibility);
20290 }
20291
20292 /**
20293 * Prepend to a file.
20294 *
20295 * @param string $path
20296 * @param string $data
20297 * @param string $separator
20298 * @return bool
20299 * @static
20300 */
20301 public static function prepend($path, $data, $separator = '
20302')
20303 {
20304 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20305 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20306 return $instance->prepend($path, $data, $separator);
20307 }
20308
20309 /**
20310 * Append to a file.
20311 *
20312 * @param string $path
20313 * @param string $data
20314 * @param string $separator
20315 * @return bool
20316 * @static
20317 */
20318 public static function append($path, $data, $separator = '
20319')
20320 {
20321 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20322 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20323 return $instance->append($path, $data, $separator);
20324 }
20325
20326 /**
20327 * Delete the file at a given path.
20328 *
20329 * @param string|array $paths
20330 * @return bool
20331 * @static
20332 */
20333 public static function delete($paths)
20334 {
20335 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20336 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20337 return $instance->delete($paths);
20338 }
20339
20340 /**
20341 * Copy a file to a new location.
20342 *
20343 * @param string $from
20344 * @param string $to
20345 * @return bool
20346 * @static
20347 */
20348 public static function copy($from, $to)
20349 {
20350 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20351 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20352 return $instance->copy($from, $to);
20353 }
20354
20355 /**
20356 * Move a file to a new location.
20357 *
20358 * @param string $from
20359 * @param string $to
20360 * @return bool
20361 * @static
20362 */
20363 public static function move($from, $to)
20364 {
20365 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20366 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20367 return $instance->move($from, $to);
20368 }
20369
20370 /**
20371 * Get the file size of a given file.
20372 *
20373 * @param string $path
20374 * @return int
20375 * @static
20376 */
20377 public static function size($path)
20378 {
20379 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20380 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20381 return $instance->size($path);
20382 }
20383
20384 /**
20385 * Get the checksum for a file.
20386 *
20387 * @return string|false
20388 * @throws UnableToProvideChecksum
20389 * @static
20390 */
20391 public static function checksum($path, $options = [])
20392 {
20393 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20394 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20395 return $instance->checksum($path, $options);
20396 }
20397
20398 /**
20399 * Get the mime-type of a given file.
20400 *
20401 * @param string $path
20402 * @return string|false
20403 * @static
20404 */
20405 public static function mimeType($path)
20406 {
20407 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20408 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20409 return $instance->mimeType($path);
20410 }
20411
20412 /**
20413 * Get the file's last modification time.
20414 *
20415 * @param string $path
20416 * @return int
20417 * @static
20418 */
20419 public static function lastModified($path)
20420 {
20421 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20422 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20423 return $instance->lastModified($path);
20424 }
20425
20426 /**
20427 * Get a resource to read the file.
20428 *
20429 * @param string $path
20430 * @return resource|null The path resource or null on failure.
20431 * @static
20432 */
20433 public static function readStream($path)
20434 {
20435 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20436 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20437 return $instance->readStream($path);
20438 }
20439
20440 /**
20441 * Write a new file using a stream.
20442 *
20443 * @param string $path
20444 * @param resource $resource
20445 * @param array $options
20446 * @return bool
20447 * @static
20448 */
20449 public static function writeStream($path, $resource, $options = [])
20450 {
20451 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20452 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20453 return $instance->writeStream($path, $resource, $options);
20454 }
20455
20456 /**
20457 * Get the URL for the file at the given path.
20458 *
20459 * @param string $path
20460 * @return string
20461 * @throws \RuntimeException
20462 * @static
20463 */
20464 public static function url($path)
20465 {
20466 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20467 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20468 return $instance->url($path);
20469 }
20470
20471 /**
20472 * Get a temporary upload URL for the file at the given path.
20473 *
20474 * @param string $path
20475 * @param \DateTimeInterface $expiration
20476 * @param array $options
20477 * @return array
20478 * @throws \RuntimeException
20479 * @static
20480 */
20481 public static function temporaryUploadUrl($path, $expiration, $options = [])
20482 {
20483 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20484 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20485 return $instance->temporaryUploadUrl($path, $expiration, $options);
20486 }
20487
20488 /**
20489 * Get an array of all files in a directory.
20490 *
20491 * @param string|null $directory
20492 * @param bool $recursive
20493 * @return array
20494 * @static
20495 */
20496 public static function files($directory = null, $recursive = false)
20497 {
20498 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20499 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20500 return $instance->files($directory, $recursive);
20501 }
20502
20503 /**
20504 * Get all of the files from the given directory (recursive).
20505 *
20506 * @param string|null $directory
20507 * @return array
20508 * @static
20509 */
20510 public static function allFiles($directory = null)
20511 {
20512 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20513 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20514 return $instance->allFiles($directory);
20515 }
20516
20517 /**
20518 * Get all of the directories within a given directory.
20519 *
20520 * @param string|null $directory
20521 * @param bool $recursive
20522 * @return array
20523 * @static
20524 */
20525 public static function directories($directory = null, $recursive = false)
20526 {
20527 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20528 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20529 return $instance->directories($directory, $recursive);
20530 }
20531
20532 /**
20533 * Get all the directories within a given directory (recursive).
20534 *
20535 * @param string|null $directory
20536 * @return array
20537 * @static
20538 */
20539 public static function allDirectories($directory = null)
20540 {
20541 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20542 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20543 return $instance->allDirectories($directory);
20544 }
20545
20546 /**
20547 * Create a directory.
20548 *
20549 * @param string $path
20550 * @return bool
20551 * @static
20552 */
20553 public static function makeDirectory($path)
20554 {
20555 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20556 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20557 return $instance->makeDirectory($path);
20558 }
20559
20560 /**
20561 * Recursively delete a directory.
20562 *
20563 * @param string $directory
20564 * @return bool
20565 * @static
20566 */
20567 public static function deleteDirectory($directory)
20568 {
20569 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20570 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20571 return $instance->deleteDirectory($directory);
20572 }
20573
20574 /**
20575 * Get the Flysystem driver.
20576 *
20577 * @return \League\Flysystem\FilesystemOperator
20578 * @static
20579 */
20580 public static function getDriver()
20581 {
20582 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20583 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20584 return $instance->getDriver();
20585 }
20586
20587 /**
20588 * Get the Flysystem adapter.
20589 *
20590 * @return \League\Flysystem\FilesystemAdapter
20591 * @static
20592 */
20593 public static function getAdapter()
20594 {
20595 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20596 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20597 return $instance->getAdapter();
20598 }
20599
20600 /**
20601 * Get the configuration values.
20602 *
20603 * @return array
20604 * @static
20605 */
20606 public static function getConfig()
20607 {
20608 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20609 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20610 return $instance->getConfig();
20611 }
20612
20613 /**
20614 * Define a custom callback that generates file download responses.
20615 *
20616 * @param \Closure $callback
20617 * @return void
20618 * @static
20619 */
20620 public static function serveUsing($callback)
20621 {
20622 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20623 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20624 $instance->serveUsing($callback);
20625 }
20626
20627 /**
20628 * Define a custom temporary URL builder callback.
20629 *
20630 * @param \Closure $callback
20631 * @return void
20632 * @static
20633 */
20634 public static function buildTemporaryUrlsUsing($callback)
20635 {
20636 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20637 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20638 $instance->buildTemporaryUrlsUsing($callback);
20639 }
20640
20641 /**
20642 * Apply the callback if the given "value" is (or resolves to) truthy.
20643 *
20644 * @template TWhenParameter
20645 * @template TWhenReturnType
20646 * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
20647 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
20648 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
20649 * @return $this|TWhenReturnType
20650 * @static
20651 */
20652 public static function when($value = null, $callback = null, $default = null)
20653 {
20654 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20655 return $instance->when($value, $callback, $default);
20656 }
20657
20658 /**
20659 * Apply the callback if the given "value" is (or resolves to) falsy.
20660 *
20661 * @template TUnlessParameter
20662 * @template TUnlessReturnType
20663 * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
20664 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
20665 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
20666 * @return $this|TUnlessReturnType
20667 * @static
20668 */
20669 public static function unless($value = null, $callback = null, $default = null)
20670 {
20671 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20672 return $instance->unless($value, $callback, $default);
20673 }
20674
20675 /**
20676 * Register a custom macro.
20677 *
20678 * @param string $name
20679 * @param object|callable $macro
20680 * @param-closure-this static $macro
20681 * @return void
20682 * @static
20683 */
20684 public static function macro($name, $macro)
20685 {
20686 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20687 \Illuminate\Filesystem\LocalFilesystemAdapter::macro($name, $macro);
20688 }
20689
20690 /**
20691 * Mix another object into the class.
20692 *
20693 * @param object $mixin
20694 * @param bool $replace
20695 * @return void
20696 * @throws \ReflectionException
20697 * @static
20698 */
20699 public static function mixin($mixin, $replace = true)
20700 {
20701 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20702 \Illuminate\Filesystem\LocalFilesystemAdapter::mixin($mixin, $replace);
20703 }
20704
20705 /**
20706 * Checks if macro is registered.
20707 *
20708 * @param string $name
20709 * @return bool
20710 * @static
20711 */
20712 public static function hasMacro($name)
20713 {
20714 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20715 return \Illuminate\Filesystem\LocalFilesystemAdapter::hasMacro($name);
20716 }
20717
20718 /**
20719 * Flush the existing macros.
20720 *
20721 * @return void
20722 * @static
20723 */
20724 public static function flushMacros()
20725 {
20726 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20727 \Illuminate\Filesystem\LocalFilesystemAdapter::flushMacros();
20728 }
20729
20730 /**
20731 * Dynamically handle calls to the class.
20732 *
20733 * @param string $method
20734 * @param array $parameters
20735 * @return mixed
20736 * @throws \BadMethodCallException
20737 * @static
20738 */
20739 public static function macroCall($method, $parameters)
20740 {
20741 //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
20742 /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
20743 return $instance->macroCall($method, $parameters);
20744 }
20745
20746 }
20747 /**
20748 * @see \Illuminate\Routing\UrlGenerator
20749 */
20750 class URL {
20751 /**
20752 * Get the full URL for the current request.
20753 *
20754 * @return string
20755 * @static
20756 */
20757 public static function full()
20758 {
20759 /** @var \Illuminate\Routing\UrlGenerator $instance */
20760 return $instance->full();
20761 }
20762
20763 /**
20764 * Get the current URL for the request.
20765 *
20766 * @return string
20767 * @static
20768 */
20769 public static function current()
20770 {
20771 /** @var \Illuminate\Routing\UrlGenerator $instance */
20772 return $instance->current();
20773 }
20774
20775 /**
20776 * Get the URL for the previous request.
20777 *
20778 * @param mixed $fallback
20779 * @return string
20780 * @static
20781 */
20782 public static function previous($fallback = false)
20783 {
20784 /** @var \Illuminate\Routing\UrlGenerator $instance */
20785 return $instance->previous($fallback);
20786 }
20787
20788 /**
20789 * Get the previous path info for the request.
20790 *
20791 * @param mixed $fallback
20792 * @return string
20793 * @static
20794 */
20795 public static function previousPath($fallback = false)
20796 {
20797 /** @var \Illuminate\Routing\UrlGenerator $instance */
20798 return $instance->previousPath($fallback);
20799 }
20800
20801 /**
20802 * Generate an absolute URL to the given path.
20803 *
20804 * @param string $path
20805 * @param mixed $extra
20806 * @param bool|null $secure
20807 * @return string
20808 * @static
20809 */
20810 public static function to($path, $extra = [], $secure = null)
20811 {
20812 /** @var \Illuminate\Routing\UrlGenerator $instance */
20813 return $instance->to($path, $extra, $secure);
20814 }
20815
20816 /**
20817 * Generate an absolute URL with the given query parameters.
20818 *
20819 * @param string $path
20820 * @param array $query
20821 * @param mixed $extra
20822 * @param bool|null $secure
20823 * @return string
20824 * @static
20825 */
20826 public static function query($path, $query = [], $extra = [], $secure = null)
20827 {
20828 /** @var \Illuminate\Routing\UrlGenerator $instance */
20829 return $instance->query($path, $query, $extra, $secure);
20830 }
20831
20832 /**
20833 * Generate a secure, absolute URL to the given path.
20834 *
20835 * @param string $path
20836 * @param array $parameters
20837 * @return string
20838 * @static
20839 */
20840 public static function secure($path, $parameters = [])
20841 {
20842 /** @var \Illuminate\Routing\UrlGenerator $instance */
20843 return $instance->secure($path, $parameters);
20844 }
20845
20846 /**
20847 * Generate the URL to an application asset.
20848 *
20849 * @param string $path
20850 * @param bool|null $secure
20851 * @return string
20852 * @static
20853 */
20854 public static function asset($path, $secure = null)
20855 {
20856 /** @var \Illuminate\Routing\UrlGenerator $instance */
20857 return $instance->asset($path, $secure);
20858 }
20859
20860 /**
20861 * Generate the URL to a secure asset.
20862 *
20863 * @param string $path
20864 * @return string
20865 * @static
20866 */
20867 public static function secureAsset($path)
20868 {
20869 /** @var \Illuminate\Routing\UrlGenerator $instance */
20870 return $instance->secureAsset($path);
20871 }
20872
20873 /**
20874 * Generate the URL to an asset from a custom root domain such as CDN, etc.
20875 *
20876 * @param string $root
20877 * @param string $path
20878 * @param bool|null $secure
20879 * @return string
20880 * @static
20881 */
20882 public static function assetFrom($root, $path, $secure = null)
20883 {
20884 /** @var \Illuminate\Routing\UrlGenerator $instance */
20885 return $instance->assetFrom($root, $path, $secure);
20886 }
20887
20888 /**
20889 * Get the default scheme for a raw URL.
20890 *
20891 * @param bool|null $secure
20892 * @return string
20893 * @static
20894 */
20895 public static function formatScheme($secure = null)
20896 {
20897 /** @var \Illuminate\Routing\UrlGenerator $instance */
20898 return $instance->formatScheme($secure);
20899 }
20900
20901 /**
20902 * Create a signed route URL for a named route.
20903 *
20904 * @param \BackedEnum|string $name
20905 * @param mixed $parameters
20906 * @param \DateTimeInterface|\DateInterval|int|null $expiration
20907 * @param bool $absolute
20908 * @return string
20909 * @throws \InvalidArgumentException
20910 * @static
20911 */
20912 public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
20913 {
20914 /** @var \Illuminate\Routing\UrlGenerator $instance */
20915 return $instance->signedRoute($name, $parameters, $expiration, $absolute);
20916 }
20917
20918 /**
20919 * Create a temporary signed route URL for a named route.
20920 *
20921 * @param \BackedEnum|string $name
20922 * @param \DateTimeInterface|\DateInterval|int $expiration
20923 * @param array $parameters
20924 * @param bool $absolute
20925 * @return string
20926 * @static
20927 */
20928 public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
20929 {
20930 /** @var \Illuminate\Routing\UrlGenerator $instance */
20931 return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
20932 }
20933
20934 /**
20935 * Determine if the given request has a valid signature.
20936 *
20937 * @param \Illuminate\Http\Request $request
20938 * @param bool $absolute
20939 * @param \Closure|array $ignoreQuery
20940 * @return bool
20941 * @static
20942 */
20943 public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
20944 {
20945 /** @var \Illuminate\Routing\UrlGenerator $instance */
20946 return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
20947 }
20948
20949 /**
20950 * Determine if the given request has a valid signature for a relative URL.
20951 *
20952 * @param \Illuminate\Http\Request $request
20953 * @param \Closure|array $ignoreQuery
20954 * @return bool
20955 * @static
20956 */
20957 public static function hasValidRelativeSignature($request, $ignoreQuery = [])
20958 {
20959 /** @var \Illuminate\Routing\UrlGenerator $instance */
20960 return $instance->hasValidRelativeSignature($request, $ignoreQuery);
20961 }
20962
20963 /**
20964 * Determine if the signature from the given request matches the URL.
20965 *
20966 * @param \Illuminate\Http\Request $request
20967 * @param bool $absolute
20968 * @param \Closure|array $ignoreQuery
20969 * @return bool
20970 * @static
20971 */
20972 public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
20973 {
20974 /** @var \Illuminate\Routing\UrlGenerator $instance */
20975 return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
20976 }
20977
20978 /**
20979 * Determine if the expires timestamp from the given request is not from the past.
20980 *
20981 * @param \Illuminate\Http\Request $request
20982 * @return bool
20983 * @static
20984 */
20985 public static function signatureHasNotExpired($request)
20986 {
20987 /** @var \Illuminate\Routing\UrlGenerator $instance */
20988 return $instance->signatureHasNotExpired($request);
20989 }
20990
20991 /**
20992 * Get the URL to a named route.
20993 *
20994 * @param \BackedEnum|string $name
20995 * @param mixed $parameters
20996 * @param bool $absolute
20997 * @return string
20998 * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException|\InvalidArgumentException
20999 * @static
21000 */
21001 public static function route($name, $parameters = [], $absolute = true)
21002 {
21003 /** @var \Illuminate\Routing\UrlGenerator $instance */
21004 return $instance->route($name, $parameters, $absolute);
21005 }
21006
21007 /**
21008 * Get the URL for a given route instance.
21009 *
21010 * @param \Illuminate\Routing\Route $route
21011 * @param mixed $parameters
21012 * @param bool $absolute
21013 * @return string
21014 * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
21015 * @static
21016 */
21017 public static function toRoute($route, $parameters, $absolute)
21018 {
21019 /** @var \Illuminate\Routing\UrlGenerator $instance */
21020 return $instance->toRoute($route, $parameters, $absolute);
21021 }
21022
21023 /**
21024 * Get the URL to a controller action.
21025 *
21026 * @param string|array $action
21027 * @param mixed $parameters
21028 * @param bool $absolute
21029 * @return string
21030 * @throws \InvalidArgumentException
21031 * @static
21032 */
21033 public static function action($action, $parameters = [], $absolute = true)
21034 {
21035 /** @var \Illuminate\Routing\UrlGenerator $instance */
21036 return $instance->action($action, $parameters, $absolute);
21037 }
21038
21039 /**
21040 * Format the array of URL parameters.
21041 *
21042 * @param mixed $parameters
21043 * @return array
21044 * @static
21045 */
21046 public static function formatParameters($parameters)
21047 {
21048 /** @var \Illuminate\Routing\UrlGenerator $instance */
21049 return $instance->formatParameters($parameters);
21050 }
21051
21052 /**
21053 * Get the base URL for the request.
21054 *
21055 * @param string $scheme
21056 * @param string|null $root
21057 * @return string
21058 * @static
21059 */
21060 public static function formatRoot($scheme, $root = null)
21061 {
21062 /** @var \Illuminate\Routing\UrlGenerator $instance */
21063 return $instance->formatRoot($scheme, $root);
21064 }
21065
21066 /**
21067 * Format the given URL segments into a single URL.
21068 *
21069 * @param string $root
21070 * @param string $path
21071 * @param \Illuminate\Routing\Route|null $route
21072 * @return string
21073 * @static
21074 */
21075 public static function format($root, $path, $route = null)
21076 {
21077 /** @var \Illuminate\Routing\UrlGenerator $instance */
21078 return $instance->format($root, $path, $route);
21079 }
21080
21081 /**
21082 * Determine if the given path is a valid URL.
21083 *
21084 * @param string $path
21085 * @return bool
21086 * @static
21087 */
21088 public static function isValidUrl($path)
21089 {
21090 /** @var \Illuminate\Routing\UrlGenerator $instance */
21091 return $instance->isValidUrl($path);
21092 }
21093
21094 /**
21095 * Set the default named parameters used by the URL generator.
21096 *
21097 * @param array $defaults
21098 * @return void
21099 * @static
21100 */
21101 public static function defaults($defaults)
21102 {
21103 /** @var \Illuminate\Routing\UrlGenerator $instance */
21104 $instance->defaults($defaults);
21105 }
21106
21107 /**
21108 * Get the default named parameters used by the URL generator.
21109 *
21110 * @return array
21111 * @static
21112 */
21113 public static function getDefaultParameters()
21114 {
21115 /** @var \Illuminate\Routing\UrlGenerator $instance */
21116 return $instance->getDefaultParameters();
21117 }
21118
21119 /**
21120 * Force the scheme for URLs.
21121 *
21122 * @param string|null $scheme
21123 * @return void
21124 * @static
21125 */
21126 public static function forceScheme($scheme)
21127 {
21128 /** @var \Illuminate\Routing\UrlGenerator $instance */
21129 $instance->forceScheme($scheme);
21130 }
21131
21132 /**
21133 * Force the use of the HTTPS scheme for all generated URLs.
21134 *
21135 * @param bool $force
21136 * @return void
21137 * @static
21138 */
21139 public static function forceHttps($force = true)
21140 {
21141 /** @var \Illuminate\Routing\UrlGenerator $instance */
21142 $instance->forceHttps($force);
21143 }
21144
21145 /**
21146 * Set the URL origin for all generated URLs.
21147 *
21148 * @param string|null $root
21149 * @return void
21150 * @static
21151 */
21152 public static function useOrigin($root)
21153 {
21154 /** @var \Illuminate\Routing\UrlGenerator $instance */
21155 $instance->useOrigin($root);
21156 }
21157
21158 /**
21159 * Set the forced root URL.
21160 *
21161 * @param string|null $root
21162 * @return void
21163 * @deprecated Use useOrigin
21164 * @static
21165 */
21166 public static function forceRootUrl($root)
21167 {
21168 /** @var \Illuminate\Routing\UrlGenerator $instance */
21169 $instance->forceRootUrl($root);
21170 }
21171
21172 /**
21173 * Set the URL origin for all generated asset URLs.
21174 *
21175 * @param string|null $root
21176 * @return void
21177 * @static
21178 */
21179 public static function useAssetOrigin($root)
21180 {
21181 /** @var \Illuminate\Routing\UrlGenerator $instance */
21182 $instance->useAssetOrigin($root);
21183 }
21184
21185 /**
21186 * Set a callback to be used to format the host of generated URLs.
21187 *
21188 * @param \Closure $callback
21189 * @return \Illuminate\Routing\UrlGenerator
21190 * @static
21191 */
21192 public static function formatHostUsing($callback)
21193 {
21194 /** @var \Illuminate\Routing\UrlGenerator $instance */
21195 return $instance->formatHostUsing($callback);
21196 }
21197
21198 /**
21199 * Set a callback to be used to format the path of generated URLs.
21200 *
21201 * @param \Closure $callback
21202 * @return \Illuminate\Routing\UrlGenerator
21203 * @static
21204 */
21205 public static function formatPathUsing($callback)
21206 {
21207 /** @var \Illuminate\Routing\UrlGenerator $instance */
21208 return $instance->formatPathUsing($callback);
21209 }
21210
21211 /**
21212 * Get the path formatter being used by the URL generator.
21213 *
21214 * @return \Closure
21215 * @static
21216 */
21217 public static function pathFormatter()
21218 {
21219 /** @var \Illuminate\Routing\UrlGenerator $instance */
21220 return $instance->pathFormatter();
21221 }
21222
21223 /**
21224 * Get the request instance.
21225 *
21226 * @return \Illuminate\Http\Request
21227 * @static
21228 */
21229 public static function getRequest()
21230 {
21231 /** @var \Illuminate\Routing\UrlGenerator $instance */
21232 return $instance->getRequest();
21233 }
21234
21235 /**
21236 * Set the current request instance.
21237 *
21238 * @param \Illuminate\Http\Request $request
21239 * @return void
21240 * @static
21241 */
21242 public static function setRequest($request)
21243 {
21244 /** @var \Illuminate\Routing\UrlGenerator $instance */
21245 $instance->setRequest($request);
21246 }
21247
21248 /**
21249 * Set the route collection.
21250 *
21251 * @param \Illuminate\Routing\RouteCollectionInterface $routes
21252 * @return \Illuminate\Routing\UrlGenerator
21253 * @static
21254 */
21255 public static function setRoutes($routes)
21256 {
21257 /** @var \Illuminate\Routing\UrlGenerator $instance */
21258 return $instance->setRoutes($routes);
21259 }
21260
21261 /**
21262 * Set the session resolver for the generator.
21263 *
21264 * @param callable $sessionResolver
21265 * @return \Illuminate\Routing\UrlGenerator
21266 * @static
21267 */
21268 public static function setSessionResolver($sessionResolver)
21269 {
21270 /** @var \Illuminate\Routing\UrlGenerator $instance */
21271 return $instance->setSessionResolver($sessionResolver);
21272 }
21273
21274 /**
21275 * Set the encryption key resolver.
21276 *
21277 * @param callable $keyResolver
21278 * @return \Illuminate\Routing\UrlGenerator
21279 * @static
21280 */
21281 public static function setKeyResolver($keyResolver)
21282 {
21283 /** @var \Illuminate\Routing\UrlGenerator $instance */
21284 return $instance->setKeyResolver($keyResolver);
21285 }
21286
21287 /**
21288 * Clone a new instance of the URL generator with a different encryption key resolver.
21289 *
21290 * @param callable $keyResolver
21291 * @return \Illuminate\Routing\UrlGenerator
21292 * @static
21293 */
21294 public static function withKeyResolver($keyResolver)
21295 {
21296 /** @var \Illuminate\Routing\UrlGenerator $instance */
21297 return $instance->withKeyResolver($keyResolver);
21298 }
21299
21300 /**
21301 * Set the callback that should be used to attempt to resolve missing named routes.
21302 *
21303 * @param callable $missingNamedRouteResolver
21304 * @return \Illuminate\Routing\UrlGenerator
21305 * @static
21306 */
21307 public static function resolveMissingNamedRoutesUsing($missingNamedRouteResolver)
21308 {
21309 /** @var \Illuminate\Routing\UrlGenerator $instance */
21310 return $instance->resolveMissingNamedRoutesUsing($missingNamedRouteResolver);
21311 }
21312
21313 /**
21314 * Get the root controller namespace.
21315 *
21316 * @return string
21317 * @static
21318 */
21319 public static function getRootControllerNamespace()
21320 {
21321 /** @var \Illuminate\Routing\UrlGenerator $instance */
21322 return $instance->getRootControllerNamespace();
21323 }
21324
21325 /**
21326 * Set the root controller namespace.
21327 *
21328 * @param string $rootNamespace
21329 * @return \Illuminate\Routing\UrlGenerator
21330 * @static
21331 */
21332 public static function setRootControllerNamespace($rootNamespace)
21333 {
21334 /** @var \Illuminate\Routing\UrlGenerator $instance */
21335 return $instance->setRootControllerNamespace($rootNamespace);
21336 }
21337
21338 /**
21339 * Register a custom macro.
21340 *
21341 * @param string $name
21342 * @param object|callable $macro
21343 * @param-closure-this static $macro
21344 * @return void
21345 * @static
21346 */
21347 public static function macro($name, $macro)
21348 {
21349 \Illuminate\Routing\UrlGenerator::macro($name, $macro);
21350 }
21351
21352 /**
21353 * Mix another object into the class.
21354 *
21355 * @param object $mixin
21356 * @param bool $replace
21357 * @return void
21358 * @throws \ReflectionException
21359 * @static
21360 */
21361 public static function mixin($mixin, $replace = true)
21362 {
21363 \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
21364 }
21365
21366 /**
21367 * Checks if macro is registered.
21368 *
21369 * @param string $name
21370 * @return bool
21371 * @static
21372 */
21373 public static function hasMacro($name)
21374 {
21375 return \Illuminate\Routing\UrlGenerator::hasMacro($name);
21376 }
21377
21378 /**
21379 * Flush the existing macros.
21380 *
21381 * @return void
21382 * @static
21383 */
21384 public static function flushMacros()
21385 {
21386 \Illuminate\Routing\UrlGenerator::flushMacros();
21387 }
21388
21389 }
21390 /**
21391 * @see \Illuminate\Validation\Factory
21392 */
21393 class Validator {
21394 /**
21395 * Create a new Validator instance.
21396 *
21397 * @param array $data
21398 * @param array $rules
21399 * @param array $messages
21400 * @param array $attributes
21401 * @return \Illuminate\Validation\Validator
21402 * @static
21403 */
21404 public static function make($data, $rules, $messages = [], $attributes = [])
21405 {
21406 /** @var \Illuminate\Validation\Factory $instance */
21407 return $instance->make($data, $rules, $messages, $attributes);
21408 }
21409
21410 /**
21411 * Validate the given data against the provided rules.
21412 *
21413 * @param array $data
21414 * @param array $rules
21415 * @param array $messages
21416 * @param array $attributes
21417 * @return array
21418 * @throws \Illuminate\Validation\ValidationException
21419 * @static
21420 */
21421 public static function validate($data, $rules, $messages = [], $attributes = [])
21422 {
21423 /** @var \Illuminate\Validation\Factory $instance */
21424 return $instance->validate($data, $rules, $messages, $attributes);
21425 }
21426
21427 /**
21428 * Register a custom validator extension.
21429 *
21430 * @param string $rule
21431 * @param \Closure|string $extension
21432 * @param string|null $message
21433 * @return void
21434 * @static
21435 */
21436 public static function extend($rule, $extension, $message = null)
21437 {
21438 /** @var \Illuminate\Validation\Factory $instance */
21439 $instance->extend($rule, $extension, $message);
21440 }
21441
21442 /**
21443 * Register a custom implicit validator extension.
21444 *
21445 * @param string $rule
21446 * @param \Closure|string $extension
21447 * @param string|null $message
21448 * @return void
21449 * @static
21450 */
21451 public static function extendImplicit($rule, $extension, $message = null)
21452 {
21453 /** @var \Illuminate\Validation\Factory $instance */
21454 $instance->extendImplicit($rule, $extension, $message);
21455 }
21456
21457 /**
21458 * Register a custom dependent validator extension.
21459 *
21460 * @param string $rule
21461 * @param \Closure|string $extension
21462 * @param string|null $message
21463 * @return void
21464 * @static
21465 */
21466 public static function extendDependent($rule, $extension, $message = null)
21467 {
21468 /** @var \Illuminate\Validation\Factory $instance */
21469 $instance->extendDependent($rule, $extension, $message);
21470 }
21471
21472 /**
21473 * Register a custom validator message replacer.
21474 *
21475 * @param string $rule
21476 * @param \Closure|string $replacer
21477 * @return void
21478 * @static
21479 */
21480 public static function replacer($rule, $replacer)
21481 {
21482 /** @var \Illuminate\Validation\Factory $instance */
21483 $instance->replacer($rule, $replacer);
21484 }
21485
21486 /**
21487 * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
21488 *
21489 * @return void
21490 * @static
21491 */
21492 public static function includeUnvalidatedArrayKeys()
21493 {
21494 /** @var \Illuminate\Validation\Factory $instance */
21495 $instance->includeUnvalidatedArrayKeys();
21496 }
21497
21498 /**
21499 * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
21500 *
21501 * @return void
21502 * @static
21503 */
21504 public static function excludeUnvalidatedArrayKeys()
21505 {
21506 /** @var \Illuminate\Validation\Factory $instance */
21507 $instance->excludeUnvalidatedArrayKeys();
21508 }
21509
21510 /**
21511 * Set the Validator instance resolver.
21512 *
21513 * @param \Closure $resolver
21514 * @return void
21515 * @static
21516 */
21517 public static function resolver($resolver)
21518 {
21519 /** @var \Illuminate\Validation\Factory $instance */
21520 $instance->resolver($resolver);
21521 }
21522
21523 /**
21524 * Get the Translator implementation.
21525 *
21526 * @return \Illuminate\Contracts\Translation\Translator
21527 * @static
21528 */
21529 public static function getTranslator()
21530 {
21531 /** @var \Illuminate\Validation\Factory $instance */
21532 return $instance->getTranslator();
21533 }
21534
21535 /**
21536 * Get the Presence Verifier implementation.
21537 *
21538 * @return \Illuminate\Validation\PresenceVerifierInterface
21539 * @static
21540 */
21541 public static function getPresenceVerifier()
21542 {
21543 /** @var \Illuminate\Validation\Factory $instance */
21544 return $instance->getPresenceVerifier();
21545 }
21546
21547 /**
21548 * Set the Presence Verifier implementation.
21549 *
21550 * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
21551 * @return void
21552 * @static
21553 */
21554 public static function setPresenceVerifier($presenceVerifier)
21555 {
21556 /** @var \Illuminate\Validation\Factory $instance */
21557 $instance->setPresenceVerifier($presenceVerifier);
21558 }
21559
21560 /**
21561 * Get the container instance used by the validation factory.
21562 *
21563 * @return \Illuminate\Contracts\Container\Container|null
21564 * @static
21565 */
21566 public static function getContainer()
21567 {
21568 /** @var \Illuminate\Validation\Factory $instance */
21569 return $instance->getContainer();
21570 }
21571
21572 /**
21573 * Set the container instance used by the validation factory.
21574 *
21575 * @param \Illuminate\Contracts\Container\Container $container
21576 * @return \Illuminate\Validation\Factory
21577 * @static
21578 */
21579 public static function setContainer($container)
21580 {
21581 /** @var \Illuminate\Validation\Factory $instance */
21582 return $instance->setContainer($container);
21583 }
21584
21585 }
21586 /**
21587 * @see \Illuminate\View\Factory
21588 */
21589 class View {
21590 /**
21591 * Get the evaluated view contents for the given view.
21592 *
21593 * @param string $path
21594 * @param \Illuminate\Contracts\Support\Arrayable|array $data
21595 * @param array $mergeData
21596 * @return \Illuminate\Contracts\View\View
21597 * @static
21598 */
21599 public static function file($path, $data = [], $mergeData = [])
21600 {
21601 /** @var \Illuminate\View\Factory $instance */
21602 return $instance->file($path, $data, $mergeData);
21603 }
21604
21605 /**
21606 * Get the evaluated view contents for the given view.
21607 *
21608 * @param string $view
21609 * @param \Illuminate\Contracts\Support\Arrayable|array $data
21610 * @param array $mergeData
21611 * @return \Illuminate\Contracts\View\View
21612 * @static
21613 */
21614 public static function make($view, $data = [], $mergeData = [])
21615 {
21616 /** @var \Illuminate\View\Factory $instance */
21617 return $instance->make($view, $data, $mergeData);
21618 }
21619
21620 /**
21621 * Get the first view that actually exists from the given list.
21622 *
21623 * @param array $views
21624 * @param \Illuminate\Contracts\Support\Arrayable|array $data
21625 * @param array $mergeData
21626 * @return \Illuminate\Contracts\View\View
21627 * @throws \InvalidArgumentException
21628 * @static
21629 */
21630 public static function first($views, $data = [], $mergeData = [])
21631 {
21632 /** @var \Illuminate\View\Factory $instance */
21633 return $instance->first($views, $data, $mergeData);
21634 }
21635
21636 /**
21637 * Get the rendered content of the view based on a given condition.
21638 *
21639 * @param bool $condition
21640 * @param string $view
21641 * @param \Illuminate\Contracts\Support\Arrayable|array $data
21642 * @param array $mergeData
21643 * @return string
21644 * @static
21645 */
21646 public static function renderWhen($condition, $view, $data = [], $mergeData = [])
21647 {
21648 /** @var \Illuminate\View\Factory $instance */
21649 return $instance->renderWhen($condition, $view, $data, $mergeData);
21650 }
21651
21652 /**
21653 * Get the rendered content of the view based on the negation of a given condition.
21654 *
21655 * @param bool $condition
21656 * @param string $view
21657 * @param \Illuminate\Contracts\Support\Arrayable|array $data
21658 * @param array $mergeData
21659 * @return string
21660 * @static
21661 */
21662 public static function renderUnless($condition, $view, $data = [], $mergeData = [])
21663 {
21664 /** @var \Illuminate\View\Factory $instance */
21665 return $instance->renderUnless($condition, $view, $data, $mergeData);
21666 }
21667
21668 /**
21669 * Get the rendered contents of a partial from a loop.
21670 *
21671 * @param string $view
21672 * @param array $data
21673 * @param string $iterator
21674 * @param string $empty
21675 * @return string
21676 * @static
21677 */
21678 public static function renderEach($view, $data, $iterator, $empty = 'raw|')
21679 {
21680 /** @var \Illuminate\View\Factory $instance */
21681 return $instance->renderEach($view, $data, $iterator, $empty);
21682 }
21683
21684 /**
21685 * Determine if a given view exists.
21686 *
21687 * @param string $view
21688 * @return bool
21689 * @static
21690 */
21691 public static function exists($view)
21692 {
21693 /** @var \Illuminate\View\Factory $instance */
21694 return $instance->exists($view);
21695 }
21696
21697 /**
21698 * Get the appropriate view engine for the given path.
21699 *
21700 * @param string $path
21701 * @return \Illuminate\Contracts\View\Engine
21702 * @throws \InvalidArgumentException
21703 * @static
21704 */
21705 public static function getEngineFromPath($path)
21706 {
21707 /** @var \Illuminate\View\Factory $instance */
21708 return $instance->getEngineFromPath($path);
21709 }
21710
21711 /**
21712 * Add a piece of shared data to the environment.
21713 *
21714 * @param array|string $key
21715 * @param mixed $value
21716 * @return mixed
21717 * @static
21718 */
21719 public static function share($key, $value = null)
21720 {
21721 /** @var \Illuminate\View\Factory $instance */
21722 return $instance->share($key, $value);
21723 }
21724
21725 /**
21726 * Increment the rendering counter.
21727 *
21728 * @return void
21729 * @static
21730 */
21731 public static function incrementRender()
21732 {
21733 /** @var \Illuminate\View\Factory $instance */
21734 $instance->incrementRender();
21735 }
21736
21737 /**
21738 * Decrement the rendering counter.
21739 *
21740 * @return void
21741 * @static
21742 */
21743 public static function decrementRender()
21744 {
21745 /** @var \Illuminate\View\Factory $instance */
21746 $instance->decrementRender();
21747 }
21748
21749 /**
21750 * Check if there are no active render operations.
21751 *
21752 * @return bool
21753 * @static
21754 */
21755 public static function doneRendering()
21756 {
21757 /** @var \Illuminate\View\Factory $instance */
21758 return $instance->doneRendering();
21759 }
21760
21761 /**
21762 * Determine if the given once token has been rendered.
21763 *
21764 * @param string $id
21765 * @return bool
21766 * @static
21767 */
21768 public static function hasRenderedOnce($id)
21769 {
21770 /** @var \Illuminate\View\Factory $instance */
21771 return $instance->hasRenderedOnce($id);
21772 }
21773
21774 /**
21775 * Mark the given once token as having been rendered.
21776 *
21777 * @param string $id
21778 * @return void
21779 * @static
21780 */
21781 public static function markAsRenderedOnce($id)
21782 {
21783 /** @var \Illuminate\View\Factory $instance */
21784 $instance->markAsRenderedOnce($id);
21785 }
21786
21787 /**
21788 * Add a location to the array of view locations.
21789 *
21790 * @param string $location
21791 * @return void
21792 * @static
21793 */
21794 public static function addLocation($location)
21795 {
21796 /** @var \Illuminate\View\Factory $instance */
21797 $instance->addLocation($location);
21798 }
21799
21800 /**
21801 * Prepend a location to the array of view locations.
21802 *
21803 * @param string $location
21804 * @return void
21805 * @static
21806 */
21807 public static function prependLocation($location)
21808 {
21809 /** @var \Illuminate\View\Factory $instance */
21810 $instance->prependLocation($location);
21811 }
21812
21813 /**
21814 * Add a new namespace to the loader.
21815 *
21816 * @param string $namespace
21817 * @param string|array $hints
21818 * @return \Illuminate\View\Factory
21819 * @static
21820 */
21821 public static function addNamespace($namespace, $hints)
21822 {
21823 /** @var \Illuminate\View\Factory $instance */
21824 return $instance->addNamespace($namespace, $hints);
21825 }
21826
21827 /**
21828 * Prepend a new namespace to the loader.
21829 *
21830 * @param string $namespace
21831 * @param string|array $hints
21832 * @return \Illuminate\View\Factory
21833 * @static
21834 */
21835 public static function prependNamespace($namespace, $hints)
21836 {
21837 /** @var \Illuminate\View\Factory $instance */
21838 return $instance->prependNamespace($namespace, $hints);
21839 }
21840
21841 /**
21842 * Replace the namespace hints for the given namespace.
21843 *
21844 * @param string $namespace
21845 * @param string|array $hints
21846 * @return \Illuminate\View\Factory
21847 * @static
21848 */
21849 public static function replaceNamespace($namespace, $hints)
21850 {
21851 /** @var \Illuminate\View\Factory $instance */
21852 return $instance->replaceNamespace($namespace, $hints);
21853 }
21854
21855 /**
21856 * Register a valid view extension and its engine.
21857 *
21858 * @param string $extension
21859 * @param string $engine
21860 * @param \Closure|null $resolver
21861 * @return void
21862 * @static
21863 */
21864 public static function addExtension($extension, $engine, $resolver = null)
21865 {
21866 /** @var \Illuminate\View\Factory $instance */
21867 $instance->addExtension($extension, $engine, $resolver);
21868 }
21869
21870 /**
21871 * Flush all of the factory state like sections and stacks.
21872 *
21873 * @return void
21874 * @static
21875 */
21876 public static function flushState()
21877 {
21878 /** @var \Illuminate\View\Factory $instance */
21879 $instance->flushState();
21880 }
21881
21882 /**
21883 * Flush all of the section contents if done rendering.
21884 *
21885 * @return void
21886 * @static
21887 */
21888 public static function flushStateIfDoneRendering()
21889 {
21890 /** @var \Illuminate\View\Factory $instance */
21891 $instance->flushStateIfDoneRendering();
21892 }
21893
21894 /**
21895 * Get the extension to engine bindings.
21896 *
21897 * @return array
21898 * @static
21899 */
21900 public static function getExtensions()
21901 {
21902 /** @var \Illuminate\View\Factory $instance */
21903 return $instance->getExtensions();
21904 }
21905
21906 /**
21907 * Get the engine resolver instance.
21908 *
21909 * @return \Illuminate\View\Engines\EngineResolver
21910 * @static
21911 */
21912 public static function getEngineResolver()
21913 {
21914 /** @var \Illuminate\View\Factory $instance */
21915 return $instance->getEngineResolver();
21916 }
21917
21918 /**
21919 * Get the view finder instance.
21920 *
21921 * @return \Illuminate\View\ViewFinderInterface
21922 * @static
21923 */
21924 public static function getFinder()
21925 {
21926 /** @var \Illuminate\View\Factory $instance */
21927 return $instance->getFinder();
21928 }
21929
21930 /**
21931 * Set the view finder instance.
21932 *
21933 * @param \Illuminate\View\ViewFinderInterface $finder
21934 * @return void
21935 * @static
21936 */
21937 public static function setFinder($finder)
21938 {
21939 /** @var \Illuminate\View\Factory $instance */
21940 $instance->setFinder($finder);
21941 }
21942
21943 /**
21944 * Flush the cache of views located by the finder.
21945 *
21946 * @return void
21947 * @static
21948 */
21949 public static function flushFinderCache()
21950 {
21951 /** @var \Illuminate\View\Factory $instance */
21952 $instance->flushFinderCache();
21953 }
21954
21955 /**
21956 * Get the event dispatcher instance.
21957 *
21958 * @return \Illuminate\Contracts\Events\Dispatcher
21959 * @static
21960 */
21961 public static function getDispatcher()
21962 {
21963 /** @var \Illuminate\View\Factory $instance */
21964 return $instance->getDispatcher();
21965 }
21966
21967 /**
21968 * Set the event dispatcher instance.
21969 *
21970 * @param \Illuminate\Contracts\Events\Dispatcher $events
21971 * @return void
21972 * @static
21973 */
21974 public static function setDispatcher($events)
21975 {
21976 /** @var \Illuminate\View\Factory $instance */
21977 $instance->setDispatcher($events);
21978 }
21979
21980 /**
21981 * Get the IoC container instance.
21982 *
21983 * @return \Illuminate\Contracts\Container\Container
21984 * @static
21985 */
21986 public static function getContainer()
21987 {
21988 /** @var \Illuminate\View\Factory $instance */
21989 return $instance->getContainer();
21990 }
21991
21992 /**
21993 * Set the IoC container instance.
21994 *
21995 * @param \Illuminate\Contracts\Container\Container $container
21996 * @return void
21997 * @static
21998 */
21999 public static function setContainer($container)
22000 {
22001 /** @var \Illuminate\View\Factory $instance */
22002 $instance->setContainer($container);
22003 }
22004
22005 /**
22006 * Get an item from the shared data.
22007 *
22008 * @param string $key
22009 * @param mixed $default
22010 * @return mixed
22011 * @static
22012 */
22013 public static function shared($key, $default = null)
22014 {
22015 /** @var \Illuminate\View\Factory $instance */
22016 return $instance->shared($key, $default);
22017 }
22018
22019 /**
22020 * Get all of the shared data for the environment.
22021 *
22022 * @return array
22023 * @static
22024 */
22025 public static function getShared()
22026 {
22027 /** @var \Illuminate\View\Factory $instance */
22028 return $instance->getShared();
22029 }
22030
22031 /**
22032 * Register a custom macro.
22033 *
22034 * @param string $name
22035 * @param object|callable $macro
22036 * @param-closure-this static $macro
22037 * @return void
22038 * @static
22039 */
22040 public static function macro($name, $macro)
22041 {
22042 \Illuminate\View\Factory::macro($name, $macro);
22043 }
22044
22045 /**
22046 * Mix another object into the class.
22047 *
22048 * @param object $mixin
22049 * @param bool $replace
22050 * @return void
22051 * @throws \ReflectionException
22052 * @static
22053 */
22054 public static function mixin($mixin, $replace = true)
22055 {
22056 \Illuminate\View\Factory::mixin($mixin, $replace);
22057 }
22058
22059 /**
22060 * Checks if macro is registered.
22061 *
22062 * @param string $name
22063 * @return bool
22064 * @static
22065 */
22066 public static function hasMacro($name)
22067 {
22068 return \Illuminate\View\Factory::hasMacro($name);
22069 }
22070
22071 /**
22072 * Flush the existing macros.
22073 *
22074 * @return void
22075 * @static
22076 */
22077 public static function flushMacros()
22078 {
22079 \Illuminate\View\Factory::flushMacros();
22080 }
22081
22082 /**
22083 * Start a component rendering process.
22084 *
22085 * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
22086 * @param array $data
22087 * @return void
22088 * @static
22089 */
22090 public static function startComponent($view, $data = [])
22091 {
22092 /** @var \Illuminate\View\Factory $instance */
22093 $instance->startComponent($view, $data);
22094 }
22095
22096 /**
22097 * Get the first view that actually exists from the given list, and start a component.
22098 *
22099 * @param array $names
22100 * @param array $data
22101 * @return void
22102 * @static
22103 */
22104 public static function startComponentFirst($names, $data = [])
22105 {
22106 /** @var \Illuminate\View\Factory $instance */
22107 $instance->startComponentFirst($names, $data);
22108 }
22109
22110 /**
22111 * Render the current component.
22112 *
22113 * @return string
22114 * @static
22115 */
22116 public static function renderComponent()
22117 {
22118 /** @var \Illuminate\View\Factory $instance */
22119 return $instance->renderComponent();
22120 }
22121
22122 /**
22123 * Get an item from the component data that exists above the current component.
22124 *
22125 * @param string $key
22126 * @param mixed $default
22127 * @return mixed
22128 * @static
22129 */
22130 public static function getConsumableComponentData($key, $default = null)
22131 {
22132 /** @var \Illuminate\View\Factory $instance */
22133 return $instance->getConsumableComponentData($key, $default);
22134 }
22135
22136 /**
22137 * Start the slot rendering process.
22138 *
22139 * @param string $name
22140 * @param string|null $content
22141 * @param array $attributes
22142 * @return void
22143 * @static
22144 */
22145 public static function slot($name, $content = null, $attributes = [])
22146 {
22147 /** @var \Illuminate\View\Factory $instance */
22148 $instance->slot($name, $content, $attributes);
22149 }
22150
22151 /**
22152 * Save the slot content for rendering.
22153 *
22154 * @return void
22155 * @static
22156 */
22157 public static function endSlot()
22158 {
22159 /** @var \Illuminate\View\Factory $instance */
22160 $instance->endSlot();
22161 }
22162
22163 /**
22164 * Register a view creator event.
22165 *
22166 * @param array|string $views
22167 * @param \Closure|string $callback
22168 * @return array
22169 * @static
22170 */
22171 public static function creator($views, $callback)
22172 {
22173 /** @var \Illuminate\View\Factory $instance */
22174 return $instance->creator($views, $callback);
22175 }
22176
22177 /**
22178 * Register multiple view composers via an array.
22179 *
22180 * @param array $composers
22181 * @return array
22182 * @static
22183 */
22184 public static function composers($composers)
22185 {
22186 /** @var \Illuminate\View\Factory $instance */
22187 return $instance->composers($composers);
22188 }
22189
22190 /**
22191 * Register a view composer event.
22192 *
22193 * @param array|string $views
22194 * @param \Closure|string $callback
22195 * @return array
22196 * @static
22197 */
22198 public static function composer($views, $callback)
22199 {
22200 /** @var \Illuminate\View\Factory $instance */
22201 return $instance->composer($views, $callback);
22202 }
22203
22204 /**
22205 * Call the composer for a given view.
22206 *
22207 * @param \Illuminate\Contracts\View\View $view
22208 * @return void
22209 * @static
22210 */
22211 public static function callComposer($view)
22212 {
22213 /** @var \Illuminate\View\Factory $instance */
22214 $instance->callComposer($view);
22215 }
22216
22217 /**
22218 * Call the creator for a given view.
22219 *
22220 * @param \Illuminate\Contracts\View\View $view
22221 * @return void
22222 * @static
22223 */
22224 public static function callCreator($view)
22225 {
22226 /** @var \Illuminate\View\Factory $instance */
22227 $instance->callCreator($view);
22228 }
22229
22230 /**
22231 * Start injecting content into a fragment.
22232 *
22233 * @param string $fragment
22234 * @return void
22235 * @static
22236 */
22237 public static function startFragment($fragment)
22238 {
22239 /** @var \Illuminate\View\Factory $instance */
22240 $instance->startFragment($fragment);
22241 }
22242
22243 /**
22244 * Stop injecting content into a fragment.
22245 *
22246 * @return string
22247 * @throws \InvalidArgumentException
22248 * @static
22249 */
22250 public static function stopFragment()
22251 {
22252 /** @var \Illuminate\View\Factory $instance */
22253 return $instance->stopFragment();
22254 }
22255
22256 /**
22257 * Get the contents of a fragment.
22258 *
22259 * @param string $name
22260 * @param string|null $default
22261 * @return mixed
22262 * @static
22263 */
22264 public static function getFragment($name, $default = null)
22265 {
22266 /** @var \Illuminate\View\Factory $instance */
22267 return $instance->getFragment($name, $default);
22268 }
22269
22270 /**
22271 * Get the entire array of rendered fragments.
22272 *
22273 * @return array
22274 * @static
22275 */
22276 public static function getFragments()
22277 {
22278 /** @var \Illuminate\View\Factory $instance */
22279 return $instance->getFragments();
22280 }
22281
22282 /**
22283 * Flush all of the fragments.
22284 *
22285 * @return void
22286 * @static
22287 */
22288 public static function flushFragments()
22289 {
22290 /** @var \Illuminate\View\Factory $instance */
22291 $instance->flushFragments();
22292 }
22293
22294 /**
22295 * Start injecting content into a section.
22296 *
22297 * @param string $section
22298 * @param string|null $content
22299 * @return void
22300 * @static
22301 */
22302 public static function startSection($section, $content = null)
22303 {
22304 /** @var \Illuminate\View\Factory $instance */
22305 $instance->startSection($section, $content);
22306 }
22307
22308 /**
22309 * Inject inline content into a section.
22310 *
22311 * @param string $section
22312 * @param string $content
22313 * @return void
22314 * @static
22315 */
22316 public static function inject($section, $content)
22317 {
22318 /** @var \Illuminate\View\Factory $instance */
22319 $instance->inject($section, $content);
22320 }
22321
22322 /**
22323 * Stop injecting content into a section and return its contents.
22324 *
22325 * @return string
22326 * @static
22327 */
22328 public static function yieldSection()
22329 {
22330 /** @var \Illuminate\View\Factory $instance */
22331 return $instance->yieldSection();
22332 }
22333
22334 /**
22335 * Stop injecting content into a section.
22336 *
22337 * @param bool $overwrite
22338 * @return string
22339 * @throws \InvalidArgumentException
22340 * @static
22341 */
22342 public static function stopSection($overwrite = false)
22343 {
22344 /** @var \Illuminate\View\Factory $instance */
22345 return $instance->stopSection($overwrite);
22346 }
22347
22348 /**
22349 * Stop injecting content into a section and append it.
22350 *
22351 * @return string
22352 * @throws \InvalidArgumentException
22353 * @static
22354 */
22355 public static function appendSection()
22356 {
22357 /** @var \Illuminate\View\Factory $instance */
22358 return $instance->appendSection();
22359 }
22360
22361 /**
22362 * Get the string contents of a section.
22363 *
22364 * @param string $section
22365 * @param string $default
22366 * @return string
22367 * @static
22368 */
22369 public static function yieldContent($section, $default = '')
22370 {
22371 /** @var \Illuminate\View\Factory $instance */
22372 return $instance->yieldContent($section, $default);
22373 }
22374
22375 /**
22376 * Get the parent placeholder for the current request.
22377 *
22378 * @param string $section
22379 * @return string
22380 * @static
22381 */
22382 public static function parentPlaceholder($section = '')
22383 {
22384 return \Illuminate\View\Factory::parentPlaceholder($section);
22385 }
22386
22387 /**
22388 * Check if section exists.
22389 *
22390 * @param string $name
22391 * @return bool
22392 * @static
22393 */
22394 public static function hasSection($name)
22395 {
22396 /** @var \Illuminate\View\Factory $instance */
22397 return $instance->hasSection($name);
22398 }
22399
22400 /**
22401 * Check if section does not exist.
22402 *
22403 * @param string $name
22404 * @return bool
22405 * @static
22406 */
22407 public static function sectionMissing($name)
22408 {
22409 /** @var \Illuminate\View\Factory $instance */
22410 return $instance->sectionMissing($name);
22411 }
22412
22413 /**
22414 * Get the contents of a section.
22415 *
22416 * @param string $name
22417 * @param string|null $default
22418 * @return mixed
22419 * @static
22420 */
22421 public static function getSection($name, $default = null)
22422 {
22423 /** @var \Illuminate\View\Factory $instance */
22424 return $instance->getSection($name, $default);
22425 }
22426
22427 /**
22428 * Get the entire array of sections.
22429 *
22430 * @return array
22431 * @static
22432 */
22433 public static function getSections()
22434 {
22435 /** @var \Illuminate\View\Factory $instance */
22436 return $instance->getSections();
22437 }
22438
22439 /**
22440 * Flush all of the sections.
22441 *
22442 * @return void
22443 * @static
22444 */
22445 public static function flushSections()
22446 {
22447 /** @var \Illuminate\View\Factory $instance */
22448 $instance->flushSections();
22449 }
22450
22451 /**
22452 * Add new loop to the stack.
22453 *
22454 * @param \Countable|array $data
22455 * @return void
22456 * @static
22457 */
22458 public static function addLoop($data)
22459 {
22460 /** @var \Illuminate\View\Factory $instance */
22461 $instance->addLoop($data);
22462 }
22463
22464 /**
22465 * Increment the top loop's indices.
22466 *
22467 * @return void
22468 * @static
22469 */
22470 public static function incrementLoopIndices()
22471 {
22472 /** @var \Illuminate\View\Factory $instance */
22473 $instance->incrementLoopIndices();
22474 }
22475
22476 /**
22477 * Pop a loop from the top of the loop stack.
22478 *
22479 * @return void
22480 * @static
22481 */
22482 public static function popLoop()
22483 {
22484 /** @var \Illuminate\View\Factory $instance */
22485 $instance->popLoop();
22486 }
22487
22488 /**
22489 * Get an instance of the last loop in the stack.
22490 *
22491 * @return \stdClass|null
22492 * @static
22493 */
22494 public static function getLastLoop()
22495 {
22496 /** @var \Illuminate\View\Factory $instance */
22497 return $instance->getLastLoop();
22498 }
22499
22500 /**
22501 * Get the entire loop stack.
22502 *
22503 * @return array
22504 * @static
22505 */
22506 public static function getLoopStack()
22507 {
22508 /** @var \Illuminate\View\Factory $instance */
22509 return $instance->getLoopStack();
22510 }
22511
22512 /**
22513 * Start injecting content into a push section.
22514 *
22515 * @param string $section
22516 * @param string $content
22517 * @return void
22518 * @static
22519 */
22520 public static function startPush($section, $content = '')
22521 {
22522 /** @var \Illuminate\View\Factory $instance */
22523 $instance->startPush($section, $content);
22524 }
22525
22526 /**
22527 * Stop injecting content into a push section.
22528 *
22529 * @return string
22530 * @throws \InvalidArgumentException
22531 * @static
22532 */
22533 public static function stopPush()
22534 {
22535 /** @var \Illuminate\View\Factory $instance */
22536 return $instance->stopPush();
22537 }
22538
22539 /**
22540 * Start prepending content into a push section.
22541 *
22542 * @param string $section
22543 * @param string $content
22544 * @return void
22545 * @static
22546 */
22547 public static function startPrepend($section, $content = '')
22548 {
22549 /** @var \Illuminate\View\Factory $instance */
22550 $instance->startPrepend($section, $content);
22551 }
22552
22553 /**
22554 * Stop prepending content into a push section.
22555 *
22556 * @return string
22557 * @throws \InvalidArgumentException
22558 * @static
22559 */
22560 public static function stopPrepend()
22561 {
22562 /** @var \Illuminate\View\Factory $instance */
22563 return $instance->stopPrepend();
22564 }
22565
22566 /**
22567 * Get the string contents of a push section.
22568 *
22569 * @param string $section
22570 * @param string $default
22571 * @return string
22572 * @static
22573 */
22574 public static function yieldPushContent($section, $default = '')
22575 {
22576 /** @var \Illuminate\View\Factory $instance */
22577 return $instance->yieldPushContent($section, $default);
22578 }
22579
22580 /**
22581 * Flush all of the stacks.
22582 *
22583 * @return void
22584 * @static
22585 */
22586 public static function flushStacks()
22587 {
22588 /** @var \Illuminate\View\Factory $instance */
22589 $instance->flushStacks();
22590 }
22591
22592 /**
22593 * Start a translation block.
22594 *
22595 * @param array $replacements
22596 * @return void
22597 * @static
22598 */
22599 public static function startTranslation($replacements = [])
22600 {
22601 /** @var \Illuminate\View\Factory $instance */
22602 $instance->startTranslation($replacements);
22603 }
22604
22605 /**
22606 * Render the current translation.
22607 *
22608 * @return string
22609 * @static
22610 */
22611 public static function renderTranslation()
22612 {
22613 /** @var \Illuminate\View\Factory $instance */
22614 return $instance->renderTranslation();
22615 }
22616
22617 }
22618 /**
22619 * @see \Illuminate\Foundation\Vite
22620 */
22621 class Vite {
22622 /**
22623 * Get the preloaded assets.
22624 *
22625 * @return array
22626 * @static
22627 */
22628 public static function preloadedAssets()
22629 {
22630 /** @var \Illuminate\Foundation\Vite $instance */
22631 return $instance->preloadedAssets();
22632 }
22633
22634 /**
22635 * Get the Content Security Policy nonce applied to all generated tags.
22636 *
22637 * @return string|null
22638 * @static
22639 */
22640 public static function cspNonce()
22641 {
22642 /** @var \Illuminate\Foundation\Vite $instance */
22643 return $instance->cspNonce();
22644 }
22645
22646 /**
22647 * Generate or set a Content Security Policy nonce to apply to all generated tags.
22648 *
22649 * @param string|null $nonce
22650 * @return string
22651 * @static
22652 */
22653 public static function useCspNonce($nonce = null)
22654 {
22655 /** @var \Illuminate\Foundation\Vite $instance */
22656 return $instance->useCspNonce($nonce);
22657 }
22658
22659 /**
22660 * Use the given key to detect integrity hashes in the manifest.
22661 *
22662 * @param string|false $key
22663 * @return \Illuminate\Foundation\Vite
22664 * @static
22665 */
22666 public static function useIntegrityKey($key)
22667 {
22668 /** @var \Illuminate\Foundation\Vite $instance */
22669 return $instance->useIntegrityKey($key);
22670 }
22671
22672 /**
22673 * Set the Vite entry points.
22674 *
22675 * @param array $entryPoints
22676 * @return \Illuminate\Foundation\Vite
22677 * @static
22678 */
22679 public static function withEntryPoints($entryPoints)
22680 {
22681 /** @var \Illuminate\Foundation\Vite $instance */
22682 return $instance->withEntryPoints($entryPoints);
22683 }
22684
22685 /**
22686 * Merge additional Vite entry points with the current set.
22687 *
22688 * @param array $entryPoints
22689 * @return \Illuminate\Foundation\Vite
22690 * @static
22691 */
22692 public static function mergeEntryPoints($entryPoints)
22693 {
22694 /** @var \Illuminate\Foundation\Vite $instance */
22695 return $instance->mergeEntryPoints($entryPoints);
22696 }
22697
22698 /**
22699 * Set the filename for the manifest file.
22700 *
22701 * @param string $filename
22702 * @return \Illuminate\Foundation\Vite
22703 * @static
22704 */
22705 public static function useManifestFilename($filename)
22706 {
22707 /** @var \Illuminate\Foundation\Vite $instance */
22708 return $instance->useManifestFilename($filename);
22709 }
22710
22711 /**
22712 * Resolve asset paths using the provided resolver.
22713 *
22714 * @param callable|null $resolver
22715 * @return \Illuminate\Foundation\Vite
22716 * @static
22717 */
22718 public static function createAssetPathsUsing($resolver)
22719 {
22720 /** @var \Illuminate\Foundation\Vite $instance */
22721 return $instance->createAssetPathsUsing($resolver);
22722 }
22723
22724 /**
22725 * Get the Vite "hot" file path.
22726 *
22727 * @return string
22728 * @static
22729 */
22730 public static function hotFile()
22731 {
22732 /** @var \Illuminate\Foundation\Vite $instance */
22733 return $instance->hotFile();
22734 }
22735
22736 /**
22737 * Set the Vite "hot" file path.
22738 *
22739 * @param string $path
22740 * @return \Illuminate\Foundation\Vite
22741 * @static
22742 */
22743 public static function useHotFile($path)
22744 {
22745 /** @var \Illuminate\Foundation\Vite $instance */
22746 return $instance->useHotFile($path);
22747 }
22748
22749 /**
22750 * Set the Vite build directory.
22751 *
22752 * @param string $path
22753 * @return \Illuminate\Foundation\Vite
22754 * @static
22755 */
22756 public static function useBuildDirectory($path)
22757 {
22758 /** @var \Illuminate\Foundation\Vite $instance */
22759 return $instance->useBuildDirectory($path);
22760 }
22761
22762 /**
22763 * Use the given callback to resolve attributes for script tags.
22764 *
22765 * @param (callable(string, string, ?array, ?array): array)|array $attributes
22766 * @return \Illuminate\Foundation\Vite
22767 * @static
22768 */
22769 public static function useScriptTagAttributes($attributes)
22770 {
22771 /** @var \Illuminate\Foundation\Vite $instance */
22772 return $instance->useScriptTagAttributes($attributes);
22773 }
22774
22775 /**
22776 * Use the given callback to resolve attributes for style tags.
22777 *
22778 * @param (callable(string, string, ?array, ?array): array)|array $attributes
22779 * @return \Illuminate\Foundation\Vite
22780 * @static
22781 */
22782 public static function useStyleTagAttributes($attributes)
22783 {
22784 /** @var \Illuminate\Foundation\Vite $instance */
22785 return $instance->useStyleTagAttributes($attributes);
22786 }
22787
22788 /**
22789 * Use the given callback to resolve attributes for preload tags.
22790 *
22791 * @param (callable(string, string, ?array, ?array): (array|false))|array|false $attributes
22792 * @return \Illuminate\Foundation\Vite
22793 * @static
22794 */
22795 public static function usePreloadTagAttributes($attributes)
22796 {
22797 /** @var \Illuminate\Foundation\Vite $instance */
22798 return $instance->usePreloadTagAttributes($attributes);
22799 }
22800
22801 /**
22802 * Eagerly prefetch assets.
22803 *
22804 * @param int|null $concurrency
22805 * @param string $event
22806 * @return \Illuminate\Foundation\Vite
22807 * @static
22808 */
22809 public static function prefetch($concurrency = null, $event = 'load')
22810 {
22811 /** @var \Illuminate\Foundation\Vite $instance */
22812 return $instance->prefetch($concurrency, $event);
22813 }
22814
22815 /**
22816 * Use the "waterfall" prefetching strategy.
22817 *
22818 * @return \Illuminate\Foundation\Vite
22819 * @static
22820 */
22821 public static function useWaterfallPrefetching($concurrency = null)
22822 {
22823 /** @var \Illuminate\Foundation\Vite $instance */
22824 return $instance->useWaterfallPrefetching($concurrency);
22825 }
22826
22827 /**
22828 * Use the "aggressive" prefetching strategy.
22829 *
22830 * @return \Illuminate\Foundation\Vite
22831 * @static
22832 */
22833 public static function useAggressivePrefetching()
22834 {
22835 /** @var \Illuminate\Foundation\Vite $instance */
22836 return $instance->useAggressivePrefetching();
22837 }
22838
22839 /**
22840 * Set the prefetching strategy.
22841 *
22842 * @param 'waterfall'|'aggressive'|null $strategy
22843 * @param array $config
22844 * @return \Illuminate\Foundation\Vite
22845 * @static
22846 */
22847 public static function usePrefetchStrategy($strategy, $config = [])
22848 {
22849 /** @var \Illuminate\Foundation\Vite $instance */
22850 return $instance->usePrefetchStrategy($strategy, $config);
22851 }
22852
22853 /**
22854 * Generate React refresh runtime script.
22855 *
22856 * @return \Illuminate\Support\HtmlString|void
22857 * @static
22858 */
22859 public static function reactRefresh()
22860 {
22861 /** @var \Illuminate\Foundation\Vite $instance */
22862 return $instance->reactRefresh();
22863 }
22864
22865 /**
22866 * Get the URL for an asset.
22867 *
22868 * @param string $asset
22869 * @param string|null $buildDirectory
22870 * @return string
22871 * @static
22872 */
22873 public static function asset($asset, $buildDirectory = null)
22874 {
22875 /** @var \Illuminate\Foundation\Vite $instance */
22876 return $instance->asset($asset, $buildDirectory);
22877 }
22878
22879 /**
22880 * Get the content of a given asset.
22881 *
22882 * @param string $asset
22883 * @param string|null $buildDirectory
22884 * @return string
22885 * @throws \Illuminate\Foundation\ViteException
22886 * @static
22887 */
22888 public static function content($asset, $buildDirectory = null)
22889 {
22890 /** @var \Illuminate\Foundation\Vite $instance */
22891 return $instance->content($asset, $buildDirectory);
22892 }
22893
22894 /**
22895 * Get a unique hash representing the current manifest, or null if there is no manifest.
22896 *
22897 * @param string|null $buildDirectory
22898 * @return string|null
22899 * @static
22900 */
22901 public static function manifestHash($buildDirectory = null)
22902 {
22903 /** @var \Illuminate\Foundation\Vite $instance */
22904 return $instance->manifestHash($buildDirectory);
22905 }
22906
22907 /**
22908 * Determine if the HMR server is running.
22909 *
22910 * @return bool
22911 * @static
22912 */
22913 public static function isRunningHot()
22914 {
22915 /** @var \Illuminate\Foundation\Vite $instance */
22916 return $instance->isRunningHot();
22917 }
22918
22919 /**
22920 * Get the Vite tag content as a string of HTML.
22921 *
22922 * @return string
22923 * @static
22924 */
22925 public static function toHtml()
22926 {
22927 /** @var \Illuminate\Foundation\Vite $instance */
22928 return $instance->toHtml();
22929 }
22930
22931 /**
22932 * Flush state.
22933 *
22934 * @return void
22935 * @static
22936 */
22937 public static function flush()
22938 {
22939 /** @var \Illuminate\Foundation\Vite $instance */
22940 $instance->flush();
22941 }
22942
22943 /**
22944 * Register a custom macro.
22945 *
22946 * @param string $name
22947 * @param object|callable $macro
22948 * @param-closure-this static $macro
22949 * @return void
22950 * @static
22951 */
22952 public static function macro($name, $macro)
22953 {
22954 \Illuminate\Foundation\Vite::macro($name, $macro);
22955 }
22956
22957 /**
22958 * Mix another object into the class.
22959 *
22960 * @param object $mixin
22961 * @param bool $replace
22962 * @return void
22963 * @throws \ReflectionException
22964 * @static
22965 */
22966 public static function mixin($mixin, $replace = true)
22967 {
22968 \Illuminate\Foundation\Vite::mixin($mixin, $replace);
22969 }
22970
22971 /**
22972 * Checks if macro is registered.
22973 *
22974 * @param string $name
22975 * @return bool
22976 * @static
22977 */
22978 public static function hasMacro($name)
22979 {
22980 return \Illuminate\Foundation\Vite::hasMacro($name);
22981 }
22982
22983 /**
22984 * Flush the existing macros.
22985 *
22986 * @return void
22987 * @static
22988 */
22989 public static function flushMacros()
22990 {
22991 \Illuminate\Foundation\Vite::flushMacros();
22992 }
22993
22994 }
22995 }
22996
22997namespace Illuminate\Http {
22998 /**
22999 */
23000 class Request extends \Symfony\Component\HttpFoundation\Request {
23001 /**
23002 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
23003 * @param array $rules
23004 * @param mixed $params
23005 * @static
23006 */
23007 public static function validate($rules, ...$params)
23008 {
23009 return \Illuminate\Http\Request::validate($rules, ...$params);
23010 }
23011
23012 /**
23013 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
23014 * @param string $errorBag
23015 * @param array $rules
23016 * @param mixed $params
23017 * @static
23018 */
23019 public static function validateWithBag($errorBag, $rules, ...$params)
23020 {
23021 return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
23022 }
23023
23024 /**
23025 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
23026 * @param mixed $absolute
23027 * @static
23028 */
23029 public static function hasValidSignature($absolute = true)
23030 {
23031 return \Illuminate\Http\Request::hasValidSignature($absolute);
23032 }
23033
23034 /**
23035 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
23036 * @static
23037 */
23038 public static function hasValidRelativeSignature()
23039 {
23040 return \Illuminate\Http\Request::hasValidRelativeSignature();
23041 }
23042
23043 /**
23044 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
23045 * @param mixed $ignoreQuery
23046 * @param mixed $absolute
23047 * @static
23048 */
23049 public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
23050 {
23051 return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
23052 }
23053
23054 /**
23055 * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
23056 * @param mixed $ignoreQuery
23057 * @static
23058 */
23059 public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
23060 {
23061 return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
23062 }
23063
23064 }
23065 }
23066
23067
23068namespace {
23069 class App extends \Illuminate\Support\Facades\App {}
23070 class Arr extends \Illuminate\Support\Arr {}
23071 class Artisan extends \Illuminate\Support\Facades\Artisan {}
23072 class Auth extends \Illuminate\Support\Facades\Auth {}
23073 class Benchmark extends \Illuminate\Support\Benchmark {}
23074 class Blade extends \Illuminate\Support\Facades\Blade {}
23075 class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
23076 class Bus extends \Illuminate\Support\Facades\Bus {}
23077 class Cache extends \Illuminate\Support\Facades\Cache {}
23078 class Concurrency extends \Illuminate\Support\Facades\Concurrency {}
23079 class Config extends \Illuminate\Support\Facades\Config {}
23080 class Context extends \Illuminate\Support\Facades\Context {}
23081 class Cookie extends \Illuminate\Support\Facades\Cookie {}
23082 class Crypt extends \Illuminate\Support\Facades\Crypt {}
23083 class Date extends \Illuminate\Support\Facades\Date {}
23084 class DB extends \Illuminate\Support\Facades\DB {}
23085
23086 /**
23087 * @template TCollection of static
23088 * @template TModel of static
23089 * @template TValue of static
23090 * @template TValue of static
23091 */
23092 class Eloquent extends \Illuminate\Database\Eloquent\Model { /**
23093 * Create and return an un-saved model instance.
23094 *
23095 * @param array $attributes
23096 * @return TModel
23097 * @static
23098 */
23099 public static function make($attributes = [])
23100 {
23101 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23102 return $instance->make($attributes);
23103 }
23104
23105 /**
23106 * Register a new global scope.
23107 *
23108 * @param string $identifier
23109 * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
23110 * @return \Illuminate\Database\Eloquent\Builder<static>
23111 * @static
23112 */
23113 public static function withGlobalScope($identifier, $scope)
23114 {
23115 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23116 return $instance->withGlobalScope($identifier, $scope);
23117 }
23118
23119 /**
23120 * Remove a registered global scope.
23121 *
23122 * @param \Illuminate\Database\Eloquent\Scope|string $scope
23123 * @return \Illuminate\Database\Eloquent\Builder<static>
23124 * @static
23125 */
23126 public static function withoutGlobalScope($scope)
23127 {
23128 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23129 return $instance->withoutGlobalScope($scope);
23130 }
23131
23132 /**
23133 * Remove all or passed registered global scopes.
23134 *
23135 * @param array|null $scopes
23136 * @return \Illuminate\Database\Eloquent\Builder<static>
23137 * @static
23138 */
23139 public static function withoutGlobalScopes($scopes = null)
23140 {
23141 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23142 return $instance->withoutGlobalScopes($scopes);
23143 }
23144
23145 /**
23146 * Remove all global scopes except the given scopes.
23147 *
23148 * @param array $scopes
23149 * @return \Illuminate\Database\Eloquent\Builder<static>
23150 * @static
23151 */
23152 public static function withoutGlobalScopesExcept($scopes = [])
23153 {
23154 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23155 return $instance->withoutGlobalScopesExcept($scopes);
23156 }
23157
23158 /**
23159 * Get an array of global scopes that were removed from the query.
23160 *
23161 * @return array
23162 * @static
23163 */
23164 public static function removedScopes()
23165 {
23166 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23167 return $instance->removedScopes();
23168 }
23169
23170 /**
23171 * Add a where clause on the primary key to the query.
23172 *
23173 * @param mixed $id
23174 * @return \Illuminate\Database\Eloquent\Builder<static>
23175 * @static
23176 */
23177 public static function whereKey($id)
23178 {
23179 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23180 return $instance->whereKey($id);
23181 }
23182
23183 /**
23184 * Add a where clause on the primary key to the query.
23185 *
23186 * @param mixed $id
23187 * @return \Illuminate\Database\Eloquent\Builder<static>
23188 * @static
23189 */
23190 public static function whereKeyNot($id)
23191 {
23192 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23193 return $instance->whereKeyNot($id);
23194 }
23195
23196 /**
23197 * Add a basic where clause to the query.
23198 *
23199 * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
23200 * @param mixed $operator
23201 * @param mixed $value
23202 * @param string $boolean
23203 * @return \Illuminate\Database\Eloquent\Builder<static>
23204 * @static
23205 */
23206 public static function where($column, $operator = null, $value = null, $boolean = 'and')
23207 {
23208 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23209 return $instance->where($column, $operator, $value, $boolean);
23210 }
23211
23212 /**
23213 * Add a basic where clause to the query, and return the first result.
23214 *
23215 * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
23216 * @param mixed $operator
23217 * @param mixed $value
23218 * @param string $boolean
23219 * @return TModel|null
23220 * @static
23221 */
23222 public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
23223 {
23224 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23225 return $instance->firstWhere($column, $operator, $value, $boolean);
23226 }
23227
23228 /**
23229 * Add an "or where" clause to the query.
23230 *
23231 * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
23232 * @param mixed $operator
23233 * @param mixed $value
23234 * @return \Illuminate\Database\Eloquent\Builder<static>
23235 * @static
23236 */
23237 public static function orWhere($column, $operator = null, $value = null)
23238 {
23239 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23240 return $instance->orWhere($column, $operator, $value);
23241 }
23242
23243 /**
23244 * Add a basic "where not" clause to the query.
23245 *
23246 * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
23247 * @param mixed $operator
23248 * @param mixed $value
23249 * @param string $boolean
23250 * @return \Illuminate\Database\Eloquent\Builder<static>
23251 * @static
23252 */
23253 public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
23254 {
23255 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23256 return $instance->whereNot($column, $operator, $value, $boolean);
23257 }
23258
23259 /**
23260 * Add an "or where not" clause to the query.
23261 *
23262 * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
23263 * @param mixed $operator
23264 * @param mixed $value
23265 * @return \Illuminate\Database\Eloquent\Builder<static>
23266 * @static
23267 */
23268 public static function orWhereNot($column, $operator = null, $value = null)
23269 {
23270 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23271 return $instance->orWhereNot($column, $operator, $value);
23272 }
23273
23274 /**
23275 * Add an "order by" clause for a timestamp to the query.
23276 *
23277 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23278 * @return \Illuminate\Database\Eloquent\Builder<static>
23279 * @static
23280 */
23281 public static function latest($column = null)
23282 {
23283 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23284 return $instance->latest($column);
23285 }
23286
23287 /**
23288 * Add an "order by" clause for a timestamp to the query.
23289 *
23290 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23291 * @return \Illuminate\Database\Eloquent\Builder<static>
23292 * @static
23293 */
23294 public static function oldest($column = null)
23295 {
23296 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23297 return $instance->oldest($column);
23298 }
23299
23300 /**
23301 * Create a collection of models from plain arrays.
23302 *
23303 * @param array $items
23304 * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
23305 * @static
23306 */
23307 public static function hydrate($items)
23308 {
23309 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23310 return $instance->hydrate($items);
23311 }
23312
23313 /**
23314 * Insert into the database after merging the model's default attributes, setting timestamps, and casting values.
23315 *
23316 * @param array<int, array<string, mixed>> $values
23317 * @return bool
23318 * @static
23319 */
23320 public static function fillAndInsert($values)
23321 {
23322 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23323 return $instance->fillAndInsert($values);
23324 }
23325
23326 /**
23327 * Insert (ignoring errors) into the database after merging the model's default attributes, setting timestamps, and casting values.
23328 *
23329 * @param array<int, array<string, mixed>> $values
23330 * @return int
23331 * @static
23332 */
23333 public static function fillAndInsertOrIgnore($values)
23334 {
23335 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23336 return $instance->fillAndInsertOrIgnore($values);
23337 }
23338
23339 /**
23340 * Insert a record into the database and get its ID after merging the model's default attributes, setting timestamps, and casting values.
23341 *
23342 * @param array<string, mixed> $values
23343 * @return int
23344 * @static
23345 */
23346 public static function fillAndInsertGetId($values)
23347 {
23348 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23349 return $instance->fillAndInsertGetId($values);
23350 }
23351
23352 /**
23353 * Enrich the given values by merging in the model's default attributes, adding timestamps, and casting values.
23354 *
23355 * @param array<int, array<string, mixed>> $values
23356 * @return array<int, array<string, mixed>>
23357 * @static
23358 */
23359 public static function fillForInsert($values)
23360 {
23361 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23362 return $instance->fillForInsert($values);
23363 }
23364
23365 /**
23366 * Create a collection of models from a raw query.
23367 *
23368 * @param string $query
23369 * @param array $bindings
23370 * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
23371 * @static
23372 */
23373 public static function fromQuery($query, $bindings = [])
23374 {
23375 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23376 return $instance->fromQuery($query, $bindings);
23377 }
23378
23379 /**
23380 * Find a model by its primary key.
23381 *
23382 * @param mixed $id
23383 * @param array|string $columns
23384 * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel|null)
23385 * @static
23386 */
23387 public static function find($id, $columns = [])
23388 {
23389 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23390 return $instance->find($id, $columns);
23391 }
23392
23393 /**
23394 * Find a sole model by its primary key.
23395 *
23396 * @param mixed $id
23397 * @param array|string $columns
23398 * @return TModel
23399 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23400 * @throws \Illuminate\Database\MultipleRecordsFoundException
23401 * @static
23402 */
23403 public static function findSole($id, $columns = [])
23404 {
23405 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23406 return $instance->findSole($id, $columns);
23407 }
23408
23409 /**
23410 * Find multiple models by their primary keys.
23411 *
23412 * @param \Illuminate\Contracts\Support\Arrayable|array $ids
23413 * @param array|string $columns
23414 * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
23415 * @static
23416 */
23417 public static function findMany($ids, $columns = [])
23418 {
23419 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23420 return $instance->findMany($ids, $columns);
23421 }
23422
23423 /**
23424 * Find a model by its primary key or throw an exception.
23425 *
23426 * @param mixed $id
23427 * @param array|string $columns
23428 * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
23429 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23430 * @static
23431 */
23432 public static function findOrFail($id, $columns = [])
23433 {
23434 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23435 return $instance->findOrFail($id, $columns);
23436 }
23437
23438 /**
23439 * Find a model by its primary key or return fresh model instance.
23440 *
23441 * @param mixed $id
23442 * @param array|string $columns
23443 * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
23444 * @static
23445 */
23446 public static function findOrNew($id, $columns = [])
23447 {
23448 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23449 return $instance->findOrNew($id, $columns);
23450 }
23451
23452 /**
23453 * Find a model by its primary key or call a callback.
23454 *
23455 * @template TValue
23456 * @param mixed $id
23457 * @param (\Closure(): TValue)|list<string>|string $columns
23458 * @param (\Closure(): TValue)|null $callback
23459 * @return ( $id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>)
23460 * ? \Illuminate\Database\Eloquent\Collection<int, TModel>
23461 * : TModel|TValue
23462 * )
23463 * @static
23464 */
23465 public static function findOr($id, $columns = [], $callback = null)
23466 {
23467 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23468 return $instance->findOr($id, $columns, $callback);
23469 }
23470
23471 /**
23472 * Get the first record matching the attributes or instantiate it.
23473 *
23474 * @param array $attributes
23475 * @param array $values
23476 * @return TModel
23477 * @static
23478 */
23479 public static function firstOrNew($attributes = [], $values = [])
23480 {
23481 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23482 return $instance->firstOrNew($attributes, $values);
23483 }
23484
23485 /**
23486 * Get the first record matching the attributes. If the record is not found, create it.
23487 *
23488 * @param array $attributes
23489 * @param array $values
23490 * @return TModel
23491 * @static
23492 */
23493 public static function firstOrCreate($attributes = [], $values = [])
23494 {
23495 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23496 return $instance->firstOrCreate($attributes, $values);
23497 }
23498
23499 /**
23500 * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record.
23501 *
23502 * @param array $attributes
23503 * @param array $values
23504 * @return TModel
23505 * @static
23506 */
23507 public static function createOrFirst($attributes = [], $values = [])
23508 {
23509 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23510 return $instance->createOrFirst($attributes, $values);
23511 }
23512
23513 /**
23514 * Create or update a record matching the attributes, and fill it with values.
23515 *
23516 * @param array $attributes
23517 * @param array $values
23518 * @return TModel
23519 * @static
23520 */
23521 public static function updateOrCreate($attributes, $values = [])
23522 {
23523 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23524 return $instance->updateOrCreate($attributes, $values);
23525 }
23526
23527 /**
23528 * Create a record matching the attributes, or increment the existing record.
23529 *
23530 * @param array $attributes
23531 * @param string $column
23532 * @param int|float $default
23533 * @param int|float $step
23534 * @param array $extra
23535 * @return TModel
23536 * @static
23537 */
23538 public static function incrementOrCreate($attributes, $column = 'count', $default = 1, $step = 1, $extra = [])
23539 {
23540 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23541 return $instance->incrementOrCreate($attributes, $column, $default, $step, $extra);
23542 }
23543
23544 /**
23545 * Execute the query and get the first result or throw an exception.
23546 *
23547 * @param array|string $columns
23548 * @return TModel
23549 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23550 * @static
23551 */
23552 public static function firstOrFail($columns = [])
23553 {
23554 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23555 return $instance->firstOrFail($columns);
23556 }
23557
23558 /**
23559 * Execute the query and get the first result or call a callback.
23560 *
23561 * @template TValue
23562 * @param (\Closure(): TValue)|list<string> $columns
23563 * @param (\Closure(): TValue)|null $callback
23564 * @return TModel|TValue
23565 * @static
23566 */
23567 public static function firstOr($columns = [], $callback = null)
23568 {
23569 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23570 return $instance->firstOr($columns, $callback);
23571 }
23572
23573 /**
23574 * Execute the query and get the first result if it's the sole matching record.
23575 *
23576 * @param array|string $columns
23577 * @return TModel
23578 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23579 * @throws \Illuminate\Database\MultipleRecordsFoundException
23580 * @static
23581 */
23582 public static function sole($columns = [])
23583 {
23584 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23585 return $instance->sole($columns);
23586 }
23587
23588 /**
23589 * Get a single column's value from the first result of a query.
23590 *
23591 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23592 * @return mixed
23593 * @static
23594 */
23595 public static function value($column)
23596 {
23597 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23598 return $instance->value($column);
23599 }
23600
23601 /**
23602 * Get a single column's value from the first result of a query if it's the sole matching record.
23603 *
23604 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23605 * @return mixed
23606 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23607 * @throws \Illuminate\Database\MultipleRecordsFoundException
23608 * @static
23609 */
23610 public static function soleValue($column)
23611 {
23612 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23613 return $instance->soleValue($column);
23614 }
23615
23616 /**
23617 * Get a single column's value from the first result of the query or throw an exception.
23618 *
23619 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23620 * @return mixed
23621 * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
23622 * @static
23623 */
23624 public static function valueOrFail($column)
23625 {
23626 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23627 return $instance->valueOrFail($column);
23628 }
23629
23630 /**
23631 * Execute the query as a "select" statement.
23632 *
23633 * @param array|string $columns
23634 * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
23635 * @static
23636 */
23637 public static function get($columns = [])
23638 {
23639 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23640 return $instance->get($columns);
23641 }
23642
23643 /**
23644 * Get the hydrated models without eager loading.
23645 *
23646 * @param array|string $columns
23647 * @return array<int, TModel>
23648 * @static
23649 */
23650 public static function getModels($columns = [])
23651 {
23652 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23653 return $instance->getModels($columns);
23654 }
23655
23656 /**
23657 * Eager load the relationships for the models.
23658 *
23659 * @param array<int, TModel> $models
23660 * @return array<int, TModel>
23661 * @static
23662 */
23663 public static function eagerLoadRelations($models)
23664 {
23665 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23666 return $instance->eagerLoadRelations($models);
23667 }
23668
23669 /**
23670 * Register a closure to be invoked after the query is executed.
23671 *
23672 * @param \Closure $callback
23673 * @return \Illuminate\Database\Eloquent\Builder<static>
23674 * @static
23675 */
23676 public static function afterQuery($callback)
23677 {
23678 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23679 return $instance->afterQuery($callback);
23680 }
23681
23682 /**
23683 * Invoke the "after query" modification callbacks.
23684 *
23685 * @param mixed $result
23686 * @return mixed
23687 * @static
23688 */
23689 public static function applyAfterQueryCallbacks($result)
23690 {
23691 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23692 return $instance->applyAfterQueryCallbacks($result);
23693 }
23694
23695 /**
23696 * Get a lazy collection for the given query.
23697 *
23698 * @return \Illuminate\Support\LazyCollection<int, TModel>
23699 * @static
23700 */
23701 public static function cursor()
23702 {
23703 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23704 return $instance->cursor();
23705 }
23706
23707 /**
23708 * Get a collection with the values of a given column.
23709 *
23710 * @param string|\Illuminate\Contracts\Database\Query\Expression $column
23711 * @param string|null $key
23712 * @return \Illuminate\Support\Collection<array-key, mixed>
23713 * @static
23714 */
23715 public static function pluck($column, $key = null)
23716 {
23717 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23718 return $instance->pluck($column, $key);
23719 }
23720
23721 /**
23722 * Paginate the given query.
23723 *
23724 * @param int|null|\Closure $perPage
23725 * @param array|string $columns
23726 * @param string $pageName
23727 * @param int|null $page
23728 * @param \Closure|int|null $total
23729 * @return \Illuminate\Pagination\LengthAwarePaginator
23730 * @throws \InvalidArgumentException
23731 * @static
23732 */
23733 public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null, $total = null)
23734 {
23735 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23736 return $instance->paginate($perPage, $columns, $pageName, $page, $total);
23737 }
23738
23739 /**
23740 * Paginate the given query into a simple paginator.
23741 *
23742 * @param int|null $perPage
23743 * @param array|string $columns
23744 * @param string $pageName
23745 * @param int|null $page
23746 * @return \Illuminate\Contracts\Pagination\Paginator
23747 * @static
23748 */
23749 public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
23750 {
23751 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23752 return $instance->simplePaginate($perPage, $columns, $pageName, $page);
23753 }
23754
23755 /**
23756 * Paginate the given query into a cursor paginator.
23757 *
23758 * @param int|null $perPage
23759 * @param array|string $columns
23760 * @param string $cursorName
23761 * @param \Illuminate\Pagination\Cursor|string|null $cursor
23762 * @return \Illuminate\Contracts\Pagination\CursorPaginator
23763 * @static
23764 */
23765 public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
23766 {
23767 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23768 return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
23769 }
23770
23771 /**
23772 * Save a new model and return the instance.
23773 *
23774 * @param array $attributes
23775 * @return TModel
23776 * @static
23777 */
23778 public static function create($attributes = [])
23779 {
23780 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23781 return $instance->create($attributes);
23782 }
23783
23784 /**
23785 * Save a new model and return the instance without raising model events.
23786 *
23787 * @param array $attributes
23788 * @return TModel
23789 * @static
23790 */
23791 public static function createQuietly($attributes = [])
23792 {
23793 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23794 return $instance->createQuietly($attributes);
23795 }
23796
23797 /**
23798 * Save a new model and return the instance. Allow mass-assignment.
23799 *
23800 * @param array $attributes
23801 * @return TModel
23802 * @static
23803 */
23804 public static function forceCreate($attributes)
23805 {
23806 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23807 return $instance->forceCreate($attributes);
23808 }
23809
23810 /**
23811 * Save a new model instance with mass assignment without raising model events.
23812 *
23813 * @param array $attributes
23814 * @return TModel
23815 * @static
23816 */
23817 public static function forceCreateQuietly($attributes = [])
23818 {
23819 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23820 return $instance->forceCreateQuietly($attributes);
23821 }
23822
23823 /**
23824 * Insert new records or update the existing ones.
23825 *
23826 * @param array $values
23827 * @param array|string $uniqueBy
23828 * @param array|null $update
23829 * @return int
23830 * @static
23831 */
23832 public static function upsert($values, $uniqueBy, $update = null)
23833 {
23834 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23835 return $instance->upsert($values, $uniqueBy, $update);
23836 }
23837
23838 /**
23839 * Register a replacement for the default delete function.
23840 *
23841 * @param \Closure $callback
23842 * @return void
23843 * @static
23844 */
23845 public static function onDelete($callback)
23846 {
23847 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23848 $instance->onDelete($callback);
23849 }
23850
23851 /**
23852 * Call the given local model scopes.
23853 *
23854 * @param array|string $scopes
23855 * @return static|mixed
23856 * @static
23857 */
23858 public static function scopes($scopes)
23859 {
23860 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23861 return $instance->scopes($scopes);
23862 }
23863
23864 /**
23865 * Apply the scopes to the Eloquent builder instance and return it.
23866 *
23867 * @return static
23868 * @static
23869 */
23870 public static function applyScopes()
23871 {
23872 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23873 return $instance->applyScopes();
23874 }
23875
23876 /**
23877 * Prevent the specified relations from being eager loaded.
23878 *
23879 * @param mixed $relations
23880 * @return \Illuminate\Database\Eloquent\Builder<static>
23881 * @static
23882 */
23883 public static function without($relations)
23884 {
23885 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23886 return $instance->without($relations);
23887 }
23888
23889 /**
23890 * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
23891 *
23892 * @param array<array-key, array|(\Closure(\Illuminate\Database\Eloquent\Relations\Relation<*,*,*>): mixed)|string>|string $relations
23893 * @return \Illuminate\Database\Eloquent\Builder<static>
23894 * @static
23895 */
23896 public static function withOnly($relations)
23897 {
23898 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23899 return $instance->withOnly($relations);
23900 }
23901
23902 /**
23903 * Create a new instance of the model being queried.
23904 *
23905 * @param array $attributes
23906 * @return TModel
23907 * @static
23908 */
23909 public static function newModelInstance($attributes = [])
23910 {
23911 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23912 return $instance->newModelInstance($attributes);
23913 }
23914
23915 /**
23916 * Specify attributes that should be added to any new models created by this builder.
23917 *
23918 * The given key / value pairs will also be added as where conditions to the query.
23919 *
23920 * @param \Illuminate\Contracts\Database\Query\Expression|array|string $attributes
23921 * @param mixed $value
23922 * @param bool $asConditions
23923 * @return \Illuminate\Database\Eloquent\Builder<static>
23924 * @static
23925 */
23926 public static function withAttributes($attributes, $value = null, $asConditions = true)
23927 {
23928 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23929 return $instance->withAttributes($attributes, $value, $asConditions);
23930 }
23931
23932 /**
23933 * Apply query-time casts to the model instance.
23934 *
23935 * @param array $casts
23936 * @return \Illuminate\Database\Eloquent\Builder<static>
23937 * @static
23938 */
23939 public static function withCasts($casts)
23940 {
23941 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23942 return $instance->withCasts($casts);
23943 }
23944
23945 /**
23946 * Execute the given Closure within a transaction savepoint if needed.
23947 *
23948 * @template TModelValue
23949 * @param \Closure(): TModelValue $scope
23950 * @return TModelValue
23951 * @static
23952 */
23953 public static function withSavepointIfNeeded($scope)
23954 {
23955 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23956 return $instance->withSavepointIfNeeded($scope);
23957 }
23958
23959 /**
23960 * Get the underlying query builder instance.
23961 *
23962 * @return \Illuminate\Database\Query\Builder
23963 * @static
23964 */
23965 public static function getQuery()
23966 {
23967 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23968 return $instance->getQuery();
23969 }
23970
23971 /**
23972 * Set the underlying query builder instance.
23973 *
23974 * @param \Illuminate\Database\Query\Builder $query
23975 * @return \Illuminate\Database\Eloquent\Builder<static>
23976 * @static
23977 */
23978 public static function setQuery($query)
23979 {
23980 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23981 return $instance->setQuery($query);
23982 }
23983
23984 /**
23985 * Get a base query builder instance.
23986 *
23987 * @return \Illuminate\Database\Query\Builder
23988 * @static
23989 */
23990 public static function toBase()
23991 {
23992 /** @var \Illuminate\Database\Eloquent\Builder $instance */
23993 return $instance->toBase();
23994 }
23995
23996 /**
23997 * Get the relationships being eagerly loaded.
23998 *
23999 * @return array
24000 * @static
24001 */
24002 public static function getEagerLoads()
24003 {
24004 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24005 return $instance->getEagerLoads();
24006 }
24007
24008 /**
24009 * Set the relationships being eagerly loaded.
24010 *
24011 * @param array $eagerLoad
24012 * @return \Illuminate\Database\Eloquent\Builder<static>
24013 * @static
24014 */
24015 public static function setEagerLoads($eagerLoad)
24016 {
24017 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24018 return $instance->setEagerLoads($eagerLoad);
24019 }
24020
24021 /**
24022 * Indicate that the given relationships should not be eagerly loaded.
24023 *
24024 * @param array $relations
24025 * @return \Illuminate\Database\Eloquent\Builder<static>
24026 * @static
24027 */
24028 public static function withoutEagerLoad($relations)
24029 {
24030 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24031 return $instance->withoutEagerLoad($relations);
24032 }
24033
24034 /**
24035 * Flush the relationships being eagerly loaded.
24036 *
24037 * @return \Illuminate\Database\Eloquent\Builder<static>
24038 * @static
24039 */
24040 public static function withoutEagerLoads()
24041 {
24042 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24043 return $instance->withoutEagerLoads();
24044 }
24045
24046 /**
24047 * Get the "limit" value from the query or null if it's not set.
24048 *
24049 * @return mixed
24050 * @static
24051 */
24052 public static function getLimit()
24053 {
24054 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24055 return $instance->getLimit();
24056 }
24057
24058 /**
24059 * Get the "offset" value from the query or null if it's not set.
24060 *
24061 * @return mixed
24062 * @static
24063 */
24064 public static function getOffset()
24065 {
24066 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24067 return $instance->getOffset();
24068 }
24069
24070 /**
24071 * Get the model instance being queried.
24072 *
24073 * @return TModel
24074 * @static
24075 */
24076 public static function getModel()
24077 {
24078 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24079 return $instance->getModel();
24080 }
24081
24082 /**
24083 * Set a model instance for the model being queried.
24084 *
24085 * @template TModelNew of \Illuminate\Database\Eloquent\Model
24086 * @param TModelNew $model
24087 * @return static<TModelNew>
24088 * @static
24089 */
24090 public static function setModel($model)
24091 {
24092 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24093 return $instance->setModel($model);
24094 }
24095
24096 /**
24097 * Get the given macro by name.
24098 *
24099 * @param string $name
24100 * @return \Closure
24101 * @static
24102 */
24103 public static function getMacro($name)
24104 {
24105 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24106 return $instance->getMacro($name);
24107 }
24108
24109 /**
24110 * Checks if a macro is registered.
24111 *
24112 * @param string $name
24113 * @return bool
24114 * @static
24115 */
24116 public static function hasMacro($name)
24117 {
24118 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24119 return $instance->hasMacro($name);
24120 }
24121
24122 /**
24123 * Get the given global macro by name.
24124 *
24125 * @param string $name
24126 * @return \Closure
24127 * @static
24128 */
24129 public static function getGlobalMacro($name)
24130 {
24131 return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
24132 }
24133
24134 /**
24135 * Checks if a global macro is registered.
24136 *
24137 * @param string $name
24138 * @return bool
24139 * @static
24140 */
24141 public static function hasGlobalMacro($name)
24142 {
24143 return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
24144 }
24145
24146 /**
24147 * Clone the Eloquent query builder.
24148 *
24149 * @return static
24150 * @static
24151 */
24152 public static function clone()
24153 {
24154 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24155 return $instance->clone();
24156 }
24157
24158 /**
24159 * Register a closure to be invoked on a clone.
24160 *
24161 * @param \Closure $callback
24162 * @return \Illuminate\Database\Eloquent\Builder<static>
24163 * @static
24164 */
24165 public static function onClone($callback)
24166 {
24167 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24168 return $instance->onClone($callback);
24169 }
24170
24171 /**
24172 * Chunk the results of the query.
24173 *
24174 * @param int $count
24175 * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
24176 * @return bool
24177 * @static
24178 */
24179 public static function chunk($count, $callback)
24180 {
24181 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24182 return $instance->chunk($count, $callback);
24183 }
24184
24185 /**
24186 * Run a map over each item while chunking.
24187 *
24188 * @template TReturn
24189 * @param callable(TValue): TReturn $callback
24190 * @param int $count
24191 * @return \Illuminate\Support\Collection<int, TReturn>
24192 * @static
24193 */
24194 public static function chunkMap($callback, $count = 1000)
24195 {
24196 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24197 return $instance->chunkMap($callback, $count);
24198 }
24199
24200 /**
24201 * Execute a callback over each item while chunking.
24202 *
24203 * @param callable(TValue, int): mixed $callback
24204 * @param int $count
24205 * @return bool
24206 * @throws \RuntimeException
24207 * @static
24208 */
24209 public static function each($callback, $count = 1000)
24210 {
24211 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24212 return $instance->each($callback, $count);
24213 }
24214
24215 /**
24216 * Chunk the results of a query by comparing IDs.
24217 *
24218 * @param int $count
24219 * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
24220 * @param string|null $column
24221 * @param string|null $alias
24222 * @return bool
24223 * @static
24224 */
24225 public static function chunkById($count, $callback, $column = null, $alias = null)
24226 {
24227 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24228 return $instance->chunkById($count, $callback, $column, $alias);
24229 }
24230
24231 /**
24232 * Chunk the results of a query by comparing IDs in descending order.
24233 *
24234 * @param int $count
24235 * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
24236 * @param string|null $column
24237 * @param string|null $alias
24238 * @return bool
24239 * @static
24240 */
24241 public static function chunkByIdDesc($count, $callback, $column = null, $alias = null)
24242 {
24243 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24244 return $instance->chunkByIdDesc($count, $callback, $column, $alias);
24245 }
24246
24247 /**
24248 * Chunk the results of a query by comparing IDs in a given order.
24249 *
24250 * @param int $count
24251 * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
24252 * @param string|null $column
24253 * @param string|null $alias
24254 * @param bool $descending
24255 * @return bool
24256 * @throws \RuntimeException
24257 * @static
24258 */
24259 public static function orderedChunkById($count, $callback, $column = null, $alias = null, $descending = false)
24260 {
24261 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24262 return $instance->orderedChunkById($count, $callback, $column, $alias, $descending);
24263 }
24264
24265 /**
24266 * Execute a callback over each item while chunking by ID.
24267 *
24268 * @param callable(TValue, int): mixed $callback
24269 * @param int $count
24270 * @param string|null $column
24271 * @param string|null $alias
24272 * @return bool
24273 * @static
24274 */
24275 public static function eachById($callback, $count = 1000, $column = null, $alias = null)
24276 {
24277 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24278 return $instance->eachById($callback, $count, $column, $alias);
24279 }
24280
24281 /**
24282 * Query lazily, by chunks of the given size.
24283 *
24284 * @param int $chunkSize
24285 * @return \Illuminate\Support\LazyCollection<int, TValue>
24286 * @throws \InvalidArgumentException
24287 * @static
24288 */
24289 public static function lazy($chunkSize = 1000)
24290 {
24291 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24292 return $instance->lazy($chunkSize);
24293 }
24294
24295 /**
24296 * Query lazily, by chunking the results of a query by comparing IDs.
24297 *
24298 * @param int $chunkSize
24299 * @param string|null $column
24300 * @param string|null $alias
24301 * @return \Illuminate\Support\LazyCollection<int, TValue>
24302 * @throws \InvalidArgumentException
24303 * @static
24304 */
24305 public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
24306 {
24307 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24308 return $instance->lazyById($chunkSize, $column, $alias);
24309 }
24310
24311 /**
24312 * Query lazily, by chunking the results of a query by comparing IDs in descending order.
24313 *
24314 * @param int $chunkSize
24315 * @param string|null $column
24316 * @param string|null $alias
24317 * @return \Illuminate\Support\LazyCollection<int, TValue>
24318 * @throws \InvalidArgumentException
24319 * @static
24320 */
24321 public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
24322 {
24323 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24324 return $instance->lazyByIdDesc($chunkSize, $column, $alias);
24325 }
24326
24327 /**
24328 * Execute the query and get the first result.
24329 *
24330 * @param array|string $columns
24331 * @return TValue|null
24332 * @static
24333 */
24334 public static function first($columns = [])
24335 {
24336 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24337 return $instance->first($columns);
24338 }
24339
24340 /**
24341 * Execute the query and get the first result if it's the sole matching record.
24342 *
24343 * @param array|string $columns
24344 * @return TValue
24345 * @throws \Illuminate\Database\RecordsNotFoundException
24346 * @throws \Illuminate\Database\MultipleRecordsFoundException
24347 * @static
24348 */
24349 public static function baseSole($columns = [])
24350 {
24351 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24352 return $instance->baseSole($columns);
24353 }
24354
24355 /**
24356 * Pass the query to a given callback and then return it.
24357 *
24358 * @param callable($this): mixed $callback
24359 * @return \Illuminate\Database\Eloquent\Builder<static>
24360 * @static
24361 */
24362 public static function tap($callback)
24363 {
24364 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24365 return $instance->tap($callback);
24366 }
24367
24368 /**
24369 * Pass the query to a given callback and return the result.
24370 *
24371 * @template TReturn
24372 * @param (callable($this): TReturn) $callback
24373 * @return (TReturn is null|void ? $this : TReturn)
24374 * @static
24375 */
24376 public static function pipe($callback)
24377 {
24378 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24379 return $instance->pipe($callback);
24380 }
24381
24382 /**
24383 * Apply the callback if the given "value" is (or resolves to) truthy.
24384 *
24385 * @template TWhenParameter
24386 * @template TWhenReturnType
24387 * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
24388 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
24389 * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
24390 * @return $this|TWhenReturnType
24391 * @static
24392 */
24393 public static function when($value = null, $callback = null, $default = null)
24394 {
24395 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24396 return $instance->when($value, $callback, $default);
24397 }
24398
24399 /**
24400 * Apply the callback if the given "value" is (or resolves to) falsy.
24401 *
24402 * @template TUnlessParameter
24403 * @template TUnlessReturnType
24404 * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
24405 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
24406 * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
24407 * @return $this|TUnlessReturnType
24408 * @static
24409 */
24410 public static function unless($value = null, $callback = null, $default = null)
24411 {
24412 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24413 return $instance->unless($value, $callback, $default);
24414 }
24415
24416 /**
24417 * Add a relationship count / exists condition to the query.
24418 *
24419 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24420 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24421 * @param string $operator
24422 * @param int $count
24423 * @param string $boolean
24424 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24425 * @return \Illuminate\Database\Eloquent\Builder<static>
24426 * @throws \RuntimeException
24427 * @static
24428 */
24429 public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
24430 {
24431 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24432 return $instance->has($relation, $operator, $count, $boolean, $callback);
24433 }
24434
24435 /**
24436 * Add a relationship count / exists condition to the query with an "or".
24437 *
24438 * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
24439 * @param string $operator
24440 * @param int $count
24441 * @return \Illuminate\Database\Eloquent\Builder<static>
24442 * @static
24443 */
24444 public static function orHas($relation, $operator = '>=', $count = 1)
24445 {
24446 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24447 return $instance->orHas($relation, $operator, $count);
24448 }
24449
24450 /**
24451 * Add a relationship count / exists condition to the query.
24452 *
24453 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24454 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24455 * @param string $boolean
24456 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24457 * @return \Illuminate\Database\Eloquent\Builder<static>
24458 * @static
24459 */
24460 public static function doesntHave($relation, $boolean = 'and', $callback = null)
24461 {
24462 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24463 return $instance->doesntHave($relation, $boolean, $callback);
24464 }
24465
24466 /**
24467 * Add a relationship count / exists condition to the query with an "or".
24468 *
24469 * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
24470 * @return \Illuminate\Database\Eloquent\Builder<static>
24471 * @static
24472 */
24473 public static function orDoesntHave($relation)
24474 {
24475 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24476 return $instance->orDoesntHave($relation);
24477 }
24478
24479 /**
24480 * Add a relationship count / exists condition to the query with where clauses.
24481 *
24482 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24483 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24484 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24485 * @param string $operator
24486 * @param int $count
24487 * @return \Illuminate\Database\Eloquent\Builder<static>
24488 * @static
24489 */
24490 public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
24491 {
24492 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24493 return $instance->whereHas($relation, $callback, $operator, $count);
24494 }
24495
24496 /**
24497 * Add a relationship count / exists condition to the query with where clauses.
24498 *
24499 * Also load the relationship with the same condition.
24500 *
24501 * @param string $relation
24502 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|null $callback
24503 * @param string $operator
24504 * @param int $count
24505 * @return \Illuminate\Database\Eloquent\Builder<static>
24506 * @static
24507 */
24508 public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
24509 {
24510 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24511 return $instance->withWhereHas($relation, $callback, $operator, $count);
24512 }
24513
24514 /**
24515 * Add a relationship count / exists condition to the query with where clauses and an "or".
24516 *
24517 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24518 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24519 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24520 * @param string $operator
24521 * @param int $count
24522 * @return \Illuminate\Database\Eloquent\Builder<static>
24523 * @static
24524 */
24525 public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
24526 {
24527 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24528 return $instance->orWhereHas($relation, $callback, $operator, $count);
24529 }
24530
24531 /**
24532 * Add a relationship count / exists condition to the query with where clauses.
24533 *
24534 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24535 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24536 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24537 * @return \Illuminate\Database\Eloquent\Builder<static>
24538 * @static
24539 */
24540 public static function whereDoesntHave($relation, $callback = null)
24541 {
24542 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24543 return $instance->whereDoesntHave($relation, $callback);
24544 }
24545
24546 /**
24547 * Add a relationship count / exists condition to the query with where clauses and an "or".
24548 *
24549 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24550 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24551 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
24552 * @return \Illuminate\Database\Eloquent\Builder<static>
24553 * @static
24554 */
24555 public static function orWhereDoesntHave($relation, $callback = null)
24556 {
24557 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24558 return $instance->orWhereDoesntHave($relation, $callback);
24559 }
24560
24561 /**
24562 * Add a polymorphic relationship count / exists condition to the query.
24563 *
24564 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24565 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24566 * @param string|array<int, string> $types
24567 * @param string $operator
24568 * @param int $count
24569 * @param string $boolean
24570 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24571 * @return \Illuminate\Database\Eloquent\Builder<static>
24572 * @static
24573 */
24574 public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
24575 {
24576 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24577 return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
24578 }
24579
24580 /**
24581 * Add a polymorphic relationship count / exists condition to the query with an "or".
24582 *
24583 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24584 * @param string|array<int, string> $types
24585 * @param string $operator
24586 * @param int $count
24587 * @return \Illuminate\Database\Eloquent\Builder<static>
24588 * @static
24589 */
24590 public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
24591 {
24592 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24593 return $instance->orHasMorph($relation, $types, $operator, $count);
24594 }
24595
24596 /**
24597 * Add a polymorphic relationship count / exists condition to the query.
24598 *
24599 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24600 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24601 * @param string|array<int, string> $types
24602 * @param string $boolean
24603 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24604 * @return \Illuminate\Database\Eloquent\Builder<static>
24605 * @static
24606 */
24607 public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
24608 {
24609 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24610 return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
24611 }
24612
24613 /**
24614 * Add a polymorphic relationship count / exists condition to the query with an "or".
24615 *
24616 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24617 * @param string|array<int, string> $types
24618 * @return \Illuminate\Database\Eloquent\Builder<static>
24619 * @static
24620 */
24621 public static function orDoesntHaveMorph($relation, $types)
24622 {
24623 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24624 return $instance->orDoesntHaveMorph($relation, $types);
24625 }
24626
24627 /**
24628 * Add a polymorphic relationship count / exists condition to the query with where clauses.
24629 *
24630 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24631 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24632 * @param string|array<int, string> $types
24633 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24634 * @param string $operator
24635 * @param int $count
24636 * @return \Illuminate\Database\Eloquent\Builder<static>
24637 * @static
24638 */
24639 public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
24640 {
24641 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24642 return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
24643 }
24644
24645 /**
24646 * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
24647 *
24648 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24649 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24650 * @param string|array<int, string> $types
24651 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24652 * @param string $operator
24653 * @param int $count
24654 * @return \Illuminate\Database\Eloquent\Builder<static>
24655 * @static
24656 */
24657 public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
24658 {
24659 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24660 return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
24661 }
24662
24663 /**
24664 * Add a polymorphic relationship count / exists condition to the query with where clauses.
24665 *
24666 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24667 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24668 * @param string|array<int, string> $types
24669 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24670 * @return \Illuminate\Database\Eloquent\Builder<static>
24671 * @static
24672 */
24673 public static function whereDoesntHaveMorph($relation, $types, $callback = null)
24674 {
24675 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24676 return $instance->whereDoesntHaveMorph($relation, $types, $callback);
24677 }
24678
24679 /**
24680 * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
24681 *
24682 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24683 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24684 * @param string|array<int, string> $types
24685 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
24686 * @return \Illuminate\Database\Eloquent\Builder<static>
24687 * @static
24688 */
24689 public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
24690 {
24691 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24692 return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
24693 }
24694
24695 /**
24696 * Add a basic where clause to a relationship query.
24697 *
24698 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24699 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24700 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24701 * @param mixed $operator
24702 * @param mixed $value
24703 * @return \Illuminate\Database\Eloquent\Builder<static>
24704 * @static
24705 */
24706 public static function whereRelation($relation, $column, $operator = null, $value = null)
24707 {
24708 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24709 return $instance->whereRelation($relation, $column, $operator, $value);
24710 }
24711
24712 /**
24713 * Add a basic where clause to a relationship query and eager-load the relationship with the same conditions.
24714 *
24715 * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
24716 * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24717 * @param mixed $operator
24718 * @param mixed $value
24719 * @return \Illuminate\Database\Eloquent\Builder<static>
24720 * @static
24721 */
24722 public static function withWhereRelation($relation, $column, $operator = null, $value = null)
24723 {
24724 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24725 return $instance->withWhereRelation($relation, $column, $operator, $value);
24726 }
24727
24728 /**
24729 * Add an "or where" clause to a relationship query.
24730 *
24731 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24732 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24733 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24734 * @param mixed $operator
24735 * @param mixed $value
24736 * @return \Illuminate\Database\Eloquent\Builder<static>
24737 * @static
24738 */
24739 public static function orWhereRelation($relation, $column, $operator = null, $value = null)
24740 {
24741 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24742 return $instance->orWhereRelation($relation, $column, $operator, $value);
24743 }
24744
24745 /**
24746 * Add a basic count / exists condition to a relationship query.
24747 *
24748 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24749 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24750 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24751 * @param mixed $operator
24752 * @param mixed $value
24753 * @return \Illuminate\Database\Eloquent\Builder<static>
24754 * @static
24755 */
24756 public static function whereDoesntHaveRelation($relation, $column, $operator = null, $value = null)
24757 {
24758 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24759 return $instance->whereDoesntHaveRelation($relation, $column, $operator, $value);
24760 }
24761
24762 /**
24763 * Add an "or where" clause to a relationship query.
24764 *
24765 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24766 * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
24767 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24768 * @param mixed $operator
24769 * @param mixed $value
24770 * @return \Illuminate\Database\Eloquent\Builder<static>
24771 * @static
24772 */
24773 public static function orWhereDoesntHaveRelation($relation, $column, $operator = null, $value = null)
24774 {
24775 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24776 return $instance->orWhereDoesntHaveRelation($relation, $column, $operator, $value);
24777 }
24778
24779 /**
24780 * Add a polymorphic relationship condition to the query with a where clause.
24781 *
24782 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24783 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24784 * @param string|array<int, string> $types
24785 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24786 * @param mixed $operator
24787 * @param mixed $value
24788 * @return \Illuminate\Database\Eloquent\Builder<static>
24789 * @static
24790 */
24791 public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
24792 {
24793 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24794 return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
24795 }
24796
24797 /**
24798 * Add a polymorphic relationship condition to the query with an "or where" clause.
24799 *
24800 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24801 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24802 * @param string|array<int, string> $types
24803 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24804 * @param mixed $operator
24805 * @param mixed $value
24806 * @return \Illuminate\Database\Eloquent\Builder<static>
24807 * @static
24808 */
24809 public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
24810 {
24811 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24812 return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
24813 }
24814
24815 /**
24816 * Add a polymorphic relationship condition to the query with a doesn't have clause.
24817 *
24818 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24819 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24820 * @param string|array<int, string> $types
24821 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24822 * @param mixed $operator
24823 * @param mixed $value
24824 * @return \Illuminate\Database\Eloquent\Builder<static>
24825 * @static
24826 */
24827 public static function whereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null)
24828 {
24829 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24830 return $instance->whereMorphDoesntHaveRelation($relation, $types, $column, $operator, $value);
24831 }
24832
24833 /**
24834 * Add a polymorphic relationship condition to the query with an "or doesn't have" clause.
24835 *
24836 * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
24837 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
24838 * @param string|array<int, string> $types
24839 * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
24840 * @param mixed $operator
24841 * @param mixed $value
24842 * @return \Illuminate\Database\Eloquent\Builder<static>
24843 * @static
24844 */
24845 public static function orWhereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null)
24846 {
24847 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24848 return $instance->orWhereMorphDoesntHaveRelation($relation, $types, $column, $operator, $value);
24849 }
24850
24851 /**
24852 * Add a morph-to relationship condition to the query.
24853 *
24854 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24855 * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string|null $model
24856 * @return \Illuminate\Database\Eloquent\Builder<static>
24857 * @static
24858 */
24859 public static function whereMorphedTo($relation, $model, $boolean = 'and')
24860 {
24861 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24862 return $instance->whereMorphedTo($relation, $model, $boolean);
24863 }
24864
24865 /**
24866 * Add a not morph-to relationship condition to the query.
24867 *
24868 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24869 * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string $model
24870 * @return \Illuminate\Database\Eloquent\Builder<static>
24871 * @static
24872 */
24873 public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
24874 {
24875 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24876 return $instance->whereNotMorphedTo($relation, $model, $boolean);
24877 }
24878
24879 /**
24880 * Add a morph-to relationship condition to the query with an "or where" clause.
24881 *
24882 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24883 * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string|null $model
24884 * @return \Illuminate\Database\Eloquent\Builder<static>
24885 * @static
24886 */
24887 public static function orWhereMorphedTo($relation, $model)
24888 {
24889 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24890 return $instance->orWhereMorphedTo($relation, $model);
24891 }
24892
24893 /**
24894 * Add a not morph-to relationship condition to the query with an "or where" clause.
24895 *
24896 * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
24897 * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string $model
24898 * @return \Illuminate\Database\Eloquent\Builder<static>
24899 * @static
24900 */
24901 public static function orWhereNotMorphedTo($relation, $model)
24902 {
24903 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24904 return $instance->orWhereNotMorphedTo($relation, $model);
24905 }
24906
24907 /**
24908 * Add a "belongs to" relationship where clause to the query.
24909 *
24910 * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
24911 * @param string|null $relationshipName
24912 * @param string $boolean
24913 * @return \Illuminate\Database\Eloquent\Builder<static>
24914 * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
24915 * @static
24916 */
24917 public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
24918 {
24919 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24920 return $instance->whereBelongsTo($related, $relationshipName, $boolean);
24921 }
24922
24923 /**
24924 * Add a "BelongsTo" relationship with an "or where" clause to the query.
24925 *
24926 * @param \Illuminate\Database\Eloquent\Model $related
24927 * @param string|null $relationshipName
24928 * @return \Illuminate\Database\Eloquent\Builder<static>
24929 * @throws \RuntimeException
24930 * @static
24931 */
24932 public static function orWhereBelongsTo($related, $relationshipName = null)
24933 {
24934 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24935 return $instance->orWhereBelongsTo($related, $relationshipName);
24936 }
24937
24938 /**
24939 * Add a "belongs to many" relationship where clause to the query.
24940 *
24941 * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
24942 * @param string|null $relationshipName
24943 * @param string $boolean
24944 * @return \Illuminate\Database\Eloquent\Builder<static>
24945 * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
24946 * @static
24947 */
24948 public static function whereAttachedTo($related, $relationshipName = null, $boolean = 'and')
24949 {
24950 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24951 return $instance->whereAttachedTo($related, $relationshipName, $boolean);
24952 }
24953
24954 /**
24955 * Add a "belongs to many" relationship with an "or where" clause to the query.
24956 *
24957 * @param \Illuminate\Database\Eloquent\Model $related
24958 * @param string|null $relationshipName
24959 * @return \Illuminate\Database\Eloquent\Builder<static>
24960 * @throws \RuntimeException
24961 * @static
24962 */
24963 public static function orWhereAttachedTo($related, $relationshipName = null)
24964 {
24965 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24966 return $instance->orWhereAttachedTo($related, $relationshipName);
24967 }
24968
24969 /**
24970 * Add subselect queries to include an aggregate value for a relationship.
24971 *
24972 * @param mixed $relations
24973 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
24974 * @param string|null $function
24975 * @return \Illuminate\Database\Eloquent\Builder<static>
24976 * @static
24977 */
24978 public static function withAggregate($relations, $column, $function = null)
24979 {
24980 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24981 return $instance->withAggregate($relations, $column, $function);
24982 }
24983
24984 /**
24985 * Add subselect queries to count the relations.
24986 *
24987 * @param mixed $relations
24988 * @return \Illuminate\Database\Eloquent\Builder<static>
24989 * @static
24990 */
24991 public static function withCount($relations)
24992 {
24993 /** @var \Illuminate\Database\Eloquent\Builder $instance */
24994 return $instance->withCount($relations);
24995 }
24996
24997 /**
24998 * Add subselect queries to include the max of the relation's column.
24999 *
25000 * @param string|array $relation
25001 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25002 * @return \Illuminate\Database\Eloquent\Builder<static>
25003 * @static
25004 */
25005 public static function withMax($relation, $column)
25006 {
25007 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25008 return $instance->withMax($relation, $column);
25009 }
25010
25011 /**
25012 * Add subselect queries to include the min of the relation's column.
25013 *
25014 * @param string|array $relation
25015 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25016 * @return \Illuminate\Database\Eloquent\Builder<static>
25017 * @static
25018 */
25019 public static function withMin($relation, $column)
25020 {
25021 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25022 return $instance->withMin($relation, $column);
25023 }
25024
25025 /**
25026 * Add subselect queries to include the sum of the relation's column.
25027 *
25028 * @param string|array $relation
25029 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25030 * @return \Illuminate\Database\Eloquent\Builder<static>
25031 * @static
25032 */
25033 public static function withSum($relation, $column)
25034 {
25035 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25036 return $instance->withSum($relation, $column);
25037 }
25038
25039 /**
25040 * Add subselect queries to include the average of the relation's column.
25041 *
25042 * @param string|array $relation
25043 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25044 * @return \Illuminate\Database\Eloquent\Builder<static>
25045 * @static
25046 */
25047 public static function withAvg($relation, $column)
25048 {
25049 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25050 return $instance->withAvg($relation, $column);
25051 }
25052
25053 /**
25054 * Add subselect queries to include the existence of related models.
25055 *
25056 * @param string|array $relation
25057 * @return \Illuminate\Database\Eloquent\Builder<static>
25058 * @static
25059 */
25060 public static function withExists($relation)
25061 {
25062 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25063 return $instance->withExists($relation);
25064 }
25065
25066 /**
25067 * Merge the where constraints from another query to the current query.
25068 *
25069 * @param \Illuminate\Database\Eloquent\Builder<*> $from
25070 * @return \Illuminate\Database\Eloquent\Builder<static>
25071 * @static
25072 */
25073 public static function mergeConstraintsFrom($from)
25074 {
25075 /** @var \Illuminate\Database\Eloquent\Builder $instance */
25076 return $instance->mergeConstraintsFrom($from);
25077 }
25078
25079 /**
25080 * Set the columns to be selected.
25081 *
25082 * @param mixed $columns
25083 * @return \Illuminate\Database\Eloquent\Builder<static>
25084 * @static
25085 */
25086 public static function select($columns = [])
25087 {
25088 /** @var \Illuminate\Database\Query\Builder $instance */
25089 return $instance->select($columns);
25090 }
25091
25092 /**
25093 * Add a subselect expression to the query.
25094 *
25095 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25096 * @param string $as
25097 * @return \Illuminate\Database\Eloquent\Builder<static>
25098 * @throws \InvalidArgumentException
25099 * @static
25100 */
25101 public static function selectSub($query, $as)
25102 {
25103 /** @var \Illuminate\Database\Query\Builder $instance */
25104 return $instance->selectSub($query, $as);
25105 }
25106
25107 /**
25108 * Add a new "raw" select expression to the query.
25109 *
25110 * @param string $expression
25111 * @return \Illuminate\Database\Eloquent\Builder<static>
25112 * @static
25113 */
25114 public static function selectRaw($expression, $bindings = [])
25115 {
25116 /** @var \Illuminate\Database\Query\Builder $instance */
25117 return $instance->selectRaw($expression, $bindings);
25118 }
25119
25120 /**
25121 * Makes "from" fetch from a subquery.
25122 *
25123 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25124 * @param string $as
25125 * @return \Illuminate\Database\Eloquent\Builder<static>
25126 * @throws \InvalidArgumentException
25127 * @static
25128 */
25129 public static function fromSub($query, $as)
25130 {
25131 /** @var \Illuminate\Database\Query\Builder $instance */
25132 return $instance->fromSub($query, $as);
25133 }
25134
25135 /**
25136 * Add a raw from clause to the query.
25137 *
25138 * @param string $expression
25139 * @param mixed $bindings
25140 * @return \Illuminate\Database\Eloquent\Builder<static>
25141 * @static
25142 */
25143 public static function fromRaw($expression, $bindings = [])
25144 {
25145 /** @var \Illuminate\Database\Query\Builder $instance */
25146 return $instance->fromRaw($expression, $bindings);
25147 }
25148
25149 /**
25150 * Add a new select column to the query.
25151 *
25152 * @param mixed $column
25153 * @return \Illuminate\Database\Eloquent\Builder<static>
25154 * @static
25155 */
25156 public static function addSelect($column)
25157 {
25158 /** @var \Illuminate\Database\Query\Builder $instance */
25159 return $instance->addSelect($column);
25160 }
25161
25162 /**
25163 * Force the query to only return distinct results.
25164 *
25165 * @return \Illuminate\Database\Eloquent\Builder<static>
25166 * @static
25167 */
25168 public static function distinct()
25169 {
25170 /** @var \Illuminate\Database\Query\Builder $instance */
25171 return $instance->distinct();
25172 }
25173
25174 /**
25175 * Set the table which the query is targeting.
25176 *
25177 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $table
25178 * @param string|null $as
25179 * @return \Illuminate\Database\Eloquent\Builder<static>
25180 * @static
25181 */
25182 public static function from($table, $as = null)
25183 {
25184 /** @var \Illuminate\Database\Query\Builder $instance */
25185 return $instance->from($table, $as);
25186 }
25187
25188 /**
25189 * Add an index hint to suggest a query index.
25190 *
25191 * @param string $index
25192 * @return \Illuminate\Database\Eloquent\Builder<static>
25193 * @static
25194 */
25195 public static function useIndex($index)
25196 {
25197 /** @var \Illuminate\Database\Query\Builder $instance */
25198 return $instance->useIndex($index);
25199 }
25200
25201 /**
25202 * Add an index hint to force a query index.
25203 *
25204 * @param string $index
25205 * @return \Illuminate\Database\Eloquent\Builder<static>
25206 * @static
25207 */
25208 public static function forceIndex($index)
25209 {
25210 /** @var \Illuminate\Database\Query\Builder $instance */
25211 return $instance->forceIndex($index);
25212 }
25213
25214 /**
25215 * Add an index hint to ignore a query index.
25216 *
25217 * @param string $index
25218 * @return \Illuminate\Database\Eloquent\Builder<static>
25219 * @static
25220 */
25221 public static function ignoreIndex($index)
25222 {
25223 /** @var \Illuminate\Database\Query\Builder $instance */
25224 return $instance->ignoreIndex($index);
25225 }
25226
25227 /**
25228 * Add a join clause to the query.
25229 *
25230 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25231 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25232 * @param string|null $operator
25233 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25234 * @param string $type
25235 * @param bool $where
25236 * @return \Illuminate\Database\Eloquent\Builder<static>
25237 * @static
25238 */
25239 public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
25240 {
25241 /** @var \Illuminate\Database\Query\Builder $instance */
25242 return $instance->join($table, $first, $operator, $second, $type, $where);
25243 }
25244
25245 /**
25246 * Add a "join where" clause to the query.
25247 *
25248 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25249 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25250 * @param string $operator
25251 * @param \Illuminate\Contracts\Database\Query\Expression|string $second
25252 * @param string $type
25253 * @return \Illuminate\Database\Eloquent\Builder<static>
25254 * @static
25255 */
25256 public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
25257 {
25258 /** @var \Illuminate\Database\Query\Builder $instance */
25259 return $instance->joinWhere($table, $first, $operator, $second, $type);
25260 }
25261
25262 /**
25263 * Add a subquery join clause to the query.
25264 *
25265 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25266 * @param string $as
25267 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25268 * @param string|null $operator
25269 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25270 * @param string $type
25271 * @param bool $where
25272 * @return \Illuminate\Database\Eloquent\Builder<static>
25273 * @throws \InvalidArgumentException
25274 * @static
25275 */
25276 public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
25277 {
25278 /** @var \Illuminate\Database\Query\Builder $instance */
25279 return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
25280 }
25281
25282 /**
25283 * Add a lateral join clause to the query.
25284 *
25285 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25286 * @return \Illuminate\Database\Eloquent\Builder<static>
25287 * @static
25288 */
25289 public static function joinLateral($query, $as, $type = 'inner')
25290 {
25291 /** @var \Illuminate\Database\Query\Builder $instance */
25292 return $instance->joinLateral($query, $as, $type);
25293 }
25294
25295 /**
25296 * Add a lateral left join to the query.
25297 *
25298 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25299 * @return \Illuminate\Database\Eloquent\Builder<static>
25300 * @static
25301 */
25302 public static function leftJoinLateral($query, $as)
25303 {
25304 /** @var \Illuminate\Database\Query\Builder $instance */
25305 return $instance->leftJoinLateral($query, $as);
25306 }
25307
25308 /**
25309 * Add a left join to the query.
25310 *
25311 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25312 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25313 * @param string|null $operator
25314 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25315 * @return \Illuminate\Database\Eloquent\Builder<static>
25316 * @static
25317 */
25318 public static function leftJoin($table, $first, $operator = null, $second = null)
25319 {
25320 /** @var \Illuminate\Database\Query\Builder $instance */
25321 return $instance->leftJoin($table, $first, $operator, $second);
25322 }
25323
25324 /**
25325 * Add a "join where" clause to the query.
25326 *
25327 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25328 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25329 * @param string $operator
25330 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25331 * @return \Illuminate\Database\Eloquent\Builder<static>
25332 * @static
25333 */
25334 public static function leftJoinWhere($table, $first, $operator, $second)
25335 {
25336 /** @var \Illuminate\Database\Query\Builder $instance */
25337 return $instance->leftJoinWhere($table, $first, $operator, $second);
25338 }
25339
25340 /**
25341 * Add a subquery left join to the query.
25342 *
25343 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25344 * @param string $as
25345 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25346 * @param string|null $operator
25347 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25348 * @return \Illuminate\Database\Eloquent\Builder<static>
25349 * @static
25350 */
25351 public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
25352 {
25353 /** @var \Illuminate\Database\Query\Builder $instance */
25354 return $instance->leftJoinSub($query, $as, $first, $operator, $second);
25355 }
25356
25357 /**
25358 * Add a right join to the query.
25359 *
25360 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25361 * @param \Closure|string $first
25362 * @param string|null $operator
25363 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25364 * @return \Illuminate\Database\Eloquent\Builder<static>
25365 * @static
25366 */
25367 public static function rightJoin($table, $first, $operator = null, $second = null)
25368 {
25369 /** @var \Illuminate\Database\Query\Builder $instance */
25370 return $instance->rightJoin($table, $first, $operator, $second);
25371 }
25372
25373 /**
25374 * Add a "right join where" clause to the query.
25375 *
25376 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25377 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25378 * @param string $operator
25379 * @param \Illuminate\Contracts\Database\Query\Expression|string $second
25380 * @return \Illuminate\Database\Eloquent\Builder<static>
25381 * @static
25382 */
25383 public static function rightJoinWhere($table, $first, $operator, $second)
25384 {
25385 /** @var \Illuminate\Database\Query\Builder $instance */
25386 return $instance->rightJoinWhere($table, $first, $operator, $second);
25387 }
25388
25389 /**
25390 * Add a subquery right join to the query.
25391 *
25392 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25393 * @param string $as
25394 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
25395 * @param string|null $operator
25396 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25397 * @return \Illuminate\Database\Eloquent\Builder<static>
25398 * @static
25399 */
25400 public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
25401 {
25402 /** @var \Illuminate\Database\Query\Builder $instance */
25403 return $instance->rightJoinSub($query, $as, $first, $operator, $second);
25404 }
25405
25406 /**
25407 * Add a "cross join" clause to the query.
25408 *
25409 * @param \Illuminate\Contracts\Database\Query\Expression|string $table
25410 * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string|null $first
25411 * @param string|null $operator
25412 * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
25413 * @return \Illuminate\Database\Eloquent\Builder<static>
25414 * @static
25415 */
25416 public static function crossJoin($table, $first = null, $operator = null, $second = null)
25417 {
25418 /** @var \Illuminate\Database\Query\Builder $instance */
25419 return $instance->crossJoin($table, $first, $operator, $second);
25420 }
25421
25422 /**
25423 * Add a subquery cross join to the query.
25424 *
25425 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
25426 * @param string $as
25427 * @return \Illuminate\Database\Eloquent\Builder<static>
25428 * @static
25429 */
25430 public static function crossJoinSub($query, $as)
25431 {
25432 /** @var \Illuminate\Database\Query\Builder $instance */
25433 return $instance->crossJoinSub($query, $as);
25434 }
25435
25436 /**
25437 * Merge an array of where clauses and bindings.
25438 *
25439 * @param array $wheres
25440 * @param array $bindings
25441 * @return \Illuminate\Database\Eloquent\Builder<static>
25442 * @static
25443 */
25444 public static function mergeWheres($wheres, $bindings)
25445 {
25446 /** @var \Illuminate\Database\Query\Builder $instance */
25447 return $instance->mergeWheres($wheres, $bindings);
25448 }
25449
25450 /**
25451 * Prepare the value and operator for a where clause.
25452 *
25453 * @param string $value
25454 * @param string $operator
25455 * @param bool $useDefault
25456 * @return array
25457 * @throws \InvalidArgumentException
25458 * @static
25459 */
25460 public static function prepareValueAndOperator($value, $operator, $useDefault = false)
25461 {
25462 /** @var \Illuminate\Database\Query\Builder $instance */
25463 return $instance->prepareValueAndOperator($value, $operator, $useDefault);
25464 }
25465
25466 /**
25467 * Add a "where" clause comparing two columns to the query.
25468 *
25469 * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
25470 * @param string|null $operator
25471 * @param string|null $second
25472 * @param string|null $boolean
25473 * @return \Illuminate\Database\Eloquent\Builder<static>
25474 * @static
25475 */
25476 public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
25477 {
25478 /** @var \Illuminate\Database\Query\Builder $instance */
25479 return $instance->whereColumn($first, $operator, $second, $boolean);
25480 }
25481
25482 /**
25483 * Add an "or where" clause comparing two columns to the query.
25484 *
25485 * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
25486 * @param string|null $operator
25487 * @param string|null $second
25488 * @return \Illuminate\Database\Eloquent\Builder<static>
25489 * @static
25490 */
25491 public static function orWhereColumn($first, $operator = null, $second = null)
25492 {
25493 /** @var \Illuminate\Database\Query\Builder $instance */
25494 return $instance->orWhereColumn($first, $operator, $second);
25495 }
25496
25497 /**
25498 * Add a raw where clause to the query.
25499 *
25500 * @param \Illuminate\Contracts\Database\Query\Expression|string $sql
25501 * @param mixed $bindings
25502 * @param string $boolean
25503 * @return \Illuminate\Database\Eloquent\Builder<static>
25504 * @static
25505 */
25506 public static function whereRaw($sql, $bindings = [], $boolean = 'and')
25507 {
25508 /** @var \Illuminate\Database\Query\Builder $instance */
25509 return $instance->whereRaw($sql, $bindings, $boolean);
25510 }
25511
25512 /**
25513 * Add a raw or where clause to the query.
25514 *
25515 * @param string $sql
25516 * @param mixed $bindings
25517 * @return \Illuminate\Database\Eloquent\Builder<static>
25518 * @static
25519 */
25520 public static function orWhereRaw($sql, $bindings = [])
25521 {
25522 /** @var \Illuminate\Database\Query\Builder $instance */
25523 return $instance->orWhereRaw($sql, $bindings);
25524 }
25525
25526 /**
25527 * Add a "where like" clause to the query.
25528 *
25529 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25530 * @param string $value
25531 * @param bool $caseSensitive
25532 * @param string $boolean
25533 * @param bool $not
25534 * @return \Illuminate\Database\Eloquent\Builder<static>
25535 * @static
25536 */
25537 public static function whereLike($column, $value, $caseSensitive = false, $boolean = 'and', $not = false)
25538 {
25539 /** @var \Illuminate\Database\Query\Builder $instance */
25540 return $instance->whereLike($column, $value, $caseSensitive, $boolean, $not);
25541 }
25542
25543 /**
25544 * Add an "or where like" clause to the query.
25545 *
25546 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25547 * @param string $value
25548 * @param bool $caseSensitive
25549 * @return \Illuminate\Database\Eloquent\Builder<static>
25550 * @static
25551 */
25552 public static function orWhereLike($column, $value, $caseSensitive = false)
25553 {
25554 /** @var \Illuminate\Database\Query\Builder $instance */
25555 return $instance->orWhereLike($column, $value, $caseSensitive);
25556 }
25557
25558 /**
25559 * Add a "where not like" clause to the query.
25560 *
25561 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25562 * @param string $value
25563 * @param bool $caseSensitive
25564 * @param string $boolean
25565 * @return \Illuminate\Database\Eloquent\Builder<static>
25566 * @static
25567 */
25568 public static function whereNotLike($column, $value, $caseSensitive = false, $boolean = 'and')
25569 {
25570 /** @var \Illuminate\Database\Query\Builder $instance */
25571 return $instance->whereNotLike($column, $value, $caseSensitive, $boolean);
25572 }
25573
25574 /**
25575 * Add an "or where not like" clause to the query.
25576 *
25577 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25578 * @param string $value
25579 * @param bool $caseSensitive
25580 * @return \Illuminate\Database\Eloquent\Builder<static>
25581 * @static
25582 */
25583 public static function orWhereNotLike($column, $value, $caseSensitive = false)
25584 {
25585 /** @var \Illuminate\Database\Query\Builder $instance */
25586 return $instance->orWhereNotLike($column, $value, $caseSensitive);
25587 }
25588
25589 /**
25590 * Add a "where in" clause to the query.
25591 *
25592 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25593 * @param mixed $values
25594 * @param string $boolean
25595 * @param bool $not
25596 * @return \Illuminate\Database\Eloquent\Builder<static>
25597 * @static
25598 */
25599 public static function whereIn($column, $values, $boolean = 'and', $not = false)
25600 {
25601 /** @var \Illuminate\Database\Query\Builder $instance */
25602 return $instance->whereIn($column, $values, $boolean, $not);
25603 }
25604
25605 /**
25606 * Add an "or where in" clause to the query.
25607 *
25608 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25609 * @param mixed $values
25610 * @return \Illuminate\Database\Eloquent\Builder<static>
25611 * @static
25612 */
25613 public static function orWhereIn($column, $values)
25614 {
25615 /** @var \Illuminate\Database\Query\Builder $instance */
25616 return $instance->orWhereIn($column, $values);
25617 }
25618
25619 /**
25620 * Add a "where not in" clause to the query.
25621 *
25622 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25623 * @param mixed $values
25624 * @param string $boolean
25625 * @return \Illuminate\Database\Eloquent\Builder<static>
25626 * @static
25627 */
25628 public static function whereNotIn($column, $values, $boolean = 'and')
25629 {
25630 /** @var \Illuminate\Database\Query\Builder $instance */
25631 return $instance->whereNotIn($column, $values, $boolean);
25632 }
25633
25634 /**
25635 * Add an "or where not in" clause to the query.
25636 *
25637 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25638 * @param mixed $values
25639 * @return \Illuminate\Database\Eloquent\Builder<static>
25640 * @static
25641 */
25642 public static function orWhereNotIn($column, $values)
25643 {
25644 /** @var \Illuminate\Database\Query\Builder $instance */
25645 return $instance->orWhereNotIn($column, $values);
25646 }
25647
25648 /**
25649 * Add a "where in raw" clause for integer values to the query.
25650 *
25651 * @param string $column
25652 * @param \Illuminate\Contracts\Support\Arrayable|array $values
25653 * @param string $boolean
25654 * @param bool $not
25655 * @return \Illuminate\Database\Eloquent\Builder<static>
25656 * @static
25657 */
25658 public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
25659 {
25660 /** @var \Illuminate\Database\Query\Builder $instance */
25661 return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
25662 }
25663
25664 /**
25665 * Add an "or where in raw" clause for integer values to the query.
25666 *
25667 * @param string $column
25668 * @param \Illuminate\Contracts\Support\Arrayable|array $values
25669 * @return \Illuminate\Database\Eloquent\Builder<static>
25670 * @static
25671 */
25672 public static function orWhereIntegerInRaw($column, $values)
25673 {
25674 /** @var \Illuminate\Database\Query\Builder $instance */
25675 return $instance->orWhereIntegerInRaw($column, $values);
25676 }
25677
25678 /**
25679 * Add a "where not in raw" clause for integer values to the query.
25680 *
25681 * @param string $column
25682 * @param \Illuminate\Contracts\Support\Arrayable|array $values
25683 * @param string $boolean
25684 * @return \Illuminate\Database\Eloquent\Builder<static>
25685 * @static
25686 */
25687 public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
25688 {
25689 /** @var \Illuminate\Database\Query\Builder $instance */
25690 return $instance->whereIntegerNotInRaw($column, $values, $boolean);
25691 }
25692
25693 /**
25694 * Add an "or where not in raw" clause for integer values to the query.
25695 *
25696 * @param string $column
25697 * @param \Illuminate\Contracts\Support\Arrayable|array $values
25698 * @return \Illuminate\Database\Eloquent\Builder<static>
25699 * @static
25700 */
25701 public static function orWhereIntegerNotInRaw($column, $values)
25702 {
25703 /** @var \Illuminate\Database\Query\Builder $instance */
25704 return $instance->orWhereIntegerNotInRaw($column, $values);
25705 }
25706
25707 /**
25708 * Add a "where null" clause to the query.
25709 *
25710 * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
25711 * @param string $boolean
25712 * @param bool $not
25713 * @return \Illuminate\Database\Eloquent\Builder<static>
25714 * @static
25715 */
25716 public static function whereNull($columns, $boolean = 'and', $not = false)
25717 {
25718 /** @var \Illuminate\Database\Query\Builder $instance */
25719 return $instance->whereNull($columns, $boolean, $not);
25720 }
25721
25722 /**
25723 * Add an "or where null" clause to the query.
25724 *
25725 * @param string|array|\Illuminate\Contracts\Database\Query\Expression $column
25726 * @return \Illuminate\Database\Eloquent\Builder<static>
25727 * @static
25728 */
25729 public static function orWhereNull($column)
25730 {
25731 /** @var \Illuminate\Database\Query\Builder $instance */
25732 return $instance->orWhereNull($column);
25733 }
25734
25735 /**
25736 * Add a "where not null" clause to the query.
25737 *
25738 * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
25739 * @param string $boolean
25740 * @return \Illuminate\Database\Eloquent\Builder<static>
25741 * @static
25742 */
25743 public static function whereNotNull($columns, $boolean = 'and')
25744 {
25745 /** @var \Illuminate\Database\Query\Builder $instance */
25746 return $instance->whereNotNull($columns, $boolean);
25747 }
25748
25749 /**
25750 * Add a where between statement to the query.
25751 *
25752 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25753 * @param string $boolean
25754 * @param bool $not
25755 * @return \Illuminate\Database\Eloquent\Builder<static>
25756 * @static
25757 */
25758 public static function whereBetween($column, $values, $boolean = 'and', $not = false)
25759 {
25760 /** @var \Illuminate\Database\Query\Builder $instance */
25761 return $instance->whereBetween($column, $values, $boolean, $not);
25762 }
25763
25764 /**
25765 * Add a where between statement using columns to the query.
25766 *
25767 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25768 * @param string $boolean
25769 * @param bool $not
25770 * @return \Illuminate\Database\Eloquent\Builder<static>
25771 * @static
25772 */
25773 public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
25774 {
25775 /** @var \Illuminate\Database\Query\Builder $instance */
25776 return $instance->whereBetweenColumns($column, $values, $boolean, $not);
25777 }
25778
25779 /**
25780 * Add an or where between statement to the query.
25781 *
25782 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25783 * @return \Illuminate\Database\Eloquent\Builder<static>
25784 * @static
25785 */
25786 public static function orWhereBetween($column, $values)
25787 {
25788 /** @var \Illuminate\Database\Query\Builder $instance */
25789 return $instance->orWhereBetween($column, $values);
25790 }
25791
25792 /**
25793 * Add an or where between statement using columns to the query.
25794 *
25795 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25796 * @return \Illuminate\Database\Eloquent\Builder<static>
25797 * @static
25798 */
25799 public static function orWhereBetweenColumns($column, $values)
25800 {
25801 /** @var \Illuminate\Database\Query\Builder $instance */
25802 return $instance->orWhereBetweenColumns($column, $values);
25803 }
25804
25805 /**
25806 * Add a where not between statement to the query.
25807 *
25808 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25809 * @param string $boolean
25810 * @return \Illuminate\Database\Eloquent\Builder<static>
25811 * @static
25812 */
25813 public static function whereNotBetween($column, $values, $boolean = 'and')
25814 {
25815 /** @var \Illuminate\Database\Query\Builder $instance */
25816 return $instance->whereNotBetween($column, $values, $boolean);
25817 }
25818
25819 /**
25820 * Add a where not between statement using columns to the query.
25821 *
25822 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25823 * @param string $boolean
25824 * @return \Illuminate\Database\Eloquent\Builder<static>
25825 * @static
25826 */
25827 public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
25828 {
25829 /** @var \Illuminate\Database\Query\Builder $instance */
25830 return $instance->whereNotBetweenColumns($column, $values, $boolean);
25831 }
25832
25833 /**
25834 * Add an or where not between statement to the query.
25835 *
25836 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25837 * @return \Illuminate\Database\Eloquent\Builder<static>
25838 * @static
25839 */
25840 public static function orWhereNotBetween($column, $values)
25841 {
25842 /** @var \Illuminate\Database\Query\Builder $instance */
25843 return $instance->orWhereNotBetween($column, $values);
25844 }
25845
25846 /**
25847 * Add an or where not between statement using columns to the query.
25848 *
25849 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25850 * @return \Illuminate\Database\Eloquent\Builder<static>
25851 * @static
25852 */
25853 public static function orWhereNotBetweenColumns($column, $values)
25854 {
25855 /** @var \Illuminate\Database\Query\Builder $instance */
25856 return $instance->orWhereNotBetweenColumns($column, $values);
25857 }
25858
25859 /**
25860 * Add a where between columns statement using a value to the query.
25861 *
25862 * @param mixed $value
25863 * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns
25864 * @param string $boolean
25865 * @param bool $not
25866 * @return \Illuminate\Database\Eloquent\Builder<static>
25867 * @static
25868 */
25869 public static function whereValueBetween($value, $columns, $boolean = 'and', $not = false)
25870 {
25871 /** @var \Illuminate\Database\Query\Builder $instance */
25872 return $instance->whereValueBetween($value, $columns, $boolean, $not);
25873 }
25874
25875 /**
25876 * Add an or where between columns statement using a value to the query.
25877 *
25878 * @param mixed $value
25879 * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns
25880 * @return \Illuminate\Database\Eloquent\Builder<static>
25881 * @static
25882 */
25883 public static function orWhereValueBetween($value, $columns)
25884 {
25885 /** @var \Illuminate\Database\Query\Builder $instance */
25886 return $instance->orWhereValueBetween($value, $columns);
25887 }
25888
25889 /**
25890 * Add a where not between columns statement using a value to the query.
25891 *
25892 * @param mixed $value
25893 * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns
25894 * @param string $boolean
25895 * @return \Illuminate\Database\Eloquent\Builder<static>
25896 * @static
25897 */
25898 public static function whereValueNotBetween($value, $columns, $boolean = 'and')
25899 {
25900 /** @var \Illuminate\Database\Query\Builder $instance */
25901 return $instance->whereValueNotBetween($value, $columns, $boolean);
25902 }
25903
25904 /**
25905 * Add an or where not between columns statement using a value to the query.
25906 *
25907 * @param mixed $value
25908 * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns
25909 * @return \Illuminate\Database\Eloquent\Builder<static>
25910 * @static
25911 */
25912 public static function orWhereValueNotBetween($value, $columns)
25913 {
25914 /** @var \Illuminate\Database\Query\Builder $instance */
25915 return $instance->orWhereValueNotBetween($value, $columns);
25916 }
25917
25918 /**
25919 * Add an "or where not null" clause to the query.
25920 *
25921 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25922 * @return \Illuminate\Database\Eloquent\Builder<static>
25923 * @static
25924 */
25925 public static function orWhereNotNull($column)
25926 {
25927 /** @var \Illuminate\Database\Query\Builder $instance */
25928 return $instance->orWhereNotNull($column);
25929 }
25930
25931 /**
25932 * Add a "where date" statement to the query.
25933 *
25934 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25935 * @param \DateTimeInterface|string|null $operator
25936 * @param \DateTimeInterface|string|null $value
25937 * @param string $boolean
25938 * @return \Illuminate\Database\Eloquent\Builder<static>
25939 * @static
25940 */
25941 public static function whereDate($column, $operator, $value = null, $boolean = 'and')
25942 {
25943 /** @var \Illuminate\Database\Query\Builder $instance */
25944 return $instance->whereDate($column, $operator, $value, $boolean);
25945 }
25946
25947 /**
25948 * Add an "or where date" statement to the query.
25949 *
25950 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25951 * @param \DateTimeInterface|string|null $operator
25952 * @param \DateTimeInterface|string|null $value
25953 * @return \Illuminate\Database\Eloquent\Builder<static>
25954 * @static
25955 */
25956 public static function orWhereDate($column, $operator, $value = null)
25957 {
25958 /** @var \Illuminate\Database\Query\Builder $instance */
25959 return $instance->orWhereDate($column, $operator, $value);
25960 }
25961
25962 /**
25963 * Add a "where time" statement to the query.
25964 *
25965 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25966 * @param \DateTimeInterface|string|null $operator
25967 * @param \DateTimeInterface|string|null $value
25968 * @param string $boolean
25969 * @return \Illuminate\Database\Eloquent\Builder<static>
25970 * @static
25971 */
25972 public static function whereTime($column, $operator, $value = null, $boolean = 'and')
25973 {
25974 /** @var \Illuminate\Database\Query\Builder $instance */
25975 return $instance->whereTime($column, $operator, $value, $boolean);
25976 }
25977
25978 /**
25979 * Add an "or where time" statement to the query.
25980 *
25981 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25982 * @param \DateTimeInterface|string|null $operator
25983 * @param \DateTimeInterface|string|null $value
25984 * @return \Illuminate\Database\Eloquent\Builder<static>
25985 * @static
25986 */
25987 public static function orWhereTime($column, $operator, $value = null)
25988 {
25989 /** @var \Illuminate\Database\Query\Builder $instance */
25990 return $instance->orWhereTime($column, $operator, $value);
25991 }
25992
25993 /**
25994 * Add a "where day" statement to the query.
25995 *
25996 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
25997 * @param \DateTimeInterface|string|int|null $operator
25998 * @param \DateTimeInterface|string|int|null $value
25999 * @param string $boolean
26000 * @return \Illuminate\Database\Eloquent\Builder<static>
26001 * @static
26002 */
26003 public static function whereDay($column, $operator, $value = null, $boolean = 'and')
26004 {
26005 /** @var \Illuminate\Database\Query\Builder $instance */
26006 return $instance->whereDay($column, $operator, $value, $boolean);
26007 }
26008
26009 /**
26010 * Add an "or where day" statement to the query.
26011 *
26012 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
26013 * @param \DateTimeInterface|string|int|null $operator
26014 * @param \DateTimeInterface|string|int|null $value
26015 * @return \Illuminate\Database\Eloquent\Builder<static>
26016 * @static
26017 */
26018 public static function orWhereDay($column, $operator, $value = null)
26019 {
26020 /** @var \Illuminate\Database\Query\Builder $instance */
26021 return $instance->orWhereDay($column, $operator, $value);
26022 }
26023
26024 /**
26025 * Add a "where month" statement to the query.
26026 *
26027 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
26028 * @param \DateTimeInterface|string|int|null $operator
26029 * @param \DateTimeInterface|string|int|null $value
26030 * @param string $boolean
26031 * @return \Illuminate\Database\Eloquent\Builder<static>
26032 * @static
26033 */
26034 public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
26035 {
26036 /** @var \Illuminate\Database\Query\Builder $instance */
26037 return $instance->whereMonth($column, $operator, $value, $boolean);
26038 }
26039
26040 /**
26041 * Add an "or where month" statement to the query.
26042 *
26043 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
26044 * @param \DateTimeInterface|string|int|null $operator
26045 * @param \DateTimeInterface|string|int|null $value
26046 * @return \Illuminate\Database\Eloquent\Builder<static>
26047 * @static
26048 */
26049 public static function orWhereMonth($column, $operator, $value = null)
26050 {
26051 /** @var \Illuminate\Database\Query\Builder $instance */
26052 return $instance->orWhereMonth($column, $operator, $value);
26053 }
26054
26055 /**
26056 * Add a "where year" statement to the query.
26057 *
26058 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
26059 * @param \DateTimeInterface|string|int|null $operator
26060 * @param \DateTimeInterface|string|int|null $value
26061 * @param string $boolean
26062 * @return \Illuminate\Database\Eloquent\Builder<static>
26063 * @static
26064 */
26065 public static function whereYear($column, $operator, $value = null, $boolean = 'and')
26066 {
26067 /** @var \Illuminate\Database\Query\Builder $instance */
26068 return $instance->whereYear($column, $operator, $value, $boolean);
26069 }
26070
26071 /**
26072 * Add an "or where year" statement to the query.
26073 *
26074 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
26075 * @param \DateTimeInterface|string|int|null $operator
26076 * @param \DateTimeInterface|string|int|null $value
26077 * @return \Illuminate\Database\Eloquent\Builder<static>
26078 * @static
26079 */
26080 public static function orWhereYear($column, $operator, $value = null)
26081 {
26082 /** @var \Illuminate\Database\Query\Builder $instance */
26083 return $instance->orWhereYear($column, $operator, $value);
26084 }
26085
26086 /**
26087 * Add a nested where statement to the query.
26088 *
26089 * @param string $boolean
26090 * @return \Illuminate\Database\Eloquent\Builder<static>
26091 * @static
26092 */
26093 public static function whereNested($callback, $boolean = 'and')
26094 {
26095 /** @var \Illuminate\Database\Query\Builder $instance */
26096 return $instance->whereNested($callback, $boolean);
26097 }
26098
26099 /**
26100 * Create a new query instance for nested where condition.
26101 *
26102 * @return \Illuminate\Database\Query\Builder
26103 * @static
26104 */
26105 public static function forNestedWhere()
26106 {
26107 /** @var \Illuminate\Database\Query\Builder $instance */
26108 return $instance->forNestedWhere();
26109 }
26110
26111 /**
26112 * Add another query builder as a nested where to the query builder.
26113 *
26114 * @param \Illuminate\Database\Query\Builder $query
26115 * @param string $boolean
26116 * @return \Illuminate\Database\Eloquent\Builder<static>
26117 * @static
26118 */
26119 public static function addNestedWhereQuery($query, $boolean = 'and')
26120 {
26121 /** @var \Illuminate\Database\Query\Builder $instance */
26122 return $instance->addNestedWhereQuery($query, $boolean);
26123 }
26124
26125 /**
26126 * Add an exists clause to the query.
26127 *
26128 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
26129 * @param string $boolean
26130 * @param bool $not
26131 * @return \Illuminate\Database\Eloquent\Builder<static>
26132 * @static
26133 */
26134 public static function whereExists($callback, $boolean = 'and', $not = false)
26135 {
26136 /** @var \Illuminate\Database\Query\Builder $instance */
26137 return $instance->whereExists($callback, $boolean, $not);
26138 }
26139
26140 /**
26141 * Add an or exists clause to the query.
26142 *
26143 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
26144 * @param bool $not
26145 * @return \Illuminate\Database\Eloquent\Builder<static>
26146 * @static
26147 */
26148 public static function orWhereExists($callback, $not = false)
26149 {
26150 /** @var \Illuminate\Database\Query\Builder $instance */
26151 return $instance->orWhereExists($callback, $not);
26152 }
26153
26154 /**
26155 * Add a where not exists clause to the query.
26156 *
26157 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
26158 * @param string $boolean
26159 * @return \Illuminate\Database\Eloquent\Builder<static>
26160 * @static
26161 */
26162 public static function whereNotExists($callback, $boolean = 'and')
26163 {
26164 /** @var \Illuminate\Database\Query\Builder $instance */
26165 return $instance->whereNotExists($callback, $boolean);
26166 }
26167
26168 /**
26169 * Add a where not exists clause to the query.
26170 *
26171 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
26172 * @return \Illuminate\Database\Eloquent\Builder<static>
26173 * @static
26174 */
26175 public static function orWhereNotExists($callback)
26176 {
26177 /** @var \Illuminate\Database\Query\Builder $instance */
26178 return $instance->orWhereNotExists($callback);
26179 }
26180
26181 /**
26182 * Add an exists clause to the query.
26183 *
26184 * @param string $boolean
26185 * @param bool $not
26186 * @return \Illuminate\Database\Eloquent\Builder<static>
26187 * @static
26188 */
26189 public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
26190 {
26191 /** @var \Illuminate\Database\Query\Builder $instance */
26192 return $instance->addWhereExistsQuery($query, $boolean, $not);
26193 }
26194
26195 /**
26196 * Adds a where condition using row values.
26197 *
26198 * @param array $columns
26199 * @param string $operator
26200 * @param array $values
26201 * @param string $boolean
26202 * @return \Illuminate\Database\Eloquent\Builder<static>
26203 * @throws \InvalidArgumentException
26204 * @static
26205 */
26206 public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
26207 {
26208 /** @var \Illuminate\Database\Query\Builder $instance */
26209 return $instance->whereRowValues($columns, $operator, $values, $boolean);
26210 }
26211
26212 /**
26213 * Adds an or where condition using row values.
26214 *
26215 * @param array $columns
26216 * @param string $operator
26217 * @param array $values
26218 * @return \Illuminate\Database\Eloquent\Builder<static>
26219 * @static
26220 */
26221 public static function orWhereRowValues($columns, $operator, $values)
26222 {
26223 /** @var \Illuminate\Database\Query\Builder $instance */
26224 return $instance->orWhereRowValues($columns, $operator, $values);
26225 }
26226
26227 /**
26228 * Add a "where JSON contains" clause to the query.
26229 *
26230 * @param string $column
26231 * @param mixed $value
26232 * @param string $boolean
26233 * @param bool $not
26234 * @return \Illuminate\Database\Eloquent\Builder<static>
26235 * @static
26236 */
26237 public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
26238 {
26239 /** @var \Illuminate\Database\Query\Builder $instance */
26240 return $instance->whereJsonContains($column, $value, $boolean, $not);
26241 }
26242
26243 /**
26244 * Add an "or where JSON contains" clause to the query.
26245 *
26246 * @param string $column
26247 * @param mixed $value
26248 * @return \Illuminate\Database\Eloquent\Builder<static>
26249 * @static
26250 */
26251 public static function orWhereJsonContains($column, $value)
26252 {
26253 /** @var \Illuminate\Database\Query\Builder $instance */
26254 return $instance->orWhereJsonContains($column, $value);
26255 }
26256
26257 /**
26258 * Add a "where JSON not contains" clause to the query.
26259 *
26260 * @param string $column
26261 * @param mixed $value
26262 * @param string $boolean
26263 * @return \Illuminate\Database\Eloquent\Builder<static>
26264 * @static
26265 */
26266 public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
26267 {
26268 /** @var \Illuminate\Database\Query\Builder $instance */
26269 return $instance->whereJsonDoesntContain($column, $value, $boolean);
26270 }
26271
26272 /**
26273 * Add an "or where JSON not contains" clause to the query.
26274 *
26275 * @param string $column
26276 * @param mixed $value
26277 * @return \Illuminate\Database\Eloquent\Builder<static>
26278 * @static
26279 */
26280 public static function orWhereJsonDoesntContain($column, $value)
26281 {
26282 /** @var \Illuminate\Database\Query\Builder $instance */
26283 return $instance->orWhereJsonDoesntContain($column, $value);
26284 }
26285
26286 /**
26287 * Add a "where JSON overlaps" clause to the query.
26288 *
26289 * @param string $column
26290 * @param mixed $value
26291 * @param string $boolean
26292 * @param bool $not
26293 * @return \Illuminate\Database\Eloquent\Builder<static>
26294 * @static
26295 */
26296 public static function whereJsonOverlaps($column, $value, $boolean = 'and', $not = false)
26297 {
26298 /** @var \Illuminate\Database\Query\Builder $instance */
26299 return $instance->whereJsonOverlaps($column, $value, $boolean, $not);
26300 }
26301
26302 /**
26303 * Add an "or where JSON overlaps" clause to the query.
26304 *
26305 * @param string $column
26306 * @param mixed $value
26307 * @return \Illuminate\Database\Eloquent\Builder<static>
26308 * @static
26309 */
26310 public static function orWhereJsonOverlaps($column, $value)
26311 {
26312 /** @var \Illuminate\Database\Query\Builder $instance */
26313 return $instance->orWhereJsonOverlaps($column, $value);
26314 }
26315
26316 /**
26317 * Add a "where JSON not overlap" clause to the query.
26318 *
26319 * @param string $column
26320 * @param mixed $value
26321 * @param string $boolean
26322 * @return \Illuminate\Database\Eloquent\Builder<static>
26323 * @static
26324 */
26325 public static function whereJsonDoesntOverlap($column, $value, $boolean = 'and')
26326 {
26327 /** @var \Illuminate\Database\Query\Builder $instance */
26328 return $instance->whereJsonDoesntOverlap($column, $value, $boolean);
26329 }
26330
26331 /**
26332 * Add an "or where JSON not overlap" clause to the query.
26333 *
26334 * @param string $column
26335 * @param mixed $value
26336 * @return \Illuminate\Database\Eloquent\Builder<static>
26337 * @static
26338 */
26339 public static function orWhereJsonDoesntOverlap($column, $value)
26340 {
26341 /** @var \Illuminate\Database\Query\Builder $instance */
26342 return $instance->orWhereJsonDoesntOverlap($column, $value);
26343 }
26344
26345 /**
26346 * Add a clause that determines if a JSON path exists to the query.
26347 *
26348 * @param string $column
26349 * @param string $boolean
26350 * @param bool $not
26351 * @return \Illuminate\Database\Eloquent\Builder<static>
26352 * @static
26353 */
26354 public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
26355 {
26356 /** @var \Illuminate\Database\Query\Builder $instance */
26357 return $instance->whereJsonContainsKey($column, $boolean, $not);
26358 }
26359
26360 /**
26361 * Add an "or" clause that determines if a JSON path exists to the query.
26362 *
26363 * @param string $column
26364 * @return \Illuminate\Database\Eloquent\Builder<static>
26365 * @static
26366 */
26367 public static function orWhereJsonContainsKey($column)
26368 {
26369 /** @var \Illuminate\Database\Query\Builder $instance */
26370 return $instance->orWhereJsonContainsKey($column);
26371 }
26372
26373 /**
26374 * Add a clause that determines if a JSON path does not exist to the query.
26375 *
26376 * @param string $column
26377 * @param string $boolean
26378 * @return \Illuminate\Database\Eloquent\Builder<static>
26379 * @static
26380 */
26381 public static function whereJsonDoesntContainKey($column, $boolean = 'and')
26382 {
26383 /** @var \Illuminate\Database\Query\Builder $instance */
26384 return $instance->whereJsonDoesntContainKey($column, $boolean);
26385 }
26386
26387 /**
26388 * Add an "or" clause that determines if a JSON path does not exist to the query.
26389 *
26390 * @param string $column
26391 * @return \Illuminate\Database\Eloquent\Builder<static>
26392 * @static
26393 */
26394 public static function orWhereJsonDoesntContainKey($column)
26395 {
26396 /** @var \Illuminate\Database\Query\Builder $instance */
26397 return $instance->orWhereJsonDoesntContainKey($column);
26398 }
26399
26400 /**
26401 * Add a "where JSON length" clause to the query.
26402 *
26403 * @param string $column
26404 * @param mixed $operator
26405 * @param mixed $value
26406 * @param string $boolean
26407 * @return \Illuminate\Database\Eloquent\Builder<static>
26408 * @static
26409 */
26410 public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
26411 {
26412 /** @var \Illuminate\Database\Query\Builder $instance */
26413 return $instance->whereJsonLength($column, $operator, $value, $boolean);
26414 }
26415
26416 /**
26417 * Add an "or where JSON length" clause to the query.
26418 *
26419 * @param string $column
26420 * @param mixed $operator
26421 * @param mixed $value
26422 * @return \Illuminate\Database\Eloquent\Builder<static>
26423 * @static
26424 */
26425 public static function orWhereJsonLength($column, $operator, $value = null)
26426 {
26427 /** @var \Illuminate\Database\Query\Builder $instance */
26428 return $instance->orWhereJsonLength($column, $operator, $value);
26429 }
26430
26431 /**
26432 * Handles dynamic "where" clauses to the query.
26433 *
26434 * @param string $method
26435 * @param array $parameters
26436 * @return \Illuminate\Database\Eloquent\Builder<static>
26437 * @static
26438 */
26439 public static function dynamicWhere($method, $parameters)
26440 {
26441 /** @var \Illuminate\Database\Query\Builder $instance */
26442 return $instance->dynamicWhere($method, $parameters);
26443 }
26444
26445 /**
26446 * Add a "where fulltext" clause to the query.
26447 *
26448 * @param string|string[] $columns
26449 * @param string $value
26450 * @param string $boolean
26451 * @return \Illuminate\Database\Eloquent\Builder<static>
26452 * @static
26453 */
26454 public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
26455 {
26456 /** @var \Illuminate\Database\Query\Builder $instance */
26457 return $instance->whereFullText($columns, $value, $options, $boolean);
26458 }
26459
26460 /**
26461 * Add a "or where fulltext" clause to the query.
26462 *
26463 * @param string|string[] $columns
26464 * @param string $value
26465 * @return \Illuminate\Database\Eloquent\Builder<static>
26466 * @static
26467 */
26468 public static function orWhereFullText($columns, $value, $options = [])
26469 {
26470 /** @var \Illuminate\Database\Query\Builder $instance */
26471 return $instance->orWhereFullText($columns, $value, $options);
26472 }
26473
26474 /**
26475 * Add a "where" clause to the query for multiple columns with "and" conditions between them.
26476 *
26477 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26478 * @param mixed $operator
26479 * @param mixed $value
26480 * @param string $boolean
26481 * @return \Illuminate\Database\Eloquent\Builder<static>
26482 * @static
26483 */
26484 public static function whereAll($columns, $operator = null, $value = null, $boolean = 'and')
26485 {
26486 /** @var \Illuminate\Database\Query\Builder $instance */
26487 return $instance->whereAll($columns, $operator, $value, $boolean);
26488 }
26489
26490 /**
26491 * Add an "or where" clause to the query for multiple columns with "and" conditions between them.
26492 *
26493 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26494 * @param mixed $operator
26495 * @param mixed $value
26496 * @return \Illuminate\Database\Eloquent\Builder<static>
26497 * @static
26498 */
26499 public static function orWhereAll($columns, $operator = null, $value = null)
26500 {
26501 /** @var \Illuminate\Database\Query\Builder $instance */
26502 return $instance->orWhereAll($columns, $operator, $value);
26503 }
26504
26505 /**
26506 * Add a "where" clause to the query for multiple columns with "or" conditions between them.
26507 *
26508 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26509 * @param mixed $operator
26510 * @param mixed $value
26511 * @param string $boolean
26512 * @return \Illuminate\Database\Eloquent\Builder<static>
26513 * @static
26514 */
26515 public static function whereAny($columns, $operator = null, $value = null, $boolean = 'and')
26516 {
26517 /** @var \Illuminate\Database\Query\Builder $instance */
26518 return $instance->whereAny($columns, $operator, $value, $boolean);
26519 }
26520
26521 /**
26522 * Add an "or where" clause to the query for multiple columns with "or" conditions between them.
26523 *
26524 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26525 * @param mixed $operator
26526 * @param mixed $value
26527 * @return \Illuminate\Database\Eloquent\Builder<static>
26528 * @static
26529 */
26530 public static function orWhereAny($columns, $operator = null, $value = null)
26531 {
26532 /** @var \Illuminate\Database\Query\Builder $instance */
26533 return $instance->orWhereAny($columns, $operator, $value);
26534 }
26535
26536 /**
26537 * Add a "where not" clause to the query for multiple columns where none of the conditions should be true.
26538 *
26539 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26540 * @param mixed $operator
26541 * @param mixed $value
26542 * @param string $boolean
26543 * @return \Illuminate\Database\Eloquent\Builder<static>
26544 * @static
26545 */
26546 public static function whereNone($columns, $operator = null, $value = null, $boolean = 'and')
26547 {
26548 /** @var \Illuminate\Database\Query\Builder $instance */
26549 return $instance->whereNone($columns, $operator, $value, $boolean);
26550 }
26551
26552 /**
26553 * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true.
26554 *
26555 * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
26556 * @param mixed $operator
26557 * @param mixed $value
26558 * @return \Illuminate\Database\Eloquent\Builder<static>
26559 * @static
26560 */
26561 public static function orWhereNone($columns, $operator = null, $value = null)
26562 {
26563 /** @var \Illuminate\Database\Query\Builder $instance */
26564 return $instance->orWhereNone($columns, $operator, $value);
26565 }
26566
26567 /**
26568 * Add a "group by" clause to the query.
26569 *
26570 * @param array|\Illuminate\Contracts\Database\Query\Expression|string $groups
26571 * @return \Illuminate\Database\Eloquent\Builder<static>
26572 * @static
26573 */
26574 public static function groupBy(...$groups)
26575 {
26576 /** @var \Illuminate\Database\Query\Builder $instance */
26577 return $instance->groupBy(...$groups);
26578 }
26579
26580 /**
26581 * Add a raw groupBy clause to the query.
26582 *
26583 * @param string $sql
26584 * @return \Illuminate\Database\Eloquent\Builder<static>
26585 * @static
26586 */
26587 public static function groupByRaw($sql, $bindings = [])
26588 {
26589 /** @var \Illuminate\Database\Query\Builder $instance */
26590 return $instance->groupByRaw($sql, $bindings);
26591 }
26592
26593 /**
26594 * Add a "having" clause to the query.
26595 *
26596 * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
26597 * @param \DateTimeInterface|string|int|float|null $operator
26598 * @param \Illuminate\Contracts\Database\Query\Expression|\DateTimeInterface|string|int|float|null $value
26599 * @param string $boolean
26600 * @return \Illuminate\Database\Eloquent\Builder<static>
26601 * @static
26602 */
26603 public static function having($column, $operator = null, $value = null, $boolean = 'and')
26604 {
26605 /** @var \Illuminate\Database\Query\Builder $instance */
26606 return $instance->having($column, $operator, $value, $boolean);
26607 }
26608
26609 /**
26610 * Add an "or having" clause to the query.
26611 *
26612 * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
26613 * @param \DateTimeInterface|string|int|float|null $operator
26614 * @param \Illuminate\Contracts\Database\Query\Expression|\DateTimeInterface|string|int|float|null $value
26615 * @return \Illuminate\Database\Eloquent\Builder<static>
26616 * @static
26617 */
26618 public static function orHaving($column, $operator = null, $value = null)
26619 {
26620 /** @var \Illuminate\Database\Query\Builder $instance */
26621 return $instance->orHaving($column, $operator, $value);
26622 }
26623
26624 /**
26625 * Add a nested having statement to the query.
26626 *
26627 * @param string $boolean
26628 * @return \Illuminate\Database\Eloquent\Builder<static>
26629 * @static
26630 */
26631 public static function havingNested($callback, $boolean = 'and')
26632 {
26633 /** @var \Illuminate\Database\Query\Builder $instance */
26634 return $instance->havingNested($callback, $boolean);
26635 }
26636
26637 /**
26638 * Add another query builder as a nested having to the query builder.
26639 *
26640 * @param \Illuminate\Database\Query\Builder $query
26641 * @param string $boolean
26642 * @return \Illuminate\Database\Eloquent\Builder<static>
26643 * @static
26644 */
26645 public static function addNestedHavingQuery($query, $boolean = 'and')
26646 {
26647 /** @var \Illuminate\Database\Query\Builder $instance */
26648 return $instance->addNestedHavingQuery($query, $boolean);
26649 }
26650
26651 /**
26652 * Add a "having null" clause to the query.
26653 *
26654 * @param array|string $columns
26655 * @param string $boolean
26656 * @param bool $not
26657 * @return \Illuminate\Database\Eloquent\Builder<static>
26658 * @static
26659 */
26660 public static function havingNull($columns, $boolean = 'and', $not = false)
26661 {
26662 /** @var \Illuminate\Database\Query\Builder $instance */
26663 return $instance->havingNull($columns, $boolean, $not);
26664 }
26665
26666 /**
26667 * Add an "or having null" clause to the query.
26668 *
26669 * @param string $column
26670 * @return \Illuminate\Database\Eloquent\Builder<static>
26671 * @static
26672 */
26673 public static function orHavingNull($column)
26674 {
26675 /** @var \Illuminate\Database\Query\Builder $instance */
26676 return $instance->orHavingNull($column);
26677 }
26678
26679 /**
26680 * Add a "having not null" clause to the query.
26681 *
26682 * @param array|string $columns
26683 * @param string $boolean
26684 * @return \Illuminate\Database\Eloquent\Builder<static>
26685 * @static
26686 */
26687 public static function havingNotNull($columns, $boolean = 'and')
26688 {
26689 /** @var \Illuminate\Database\Query\Builder $instance */
26690 return $instance->havingNotNull($columns, $boolean);
26691 }
26692
26693 /**
26694 * Add an "or having not null" clause to the query.
26695 *
26696 * @param string $column
26697 * @return \Illuminate\Database\Eloquent\Builder<static>
26698 * @static
26699 */
26700 public static function orHavingNotNull($column)
26701 {
26702 /** @var \Illuminate\Database\Query\Builder $instance */
26703 return $instance->orHavingNotNull($column);
26704 }
26705
26706 /**
26707 * Add a "having between " clause to the query.
26708 *
26709 * @param string $column
26710 * @param string $boolean
26711 * @param bool $not
26712 * @return \Illuminate\Database\Eloquent\Builder<static>
26713 * @static
26714 */
26715 public static function havingBetween($column, $values, $boolean = 'and', $not = false)
26716 {
26717 /** @var \Illuminate\Database\Query\Builder $instance */
26718 return $instance->havingBetween($column, $values, $boolean, $not);
26719 }
26720
26721 /**
26722 * Add a raw having clause to the query.
26723 *
26724 * @param string $sql
26725 * @param string $boolean
26726 * @return \Illuminate\Database\Eloquent\Builder<static>
26727 * @static
26728 */
26729 public static function havingRaw($sql, $bindings = [], $boolean = 'and')
26730 {
26731 /** @var \Illuminate\Database\Query\Builder $instance */
26732 return $instance->havingRaw($sql, $bindings, $boolean);
26733 }
26734
26735 /**
26736 * Add a raw or having clause to the query.
26737 *
26738 * @param string $sql
26739 * @return \Illuminate\Database\Eloquent\Builder<static>
26740 * @static
26741 */
26742 public static function orHavingRaw($sql, $bindings = [])
26743 {
26744 /** @var \Illuminate\Database\Query\Builder $instance */
26745 return $instance->orHavingRaw($sql, $bindings);
26746 }
26747
26748 /**
26749 * Add an "order by" clause to the query.
26750 *
26751 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
26752 * @param string $direction
26753 * @return \Illuminate\Database\Eloquent\Builder<static>
26754 * @throws \InvalidArgumentException
26755 * @static
26756 */
26757 public static function orderBy($column, $direction = 'asc')
26758 {
26759 /** @var \Illuminate\Database\Query\Builder $instance */
26760 return $instance->orderBy($column, $direction);
26761 }
26762
26763 /**
26764 * Add a descending "order by" clause to the query.
26765 *
26766 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
26767 * @return \Illuminate\Database\Eloquent\Builder<static>
26768 * @static
26769 */
26770 public static function orderByDesc($column)
26771 {
26772 /** @var \Illuminate\Database\Query\Builder $instance */
26773 return $instance->orderByDesc($column);
26774 }
26775
26776 /**
26777 * Put the query's results in random order.
26778 *
26779 * @param string|int $seed
26780 * @return \Illuminate\Database\Eloquent\Builder<static>
26781 * @static
26782 */
26783 public static function inRandomOrder($seed = '')
26784 {
26785 /** @var \Illuminate\Database\Query\Builder $instance */
26786 return $instance->inRandomOrder($seed);
26787 }
26788
26789 /**
26790 * Add a raw "order by" clause to the query.
26791 *
26792 * @param string $sql
26793 * @param array $bindings
26794 * @return \Illuminate\Database\Eloquent\Builder<static>
26795 * @static
26796 */
26797 public static function orderByRaw($sql, $bindings = [])
26798 {
26799 /** @var \Illuminate\Database\Query\Builder $instance */
26800 return $instance->orderByRaw($sql, $bindings);
26801 }
26802
26803 /**
26804 * Alias to set the "offset" value of the query.
26805 *
26806 * @param int $value
26807 * @return \Illuminate\Database\Eloquent\Builder<static>
26808 * @static
26809 */
26810 public static function skip($value)
26811 {
26812 /** @var \Illuminate\Database\Query\Builder $instance */
26813 return $instance->skip($value);
26814 }
26815
26816 /**
26817 * Set the "offset" value of the query.
26818 *
26819 * @param int $value
26820 * @return \Illuminate\Database\Eloquent\Builder<static>
26821 * @static
26822 */
26823 public static function offset($value)
26824 {
26825 /** @var \Illuminate\Database\Query\Builder $instance */
26826 return $instance->offset($value);
26827 }
26828
26829 /**
26830 * Alias to set the "limit" value of the query.
26831 *
26832 * @param int $value
26833 * @return \Illuminate\Database\Eloquent\Builder<static>
26834 * @static
26835 */
26836 public static function take($value)
26837 {
26838 /** @var \Illuminate\Database\Query\Builder $instance */
26839 return $instance->take($value);
26840 }
26841
26842 /**
26843 * Set the "limit" value of the query.
26844 *
26845 * @param int $value
26846 * @return \Illuminate\Database\Eloquent\Builder<static>
26847 * @static
26848 */
26849 public static function limit($value)
26850 {
26851 /** @var \Illuminate\Database\Query\Builder $instance */
26852 return $instance->limit($value);
26853 }
26854
26855 /**
26856 * Add a "group limit" clause to the query.
26857 *
26858 * @param int $value
26859 * @param string $column
26860 * @return \Illuminate\Database\Eloquent\Builder<static>
26861 * @static
26862 */
26863 public static function groupLimit($value, $column)
26864 {
26865 /** @var \Illuminate\Database\Query\Builder $instance */
26866 return $instance->groupLimit($value, $column);
26867 }
26868
26869 /**
26870 * Set the limit and offset for a given page.
26871 *
26872 * @param int $page
26873 * @param int $perPage
26874 * @return \Illuminate\Database\Eloquent\Builder<static>
26875 * @static
26876 */
26877 public static function forPage($page, $perPage = 15)
26878 {
26879 /** @var \Illuminate\Database\Query\Builder $instance */
26880 return $instance->forPage($page, $perPage);
26881 }
26882
26883 /**
26884 * Constrain the query to the previous "page" of results before a given ID.
26885 *
26886 * @param int $perPage
26887 * @param int|null $lastId
26888 * @param string $column
26889 * @return \Illuminate\Database\Eloquent\Builder<static>
26890 * @static
26891 */
26892 public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
26893 {
26894 /** @var \Illuminate\Database\Query\Builder $instance */
26895 return $instance->forPageBeforeId($perPage, $lastId, $column);
26896 }
26897
26898 /**
26899 * Constrain the query to the next "page" of results after a given ID.
26900 *
26901 * @param int $perPage
26902 * @param int|null $lastId
26903 * @param string $column
26904 * @return \Illuminate\Database\Eloquent\Builder<static>
26905 * @static
26906 */
26907 public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
26908 {
26909 /** @var \Illuminate\Database\Query\Builder $instance */
26910 return $instance->forPageAfterId($perPage, $lastId, $column);
26911 }
26912
26913 /**
26914 * Remove all existing orders and optionally add a new order.
26915 *
26916 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
26917 * @param string $direction
26918 * @return \Illuminate\Database\Eloquent\Builder<static>
26919 * @static
26920 */
26921 public static function reorder($column = null, $direction = 'asc')
26922 {
26923 /** @var \Illuminate\Database\Query\Builder $instance */
26924 return $instance->reorder($column, $direction);
26925 }
26926
26927 /**
26928 * Add descending "reorder" clause to the query.
26929 *
26930 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
26931 * @return \Illuminate\Database\Eloquent\Builder<static>
26932 * @static
26933 */
26934 public static function reorderDesc($column)
26935 {
26936 /** @var \Illuminate\Database\Query\Builder $instance */
26937 return $instance->reorderDesc($column);
26938 }
26939
26940 /**
26941 * Add a union statement to the query.
26942 *
26943 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
26944 * @param bool $all
26945 * @return \Illuminate\Database\Eloquent\Builder<static>
26946 * @static
26947 */
26948 public static function union($query, $all = false)
26949 {
26950 /** @var \Illuminate\Database\Query\Builder $instance */
26951 return $instance->union($query, $all);
26952 }
26953
26954 /**
26955 * Add a union all statement to the query.
26956 *
26957 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
26958 * @return \Illuminate\Database\Eloquent\Builder<static>
26959 * @static
26960 */
26961 public static function unionAll($query)
26962 {
26963 /** @var \Illuminate\Database\Query\Builder $instance */
26964 return $instance->unionAll($query);
26965 }
26966
26967 /**
26968 * Lock the selected rows in the table.
26969 *
26970 * @param string|bool $value
26971 * @return \Illuminate\Database\Eloquent\Builder<static>
26972 * @static
26973 */
26974 public static function lock($value = true)
26975 {
26976 /** @var \Illuminate\Database\Query\Builder $instance */
26977 return $instance->lock($value);
26978 }
26979
26980 /**
26981 * Lock the selected rows in the table for updating.
26982 *
26983 * @return \Illuminate\Database\Eloquent\Builder<static>
26984 * @static
26985 */
26986 public static function lockForUpdate()
26987 {
26988 /** @var \Illuminate\Database\Query\Builder $instance */
26989 return $instance->lockForUpdate();
26990 }
26991
26992 /**
26993 * Share lock the selected rows in the table.
26994 *
26995 * @return \Illuminate\Database\Eloquent\Builder<static>
26996 * @static
26997 */
26998 public static function sharedLock()
26999 {
27000 /** @var \Illuminate\Database\Query\Builder $instance */
27001 return $instance->sharedLock();
27002 }
27003
27004 /**
27005 * Register a closure to be invoked before the query is executed.
27006 *
27007 * @return \Illuminate\Database\Eloquent\Builder<static>
27008 * @static
27009 */
27010 public static function beforeQuery($callback)
27011 {
27012 /** @var \Illuminate\Database\Query\Builder $instance */
27013 return $instance->beforeQuery($callback);
27014 }
27015
27016 /**
27017 * Invoke the "before query" modification callbacks.
27018 *
27019 * @return void
27020 * @static
27021 */
27022 public static function applyBeforeQueryCallbacks()
27023 {
27024 /** @var \Illuminate\Database\Query\Builder $instance */
27025 $instance->applyBeforeQueryCallbacks();
27026 }
27027
27028 /**
27029 * Get the SQL representation of the query.
27030 *
27031 * @return string
27032 * @static
27033 */
27034 public static function toSql()
27035 {
27036 /** @var \Illuminate\Database\Query\Builder $instance */
27037 return $instance->toSql();
27038 }
27039
27040 /**
27041 * Get the raw SQL representation of the query with embedded bindings.
27042 *
27043 * @return string
27044 * @static
27045 */
27046 public static function toRawSql()
27047 {
27048 /** @var \Illuminate\Database\Query\Builder $instance */
27049 return $instance->toRawSql();
27050 }
27051
27052 /**
27053 * Get a single expression value from the first result of a query.
27054 *
27055 * @return mixed
27056 * @static
27057 */
27058 public static function rawValue($expression, $bindings = [])
27059 {
27060 /** @var \Illuminate\Database\Query\Builder $instance */
27061 return $instance->rawValue($expression, $bindings);
27062 }
27063
27064 /**
27065 * Get the count of the total records for the paginator.
27066 *
27067 * @param array<string|\Illuminate\Contracts\Database\Query\Expression> $columns
27068 * @return int<0, max>
27069 * @static
27070 */
27071 public static function getCountForPagination($columns = [])
27072 {
27073 /** @var \Illuminate\Database\Query\Builder $instance */
27074 return $instance->getCountForPagination($columns);
27075 }
27076
27077 /**
27078 * Concatenate values of a given column as a string.
27079 *
27080 * @param string $column
27081 * @param string $glue
27082 * @return string
27083 * @static
27084 */
27085 public static function implode($column, $glue = '')
27086 {
27087 /** @var \Illuminate\Database\Query\Builder $instance */
27088 return $instance->implode($column, $glue);
27089 }
27090
27091 /**
27092 * Determine if any rows exist for the current query.
27093 *
27094 * @return bool
27095 * @static
27096 */
27097 public static function exists()
27098 {
27099 /** @var \Illuminate\Database\Query\Builder $instance */
27100 return $instance->exists();
27101 }
27102
27103 /**
27104 * Determine if no rows exist for the current query.
27105 *
27106 * @return bool
27107 * @static
27108 */
27109 public static function doesntExist()
27110 {
27111 /** @var \Illuminate\Database\Query\Builder $instance */
27112 return $instance->doesntExist();
27113 }
27114
27115 /**
27116 * Execute the given callback if no rows exist for the current query.
27117 *
27118 * @return mixed
27119 * @static
27120 */
27121 public static function existsOr($callback)
27122 {
27123 /** @var \Illuminate\Database\Query\Builder $instance */
27124 return $instance->existsOr($callback);
27125 }
27126
27127 /**
27128 * Execute the given callback if rows exist for the current query.
27129 *
27130 * @return mixed
27131 * @static
27132 */
27133 public static function doesntExistOr($callback)
27134 {
27135 /** @var \Illuminate\Database\Query\Builder $instance */
27136 return $instance->doesntExistOr($callback);
27137 }
27138
27139 /**
27140 * Retrieve the "count" result of the query.
27141 *
27142 * @param \Illuminate\Contracts\Database\Query\Expression|string $columns
27143 * @return int<0, max>
27144 * @static
27145 */
27146 public static function count($columns = '*')
27147 {
27148 /** @var \Illuminate\Database\Query\Builder $instance */
27149 return $instance->count($columns);
27150 }
27151
27152 /**
27153 * Retrieve the minimum value of a given column.
27154 *
27155 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
27156 * @return mixed
27157 * @static
27158 */
27159 public static function min($column)
27160 {
27161 /** @var \Illuminate\Database\Query\Builder $instance */
27162 return $instance->min($column);
27163 }
27164
27165 /**
27166 * Retrieve the maximum value of a given column.
27167 *
27168 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
27169 * @return mixed
27170 * @static
27171 */
27172 public static function max($column)
27173 {
27174 /** @var \Illuminate\Database\Query\Builder $instance */
27175 return $instance->max($column);
27176 }
27177
27178 /**
27179 * Retrieve the sum of the values of a given column.
27180 *
27181 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
27182 * @return mixed
27183 * @static
27184 */
27185 public static function sum($column)
27186 {
27187 /** @var \Illuminate\Database\Query\Builder $instance */
27188 return $instance->sum($column);
27189 }
27190
27191 /**
27192 * Retrieve the average of the values of a given column.
27193 *
27194 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
27195 * @return mixed
27196 * @static
27197 */
27198 public static function avg($column)
27199 {
27200 /** @var \Illuminate\Database\Query\Builder $instance */
27201 return $instance->avg($column);
27202 }
27203
27204 /**
27205 * Alias for the "avg" method.
27206 *
27207 * @param \Illuminate\Contracts\Database\Query\Expression|string $column
27208 * @return mixed
27209 * @static
27210 */
27211 public static function average($column)
27212 {
27213 /** @var \Illuminate\Database\Query\Builder $instance */
27214 return $instance->average($column);
27215 }
27216
27217 /**
27218 * Execute an aggregate function on the database.
27219 *
27220 * @param string $function
27221 * @param array $columns
27222 * @return mixed
27223 * @static
27224 */
27225 public static function aggregate($function, $columns = [])
27226 {
27227 /** @var \Illuminate\Database\Query\Builder $instance */
27228 return $instance->aggregate($function, $columns);
27229 }
27230
27231 /**
27232 * Execute a numeric aggregate function on the database.
27233 *
27234 * @param string $function
27235 * @param array $columns
27236 * @return float|int
27237 * @static
27238 */
27239 public static function numericAggregate($function, $columns = [])
27240 {
27241 /** @var \Illuminate\Database\Query\Builder $instance */
27242 return $instance->numericAggregate($function, $columns);
27243 }
27244
27245 /**
27246 * Insert new records into the database.
27247 *
27248 * @return bool
27249 * @static
27250 */
27251 public static function insert($values)
27252 {
27253 /** @var \Illuminate\Database\Query\Builder $instance */
27254 return $instance->insert($values);
27255 }
27256
27257 /**
27258 * Insert new records into the database while ignoring errors.
27259 *
27260 * @return int<0, max>
27261 * @static
27262 */
27263 public static function insertOrIgnore($values)
27264 {
27265 /** @var \Illuminate\Database\Query\Builder $instance */
27266 return $instance->insertOrIgnore($values);
27267 }
27268
27269 /**
27270 * Insert a new record and get the value of the primary key.
27271 *
27272 * @param string|null $sequence
27273 * @return int
27274 * @static
27275 */
27276 public static function insertGetId($values, $sequence = null)
27277 {
27278 /** @var \Illuminate\Database\Query\Builder $instance */
27279 return $instance->insertGetId($values, $sequence);
27280 }
27281
27282 /**
27283 * Insert new records into the table using a subquery.
27284 *
27285 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
27286 * @return int
27287 * @static
27288 */
27289 public static function insertUsing($columns, $query)
27290 {
27291 /** @var \Illuminate\Database\Query\Builder $instance */
27292 return $instance->insertUsing($columns, $query);
27293 }
27294
27295 /**
27296 * Insert new records into the table using a subquery while ignoring errors.
27297 *
27298 * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
27299 * @return int
27300 * @static
27301 */
27302 public static function insertOrIgnoreUsing($columns, $query)
27303 {
27304 /** @var \Illuminate\Database\Query\Builder $instance */
27305 return $instance->insertOrIgnoreUsing($columns, $query);
27306 }
27307
27308 /**
27309 * Update records in a PostgreSQL database using the update from syntax.
27310 *
27311 * @return int
27312 * @static
27313 */
27314 public static function updateFrom($values)
27315 {
27316 /** @var \Illuminate\Database\Query\Builder $instance */
27317 return $instance->updateFrom($values);
27318 }
27319
27320 /**
27321 * Insert or update a record matching the attributes, and fill it with values.
27322 *
27323 * @return bool
27324 * @static
27325 */
27326 public static function updateOrInsert($attributes, $values = [])
27327 {
27328 /** @var \Illuminate\Database\Query\Builder $instance */
27329 return $instance->updateOrInsert($attributes, $values);
27330 }
27331
27332 /**
27333 * Increment the given column's values by the given amounts.
27334 *
27335 * @param array<string, float|int|numeric-string> $columns
27336 * @param array<string, mixed> $extra
27337 * @return int<0, max>
27338 * @throws \InvalidArgumentException
27339 * @static
27340 */
27341 public static function incrementEach($columns, $extra = [])
27342 {
27343 /** @var \Illuminate\Database\Query\Builder $instance */
27344 return $instance->incrementEach($columns, $extra);
27345 }
27346
27347 /**
27348 * Decrement the given column's values by the given amounts.
27349 *
27350 * @param array<string, float|int|numeric-string> $columns
27351 * @param array<string, mixed> $extra
27352 * @return int<0, max>
27353 * @throws \InvalidArgumentException
27354 * @static
27355 */
27356 public static function decrementEach($columns, $extra = [])
27357 {
27358 /** @var \Illuminate\Database\Query\Builder $instance */
27359 return $instance->decrementEach($columns, $extra);
27360 }
27361
27362 /**
27363 * Run a truncate statement on the table.
27364 *
27365 * @return void
27366 * @static
27367 */
27368 public static function truncate()
27369 {
27370 /** @var \Illuminate\Database\Query\Builder $instance */
27371 $instance->truncate();
27372 }
27373
27374 /**
27375 * Get all of the query builder's columns in a text-only array with all expressions evaluated.
27376 *
27377 * @return list<string>
27378 * @static
27379 */
27380 public static function getColumns()
27381 {
27382 /** @var \Illuminate\Database\Query\Builder $instance */
27383 return $instance->getColumns();
27384 }
27385
27386 /**
27387 * Create a raw database expression.
27388 *
27389 * @param mixed $value
27390 * @return \Illuminate\Contracts\Database\Query\Expression
27391 * @static
27392 */
27393 public static function raw($value)
27394 {
27395 /** @var \Illuminate\Database\Query\Builder $instance */
27396 return $instance->raw($value);
27397 }
27398
27399 /**
27400 * Get the current query value bindings in a flattened array.
27401 *
27402 * @return list<mixed>
27403 * @static
27404 */
27405 public static function getBindings()
27406 {
27407 /** @var \Illuminate\Database\Query\Builder $instance */
27408 return $instance->getBindings();
27409 }
27410
27411 /**
27412 * Get the raw array of bindings.
27413 *
27414 * @return \Illuminate\Database\Query\array{ select: list<mixed>,
27415 * from: list<mixed>,
27416 * join: list<mixed>,
27417 * where: list<mixed>,
27418 * groupBy: list<mixed>,
27419 * having: list<mixed>,
27420 * order: list<mixed>,
27421 * union: list<mixed>,
27422 * unionOrder: list<mixed>,
27423 * }
27424 * @static
27425 */
27426 public static function getRawBindings()
27427 {
27428 /** @var \Illuminate\Database\Query\Builder $instance */
27429 return $instance->getRawBindings();
27430 }
27431
27432 /**
27433 * Set the bindings on the query builder.
27434 *
27435 * @param list<mixed> $bindings
27436 * @param "select"|"from"|"join"|"where"|"groupBy"|"having"|"order"|"union"|"unionOrder" $type
27437 * @return \Illuminate\Database\Eloquent\Builder<static>
27438 * @throws \InvalidArgumentException
27439 * @static
27440 */
27441 public static function setBindings($bindings, $type = 'where')
27442 {
27443 /** @var \Illuminate\Database\Query\Builder $instance */
27444 return $instance->setBindings($bindings, $type);
27445 }
27446
27447 /**
27448 * Add a binding to the query.
27449 *
27450 * @param mixed $value
27451 * @param "select"|"from"|"join"|"where"|"groupBy"|"having"|"order"|"union"|"unionOrder" $type
27452 * @return \Illuminate\Database\Eloquent\Builder<static>
27453 * @throws \InvalidArgumentException
27454 * @static
27455 */
27456 public static function addBinding($value, $type = 'where')
27457 {
27458 /** @var \Illuminate\Database\Query\Builder $instance */
27459 return $instance->addBinding($value, $type);
27460 }
27461
27462 /**
27463 * Cast the given binding value.
27464 *
27465 * @param mixed $value
27466 * @return mixed
27467 * @static
27468 */
27469 public static function castBinding($value)
27470 {
27471 /** @var \Illuminate\Database\Query\Builder $instance */
27472 return $instance->castBinding($value);
27473 }
27474
27475 /**
27476 * Merge an array of bindings into our bindings.
27477 *
27478 * @param self $query
27479 * @return \Illuminate\Database\Eloquent\Builder<static>
27480 * @static
27481 */
27482 public static function mergeBindings($query)
27483 {
27484 /** @var \Illuminate\Database\Query\Builder $instance */
27485 return $instance->mergeBindings($query);
27486 }
27487
27488 /**
27489 * Remove all of the expressions from a list of bindings.
27490 *
27491 * @param array<mixed> $bindings
27492 * @return list<mixed>
27493 * @static
27494 */
27495 public static function cleanBindings($bindings)
27496 {
27497 /** @var \Illuminate\Database\Query\Builder $instance */
27498 return $instance->cleanBindings($bindings);
27499 }
27500
27501 /**
27502 * Get the database query processor instance.
27503 *
27504 * @return \Illuminate\Database\Query\Processors\Processor
27505 * @static
27506 */
27507 public static function getProcessor()
27508 {
27509 /** @var \Illuminate\Database\Query\Builder $instance */
27510 return $instance->getProcessor();
27511 }
27512
27513 /**
27514 * Get the query grammar instance.
27515 *
27516 * @return \Illuminate\Database\Query\Grammars\Grammar
27517 * @static
27518 */
27519 public static function getGrammar()
27520 {
27521 /** @var \Illuminate\Database\Query\Builder $instance */
27522 return $instance->getGrammar();
27523 }
27524
27525 /**
27526 * Use the "write" PDO connection when executing the query.
27527 *
27528 * @return \Illuminate\Database\Eloquent\Builder<static>
27529 * @static
27530 */
27531 public static function useWritePdo()
27532 {
27533 /** @var \Illuminate\Database\Query\Builder $instance */
27534 return $instance->useWritePdo();
27535 }
27536
27537 /**
27538 * Clone the query without the given properties.
27539 *
27540 * @return static
27541 * @static
27542 */
27543 public static function cloneWithout($properties)
27544 {
27545 /** @var \Illuminate\Database\Query\Builder $instance */
27546 return $instance->cloneWithout($properties);
27547 }
27548
27549 /**
27550 * Clone the query without the given bindings.
27551 *
27552 * @return static
27553 * @static
27554 */
27555 public static function cloneWithoutBindings($except)
27556 {
27557 /** @var \Illuminate\Database\Query\Builder $instance */
27558 return $instance->cloneWithoutBindings($except);
27559 }
27560
27561 /**
27562 * Dump the current SQL and bindings.
27563 *
27564 * @param mixed $args
27565 * @return \Illuminate\Database\Eloquent\Builder<static>
27566 * @static
27567 */
27568 public static function dump(...$args)
27569 {
27570 /** @var \Illuminate\Database\Query\Builder $instance */
27571 return $instance->dump(...$args);
27572 }
27573
27574 /**
27575 * Dump the raw current SQL with embedded bindings.
27576 *
27577 * @return \Illuminate\Database\Eloquent\Builder<static>
27578 * @static
27579 */
27580 public static function dumpRawSql()
27581 {
27582 /** @var \Illuminate\Database\Query\Builder $instance */
27583 return $instance->dumpRawSql();
27584 }
27585
27586 /**
27587 * Die and dump the current SQL and bindings.
27588 *
27589 * @return never
27590 * @static
27591 */
27592 public static function dd()
27593 {
27594 /** @var \Illuminate\Database\Query\Builder $instance */
27595 return $instance->dd();
27596 }
27597
27598 /**
27599 * Die and dump the current SQL with embedded bindings.
27600 *
27601 * @return never
27602 * @static
27603 */
27604 public static function ddRawSql()
27605 {
27606 /** @var \Illuminate\Database\Query\Builder $instance */
27607 return $instance->ddRawSql();
27608 }
27609
27610 /**
27611 * Add a where clause to determine if a "date" column is in the past to the query.
27612 *
27613 * @param array|string $columns
27614 * @return \Illuminate\Database\Eloquent\Builder<static>
27615 * @static
27616 */
27617 public static function wherePast($columns)
27618 {
27619 /** @var \Illuminate\Database\Query\Builder $instance */
27620 return $instance->wherePast($columns);
27621 }
27622
27623 /**
27624 * Add a where clause to determine if a "date" column is in the past or now to the query.
27625 *
27626 * @param array|string $columns
27627 * @return \Illuminate\Database\Eloquent\Builder<static>
27628 * @static
27629 */
27630 public static function whereNowOrPast($columns)
27631 {
27632 /** @var \Illuminate\Database\Query\Builder $instance */
27633 return $instance->whereNowOrPast($columns);
27634 }
27635
27636 /**
27637 * Add an "or where" clause to determine if a "date" column is in the past to the query.
27638 *
27639 * @param array|string $columns
27640 * @return \Illuminate\Database\Eloquent\Builder<static>
27641 * @static
27642 */
27643 public static function orWherePast($columns)
27644 {
27645 /** @var \Illuminate\Database\Query\Builder $instance */
27646 return $instance->orWherePast($columns);
27647 }
27648
27649 /**
27650 * Add a where clause to determine if a "date" column is in the past or now to the query.
27651 *
27652 * @param array|string $columns
27653 * @return \Illuminate\Database\Eloquent\Builder<static>
27654 * @static
27655 */
27656 public static function orWhereNowOrPast($columns)
27657 {
27658 /** @var \Illuminate\Database\Query\Builder $instance */
27659 return $instance->orWhereNowOrPast($columns);
27660 }
27661
27662 /**
27663 * Add a where clause to determine if a "date" column is in the future to the query.
27664 *
27665 * @param array|string $columns
27666 * @return \Illuminate\Database\Eloquent\Builder<static>
27667 * @static
27668 */
27669 public static function whereFuture($columns)
27670 {
27671 /** @var \Illuminate\Database\Query\Builder $instance */
27672 return $instance->whereFuture($columns);
27673 }
27674
27675 /**
27676 * Add a where clause to determine if a "date" column is in the future or now to the query.
27677 *
27678 * @param array|string $columns
27679 * @return \Illuminate\Database\Eloquent\Builder<static>
27680 * @static
27681 */
27682 public static function whereNowOrFuture($columns)
27683 {
27684 /** @var \Illuminate\Database\Query\Builder $instance */
27685 return $instance->whereNowOrFuture($columns);
27686 }
27687
27688 /**
27689 * Add an "or where" clause to determine if a "date" column is in the future to the query.
27690 *
27691 * @param array|string $columns
27692 * @return \Illuminate\Database\Eloquent\Builder<static>
27693 * @static
27694 */
27695 public static function orWhereFuture($columns)
27696 {
27697 /** @var \Illuminate\Database\Query\Builder $instance */
27698 return $instance->orWhereFuture($columns);
27699 }
27700
27701 /**
27702 * Add an "or where" clause to determine if a "date" column is in the future or now to the query.
27703 *
27704 * @param array|string $columns
27705 * @return \Illuminate\Database\Eloquent\Builder<static>
27706 * @static
27707 */
27708 public static function orWhereNowOrFuture($columns)
27709 {
27710 /** @var \Illuminate\Database\Query\Builder $instance */
27711 return $instance->orWhereNowOrFuture($columns);
27712 }
27713
27714 /**
27715 * Add a "where date" clause to determine if a "date" column is today to the query.
27716 *
27717 * @param array|string $columns
27718 * @param string $boolean
27719 * @return \Illuminate\Database\Eloquent\Builder<static>
27720 * @static
27721 */
27722 public static function whereToday($columns, $boolean = 'and')
27723 {
27724 /** @var \Illuminate\Database\Query\Builder $instance */
27725 return $instance->whereToday($columns, $boolean);
27726 }
27727
27728 /**
27729 * Add a "where date" clause to determine if a "date" column is before today.
27730 *
27731 * @param array|string $columns
27732 * @return \Illuminate\Database\Eloquent\Builder<static>
27733 * @static
27734 */
27735 public static function whereBeforeToday($columns)
27736 {
27737 /** @var \Illuminate\Database\Query\Builder $instance */
27738 return $instance->whereBeforeToday($columns);
27739 }
27740
27741 /**
27742 * Add a "where date" clause to determine if a "date" column is today or before to the query.
27743 *
27744 * @param array|string $columns
27745 * @return \Illuminate\Database\Eloquent\Builder<static>
27746 * @static
27747 */
27748 public static function whereTodayOrBefore($columns)
27749 {
27750 /** @var \Illuminate\Database\Query\Builder $instance */
27751 return $instance->whereTodayOrBefore($columns);
27752 }
27753
27754 /**
27755 * Add a "where date" clause to determine if a "date" column is after today.
27756 *
27757 * @param array|string $columns
27758 * @return \Illuminate\Database\Eloquent\Builder<static>
27759 * @static
27760 */
27761 public static function whereAfterToday($columns)
27762 {
27763 /** @var \Illuminate\Database\Query\Builder $instance */
27764 return $instance->whereAfterToday($columns);
27765 }
27766
27767 /**
27768 * Add a "where date" clause to determine if a "date" column is today or after to the query.
27769 *
27770 * @param array|string $columns
27771 * @return \Illuminate\Database\Eloquent\Builder<static>
27772 * @static
27773 */
27774 public static function whereTodayOrAfter($columns)
27775 {
27776 /** @var \Illuminate\Database\Query\Builder $instance */
27777 return $instance->whereTodayOrAfter($columns);
27778 }
27779
27780 /**
27781 * Add an "or where date" clause to determine if a "date" column is today to the query.
27782 *
27783 * @param array|string $columns
27784 * @return \Illuminate\Database\Eloquent\Builder<static>
27785 * @static
27786 */
27787 public static function orWhereToday($columns)
27788 {
27789 /** @var \Illuminate\Database\Query\Builder $instance */
27790 return $instance->orWhereToday($columns);
27791 }
27792
27793 /**
27794 * Add an "or where date" clause to determine if a "date" column is before today.
27795 *
27796 * @param array|string $columns
27797 * @return \Illuminate\Database\Eloquent\Builder<static>
27798 * @static
27799 */
27800 public static function orWhereBeforeToday($columns)
27801 {
27802 /** @var \Illuminate\Database\Query\Builder $instance */
27803 return $instance->orWhereBeforeToday($columns);
27804 }
27805
27806 /**
27807 * Add an "or where date" clause to determine if a "date" column is today or before to the query.
27808 *
27809 * @param array|string $columns
27810 * @return \Illuminate\Database\Eloquent\Builder<static>
27811 * @static
27812 */
27813 public static function orWhereTodayOrBefore($columns)
27814 {
27815 /** @var \Illuminate\Database\Query\Builder $instance */
27816 return $instance->orWhereTodayOrBefore($columns);
27817 }
27818
27819 /**
27820 * Add an "or where date" clause to determine if a "date" column is after today.
27821 *
27822 * @param array|string $columns
27823 * @return \Illuminate\Database\Eloquent\Builder<static>
27824 * @static
27825 */
27826 public static function orWhereAfterToday($columns)
27827 {
27828 /** @var \Illuminate\Database\Query\Builder $instance */
27829 return $instance->orWhereAfterToday($columns);
27830 }
27831
27832 /**
27833 * Add an "or where date" clause to determine if a "date" column is today or after to the query.
27834 *
27835 * @param array|string $columns
27836 * @return \Illuminate\Database\Eloquent\Builder<static>
27837 * @static
27838 */
27839 public static function orWhereTodayOrAfter($columns)
27840 {
27841 /** @var \Illuminate\Database\Query\Builder $instance */
27842 return $instance->orWhereTodayOrAfter($columns);
27843 }
27844
27845 /**
27846 * Explains the query.
27847 *
27848 * @return \Illuminate\Support\Collection
27849 * @static
27850 */
27851 public static function explain()
27852 {
27853 /** @var \Illuminate\Database\Query\Builder $instance */
27854 return $instance->explain();
27855 }
27856
27857 /**
27858 * Register a custom macro.
27859 *
27860 * @param string $name
27861 * @param object|callable $macro
27862 * @param-closure-this static $macro
27863 * @return void
27864 * @static
27865 */
27866 public static function macro($name, $macro)
27867 {
27868 \Illuminate\Database\Query\Builder::macro($name, $macro);
27869 }
27870
27871 /**
27872 * Mix another object into the class.
27873 *
27874 * @param object $mixin
27875 * @param bool $replace
27876 * @return void
27877 * @throws \ReflectionException
27878 * @static
27879 */
27880 public static function mixin($mixin, $replace = true)
27881 {
27882 \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
27883 }
27884
27885 /**
27886 * Flush the existing macros.
27887 *
27888 * @return void
27889 * @static
27890 */
27891 public static function flushMacros()
27892 {
27893 \Illuminate\Database\Query\Builder::flushMacros();
27894 }
27895
27896 /**
27897 * Dynamically handle calls to the class.
27898 *
27899 * @param string $method
27900 * @param array $parameters
27901 * @return mixed
27902 * @throws \BadMethodCallException
27903 * @static
27904 */
27905 public static function macroCall($method, $parameters)
27906 {
27907 /** @var \Illuminate\Database\Query\Builder $instance */
27908 return $instance->macroCall($method, $parameters);
27909 }
27910
27911}
27912 class Event extends \Illuminate\Support\Facades\Event {}
27913 class File extends \Illuminate\Support\Facades\File {}
27914 class Gate extends \Illuminate\Support\Facades\Gate {}
27915 class Hash extends \Illuminate\Support\Facades\Hash {}
27916 class Http extends \Illuminate\Support\Facades\Http {}
27917 class Js extends \Illuminate\Support\Js {}
27918 class Lang extends \Illuminate\Support\Facades\Lang {}
27919 class Log extends \Illuminate\Support\Facades\Log {}
27920 class Mail extends \Illuminate\Support\Facades\Mail {}
27921 class Notification extends \Illuminate\Support\Facades\Notification {}
27922 class Number extends \Illuminate\Support\Number {}
27923 class Password extends \Illuminate\Support\Facades\Password {}
27924 class Process extends \Illuminate\Support\Facades\Process {}
27925 class Queue extends \Illuminate\Support\Facades\Queue {}
27926 class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
27927 class Redirect extends \Illuminate\Support\Facades\Redirect {}
27928 class Request extends \Illuminate\Support\Facades\Request {}
27929 class Response extends \Illuminate\Support\Facades\Response {}
27930 class Route extends \Illuminate\Support\Facades\Route {}
27931 class Schedule extends \Illuminate\Support\Facades\Schedule {}
27932 class Schema extends \Illuminate\Support\Facades\Schema {}
27933 class Session extends \Illuminate\Support\Facades\Session {}
27934 class Storage extends \Illuminate\Support\Facades\Storage {}
27935 class Str extends \Illuminate\Support\Str {}
27936 class Uri extends \Illuminate\Support\Uri {}
27937 class URL extends \Illuminate\Support\Facades\URL {}
27938 class Validator extends \Illuminate\Support\Facades\Validator {}
27939 class View extends \Illuminate\Support\Facades\View {}
27940 class Vite extends \Illuminate\Support\Facades\Vite {}
27941}
27942
27943
27944
27945
27946