§8
Validator rules
Rejected
@php,<?php,<?=;@inject,@eval,@use,@aware,@props,@livewire,@verbatim- Laravel facades (
DB::,Auth::,Config::…), class names andnew - Functions that reach the core (
app(),config(),env(),request(),session(),auth(),view()…) and file / process / network functions (file_get_contents,exec,curl_*…) include/require, superglobals ($_SERVER…),$__env, backticks- Raw output with
{!! !!}. Only these are allowed:$page['head'],site_component(...),theme_icon('…')and server fields whose name ends with_html(body_html,description_html,consent_html; the core sanitises them on save and on render). - Calling views outside
includes/(@include('admin::…'),@extends) - Inline
<script>…</script>,on…=event attributes,javascript:addresses. Scripts are loaded fromassets/jsfiles with<script src>. - A missing required file or hook; symbolic links; server configuration files; executable files anywhere including
assets/(excepttheme.php,language.php,languages/*.php) - Code other than an array in
language.php/languages/*.php; an invalid key (lowercase letters, digits,_,.) or empty text
The validator's purpose is to close the known ways a theme could escape the presentation layer. Static checks cannot stop malicious code with certainty; the real guarantee is the signed package and the administrator's approval. The exact messages the validator shows are listed on the Validator messages page.