On this page
Return to top

HTTP Controllers

Sample documentation (demo only)
This is an incomplete, outdated docs snapshot shipped with the playground — screenshots were removed on purpose.
For the full, current manuals go to voodflow.com/docs.

Voodflow\Voodbuilder\Http\Controllers\AccountController

  • File: Http/Controllers/AccountController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Account.

Methods

  • public function __invoke(): View
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\Admin\LicenseStatusController

  • File: Http/Controllers/Admin/LicenseStatusController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: Stable JSON API for a future Filament licenses dashboard plugin.

Methods

  • public function status(EntitlementManager $manager): JsonResponse
    • Status.
  • public function refresh(EntitlementManager $manager): JsonResponse
    • Refresh.

Voodflow\Voodbuilder\Http\Controllers\AuthController

  • File: Http/Controllers/AuthController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Auth.

Methods

  • public function showLogin(): View|RedirectResponse
    • Show Login.
  • public function login(Request $request): RedirectResponse
    • Login.
  • public function showRegister(): View|RedirectResponse
    • Show Register.
  • public function register(Request $request): RedirectResponse
    • Register routes, blocks, channels, and bindings for this module.
  • public function logout(Request $request): RedirectResponse
    • Logout.
  • protected function redirectAfterAuth(): string
    • Redirect After Auth.

Voodflow\Voodbuilder\Http\Controllers\ChromeLayoutEditorController

  • File: Http/Controllers/ChromeLayoutEditorController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Chrome Layout Editor.

Methods

  • public function show(ChromeLayout $chromeLayout): View
    • Show.

Voodflow\Voodbuilder\Http\Controllers\EditorBindingsController

  • File: Http/Controllers/EditorBindingsController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Bindings.

Methods

  • public function __invoke(): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorBindingsPreviewController

  • File: Http/Controllers/EditorBindingsPreviewController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Bindings Preview.

Methods

  • public function __invoke(Request $request, SitePage $sitePage): JsonResponse
    • Invoke.
  • protected function listPreviewValues(Request $request, SitePage $sitePage, BindingRegistry $registry): array
    • List Preview Values.
  • protected function repeatConfigsFromRequest(Request $request, ModelIntegrationRegistry $integrations): array
    • Repeat Configs From Request.
  • public static function normalizeFilters(mixed $filters): array
    • Normalize Filters.
  • public static function listValuesKey( string $repeatKey, string $sort, string $dir, int $offset = 0, array $filters = [], ): string
    • List Values Key.
  • protected function normalizePreviewValue(string $value, string $fieldType): string
    • Normalize Preview Value.

Voodflow\Voodbuilder\Http\Controllers\EditorBlockRenderController

  • File: Http/Controllers/EditorBlockRenderController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Block Render.

Methods

  • public function __invoke(Request $request): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorBlocksController

  • File: Http/Controllers/EditorBlocksController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Blocks.

Methods

  • public function __invoke(): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorChromeLayoutController

  • File: Http/Controllers/EditorChromeLayoutController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Chrome Layout.

Methods

  • public function update(Request $request, ChromeLayout $chromeLayout): JsonResponse
    • Update.

Voodflow\Voodbuilder\Http\Controllers\EditorCodeHighlightController

  • File: Http/Controllers/EditorCodeHighlightController.php
  • Kind: class
  • Responsibility: HTTP controller: Editor Code Highlight.

Methods

  • public function __invoke(Request $request): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorCompileCssController

  • File: Http/Controllers/EditorCompileCssController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: Canvas Tailwind JIT for the page/component editor.

Methods

  • public function __invoke(Request $request): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorFormController

  • File: Http/Controllers/EditorFormController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Form.

Methods

  • public function __invoke(Request $request, SitePage $sitePage): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorLinkTargetsController

  • File: Http/Controllers/EditorLinkTargetsController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Link Targets.

Methods

  • public function __invoke(Request $request): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorMediaPreviewController

  • File: Http/Controllers/EditorMediaPreviewController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Media Preview.

Methods

  • public function __invoke(Request $request, int $media): BinaryFileResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\EditorPageController

  • File: Http/Controllers/EditorPageController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Page.

Methods

  • public function update(Request $request, SitePage $sitePage): JsonResponse
    • Update.

Voodflow\Voodbuilder\Http\Controllers\EditorPageRevisionsController

  • File: Http/Controllers/EditorPageRevisionsController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Page Revisions.

Methods

  • public function index(SitePage $sitePage): JsonResponse
    • Index.
  • public function autosave(Request $request, SitePage $sitePage): JsonResponse
    • Park the current editor state without publishing it.
  • public function discardAutosaves(SitePage $sitePage): JsonResponse
    • Drop the safety net once the author no longer needs it.
  • public function restore(Request $request, SitePage $sitePage, SitePageRevision $revision): JsonResponse
    • Restore.

Voodflow\Voodbuilder\Http\Controllers\EditorPageTemplatesController

  • File: Http/Controllers/EditorPageTemplatesController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Editor Page Templates.

Methods

  • public function index(): JsonResponse
    • Index.
  • public function store(Request $request): JsonResponse
    • Store.
  • public function destroy(PageTemplate $pageTemplate): JsonResponse
    • Destroy.
  • public function import(Request $request): JsonResponse
    • Import.
  • public function importFromUrl(Request $request): JsonResponse
    • Import From Url.
  • public function catalog(): JsonResponse
    • Catalog.
  • public function installCatalogEntry(Request $request): JsonResponse
    • Install Catalog Entry.
  • public function export(Request $request): JsonResponse
    • Export.
  • protected function persistEntries(array $entries): array
    • Persist Entries.
  • protected static function toArray(PageTemplate $template): array
    • Convert / serialize via toArray.

Voodflow\Voodbuilder\Http\Controllers\HomeController

  • File: Http/Controllers/HomeController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Home.

Methods

  • public function __invoke(Request $request): View|RedirectResponse
    • Invoke.
  • protected function resolvedHomeLocale(): ?string
    • Resolved Home Locale.

Voodflow\Voodbuilder\Http\Controllers\NavigationMenuPreviewController

  • File: Http/Controllers/NavigationMenuPreviewController.php
  • Kind: class
  • Responsibility: HTTP controller: Navigation Menu Preview.

Methods

  • public function __invoke(NavigationMenu $navigationMenu): View
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\SearchController

  • File: Http/Controllers/SearchController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Search.

Methods

  • public function __invoke(Request $request): View
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\SearchSuggestController

  • File: Http/Controllers/SearchSuggestController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: JSON suggestions for the header search palette.

Methods

  • public function __invoke(Request $request): JsonResponse
    • Invoke.

Voodflow\Voodbuilder\Http\Controllers\SitePageController

  • File: Http/Controllers/SitePageController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: HTTP controller: Site Page.

Methods

  • public function show(Request $request, string $slug): View
    • Show.

Voodflow\Voodbuilder\Http\Controllers\SitePageUnlockController

  • File: Http/Controllers/SitePageUnlockController.php
  • Kind: class
  • Extends: Controller
  • Responsibility: Unlock a password-protected site page for the current session.

Methods

  • public function __invoke(Request $request, string $slug): RedirectResponse
    • Invoke.
Demo resets in 00:29:43