Skip to main content

Overview

Default webstore.

Assigning channels to models.

You can assign Eloquent models to different channels and specify whether they are enabled permanently or whether they should be scheduled to be enabled. In order to add this kind of functionality to your model, you need to add the HasChannels trait.
When add this trait, you will have access to the scheduleChannel method:
There is also a channel scope available to models which use this trait: