Download the PHP package contrainteractive/content-scheduler without Composer
On this page you can find all versions of the php package contrainteractive/content-scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package content-scheduler
Installation
You can install the package via composer:
Once the package is installed, you should publish the migration files and run the migration:
The Content Scheduler pkg provides a convenient way to associate and manage scheduling information with any Eloquent model:
- A polymorphic relationship to a ContentSchedule record.
- Helpful accessors for scheduled/actual publish/unpublish timestamps.
- Methods to quickly check whether the model is published, unpublished, scheduled, or canceled.
- Query scopes for filtering by schedule status.
- Scheduled job/command to publish or unpublish the model at the appropriate time.
Usage
Your Eloquent models should use the ContraInteractive\ContentScheduler\Traits\Schedulable
trait and the ContraInteractive\ContentScheduler\Traits\HasScheduling
class.
Here's an example of how to implement the traits:
Scheduling a Model
Then in your bootstrap/app.php
(assuming Laravel 11.x)
More information on scheduled commands can be found in the official documentation.
More Usage Examples
Query Scopes
All versions of content-scheduler with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^10.0|^11.0
The package contrainteractive/content-scheduler contains the following files
Loading the files please wait ....