lunarphp / livewire-starter-kit

Demonstration store for Lunar
https://docs.lunarphp.io/core/starter-kits.html
155 stars 51 forks source link

Missing Sale Collection #14

Closed glennjacobs closed 2 years ago

glennjacobs commented 2 years ago

The homepage looks for a sale collection, but we don't seed one. Maybe we should be for completeness?

e.g.

    /**
     * Return the sale collection.
     *
     * @return void
     */
    public function getSaleCollectionProperty()
    {
        return Url::whereElementType(Collection::class)->whereSlug('sale')->first()?->element;
    }