- What does novius/laravel-nova-field-preview do?
- It is a Laravel Nova field that lets you open the front preview URL of a resource from within Nova. Its blurb describes live previews so editors can see how content will look before saving. It is designed to be simple to configure and integrate into existing Nova forms.
- How do I install novius/laravel-nova-field-preview?
- Install it with Composer using composer require novius/laravel-nova-field-preview. Then follow the package README for any Nova asset registration, configuration, or publishing steps. The provided context does not include the exact installation commands beyond the Composer name, so check the repository for the current instructions.
- How do I add the preview field to a Laravel Nova resource?
- Add the package's preview field to the fields method of your Nova resource and configure it with the front preview URL for that resource. The package is intended to integrate into existing Nova forms without changing your resource structure. Refer to the README for the exact field class name and configuration methods.
- Does this package support Laravel Nova 4 and Nova 5?
- The provided context does not specify which Laravel Nova versions are supported. Check the package's composer.json and README for Nova version constraints before installing. If your Nova version is not listed, test the field in a development environment first.
- What Laravel and PHP versions are supported?
- The provided context does not include Laravel or PHP version constraints. Review the package's composer.json on GitHub for the required PHP version and Laravel framework constraints. That will tell you whether it matches your application's current stack.
- Can editors see how content will look before saving?
- Yes, the package is described as adding live previews that let editors see how content will look before saving. The preview field opens the front preview URL configured for the resource. The exact preview behavior depends on the front-end route or URL you provide.
- How do I configure the front preview URL?
- You configure the Nova field with the front preview URL for the resource, and the field then lets editors open that URL from Nova. The provided context does not include exact method names or configuration keys. Check the README for the field's URL configuration API.
- Does the preview field work on Nova index, detail, and form pages?
- The context describes a Laravel Nova field for opening a resource's front preview URL and integrating into Nova forms. It does not specify whether the field appears on index, detail, or form views. Verify the supported views in the README or by testing the field on your resource.
- How should I test the preview field in a Laravel app?
- Add the field to a test Nova resource, configure a known front preview URL, and open the preview from the Nova UI. Confirm that the link resolves and that editors can see the expected front-end page. Also test any authentication or unpublished-content scenarios that apply to your front end.
- Is novius/laravel-nova-field-preview maintained and safe for production?
- The provided context does not include maintenance details, release history, or compatibility guarantees. Check the GitHub repository for recent commits, open issues, and tagged releases before adopting it. In production, also ensure preview URLs are accessible only to the editors who should see them.