Vite.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static array preloadedAssets()
  5. * @method static string|null cspNonce()
  6. * @method static string useCspNonce(string|null $nonce = null)
  7. * @method static \Illuminate\Foundation\Vite useIntegrityKey(string|false $key)
  8. * @method static \Illuminate\Foundation\Vite withEntryPoints(array $entryPoints)
  9. * @method static \Illuminate\Foundation\Vite useManifestFilename(string $filename)
  10. * @method static \Illuminate\Foundation\Vite createAssetPathsUsing(void $resolver)
  11. * @method static string hotFile()
  12. * @method static \Illuminate\Foundation\Vite useHotFile(string $path)
  13. * @method static \Illuminate\Foundation\Vite useBuildDirectory(string $path)
  14. * @method static \Illuminate\Foundation\Vite useScriptTagAttributes(callable|array $attributes)
  15. * @method static \Illuminate\Foundation\Vite useStyleTagAttributes(callable|array $attributes)
  16. * @method static \Illuminate\Foundation\Vite usePreloadTagAttributes(callable|array|false $attributes)
  17. * @method static \Illuminate\Support\HtmlString|void reactRefresh()
  18. * @method static string asset(string $asset, string|null $buildDirectory = null)
  19. * @method static string content(string $asset, string|null $buildDirectory = null)
  20. * @method static string|null manifestHash(string|null $buildDirectory = null)
  21. * @method static bool isRunningHot()
  22. * @method static string toHtml()
  23. * @method static void macro(string $name, object|callable $macro)
  24. * @method static void mixin(object $mixin, bool $replace = true)
  25. * @method static bool hasMacro(string $name)
  26. * @method static void flushMacros()
  27. *
  28. * @see \Illuminate\Foundation\Vite
  29. */
  30. class Vite extends Facade
  31. {
  32. /**
  33. * Get the registered name of the component.
  34. *
  35. * @return string
  36. */
  37. protected static function getFacadeAccessor()
  38. {
  39. return \Illuminate\Foundation\Vite::class;
  40. }
  41. }