Config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool has(string $key)
  5. * @method static mixed get(array|string $key, mixed $default = null)
  6. * @method static array getMany(array $keys)
  7. * @method static string string(string $key, \Closure|string|null $default = null)
  8. * @method static int integer(string $key, \Closure|int|null $default = null)
  9. * @method static float float(string $key, \Closure|float|null $default = null)
  10. * @method static bool boolean(string $key, \Closure|bool|null $default = null)
  11. * @method static array array(string $key, \Closure|array|null $default = null)
  12. * @method static \Illuminate\Support\Collection collection(string $key, \Closure|array|null $default = null)
  13. * @method static void set(array|string $key, mixed $value = null)
  14. * @method static void prepend(string $key, mixed $value)
  15. * @method static void push(string $key, mixed $value)
  16. * @method static array all()
  17. * @method static void macro(string $name, object|callable $macro)
  18. * @method static void mixin(object $mixin, bool $replace = true)
  19. * @method static bool hasMacro(string $name)
  20. * @method static void flushMacros()
  21. *
  22. * @see \Illuminate\Config\Repository
  23. */
  24. class Config extends Facade
  25. {
  26. /**
  27. * Get the registered name of the component.
  28. *
  29. * @return string
  30. */
  31. protected static function getFacadeAccessor()
  32. {
  33. return 'config';
  34. }
  35. }