Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Nova Publishable

Laravel Nova Publishable Laravel Package

novius/laravel-nova-publishable

A Laravel Nova package for adding publishable behaviour to Eloquent models, with fields and actions to publish, unpublish, and schedule content. Includes status handling, query scopes, and Nova resource integration for managing visibility dates.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Laravel Nova Publishable
What is novius/laravel-nova-publishable used for?
It is a Laravel Nova package that adds publishable behaviour to Eloquent models. It provides Nova fields and actions to publish, unpublish, and schedule content, along with status handling and query scopes. It is useful when a Nova resource needs managed visibility dates instead of a simple boolean flag.
How do I install novius/laravel-nova-publishable?
Install it with Composer, usually by running composer require novius/laravel-nova-publishable in your Laravel project. Then follow the repository README for the required model trait or contract, database columns, and Nova field/action registration. Because it is a Nova package, confirm that your installed Laravel Nova version matches the package constraints.
Which Laravel and Laravel Nova versions does this package support?
The provided overview does not list exact version constraints. Check the package composer.json and README for the supported Laravel and Nova versions before installing. For production upgrades, pin a compatible package version and run your test suite against your Laravel and Nova versions.
How do I add publishable behaviour to an Eloquent model?
Add the package's publishable trait or contract to the Eloquent model and ensure the model has the visibility date columns expected by the package. Then expose the package fields and actions in the corresponding Nova resource. The exact trait name and column requirements are documented in the README.
Can I schedule content to publish at a future date?
Yes, scheduling is one of the package's stated features. The Nova fields and actions let editors set visibility dates so content can be published later. Your application queries should use the package scopes and status handling so scheduled items are not treated as publicly visible early.
What query scopes are included for published and unpublished content?
The package includes query scopes for working with publish status and visibility dates. They let you filter Eloquent queries for published, unpublished, or scheduled records in your application code. Use the README to confirm the exact scope names available in your installed version.
Can I use the publishable scopes outside Laravel Nova?
Yes, the publishable behaviour and query scopes are Eloquent-level features, so they can be used in controllers, APIs, and other application queries. Nova fields and actions only provide the admin UI for managing the dates. You still need to apply the package setup to the model.
How should I test publishing, unpublishing, and scheduled visibility?
Create model records with different visibility dates and assert that your application queries return the expected published, unpublished, or scheduled results. Test the underlying model status and scopes directly, and use Nova testing helpers if you need to cover the Nova actions. Freeze or travel time in Laravel tests when asserting date-based behaviour.
Is novius/laravel-nova-publishable suitable for production use?
It is a Novius package intended for Laravel Nova applications, but production suitability depends on your Laravel and Nova versions and the package's current release state. Review the repository issues, releases, and composer constraints, then test it in staging. Pin the version you validate and monitor updates.
What are alternatives to using this package?
You can implement a published_at column, status logic, Eloquent scopes, and Nova date fields and actions yourself. Other publishable or scheduling packages may also fit, depending on whether you need Nova-specific actions. Choose novius/laravel-nova-publishable when you want ready-made Nova integration for publish, unpublish, schedule, status, and query scopes.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console