Using render hooks
To use a render hook, you can callNovaView::registerRenderHook() from a service provider or middleware. The first argument is the name of the render hook and the second argument is a callback that returns the content to be rendered:
AddonServiceProvider.php
AddonServiceProvider.php
Available render hooks
admin::body.start- After the opening<body>tag of the admin systemadmin::body.end- Before the closing</body>tag of the admin systemadmin::content.start- Before the admin page content, inside<main>admin::content.end- After the admin page content, inside<main>admin::footer.start- Before the admin page footer, inside<footer>admin::footer.end- After the admin page footer, inside<footer>admin::scripts.before- Before the admin scripts are called at the end of the<body>tagadmin::scripts.after- After the admin scripts are called at the end of the<body>tagadmin::head-scripts.before- Before the admin scripts are called in the<head>tagadmin::head-scripts.after- After the admin scripts are called in the<head>tagadmin::styles.before- Before the admin styles are called in the<head>tagadmin::styles.after- After the admin styles are called in the<head>tagauth::login.form.before- Before the login formauth::login.form.after- After the login formpublic::body.start- After the opening<body>tag of the public pagespublic::body.end- Before the closing</body>tag of the public pagespublic::content.start- Before public page content, inside<main>public::content.end- After public page content, inside<main>public::footer.start- Before the public page footer, inside<footer>public::footer.end- After the public page footer, inside<footer>