Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Holidays

LicenseStableDownloadsPHPIssuesMerge Requests

Description

Holidays manages annual holiday calendars and working-day overrides for Laravel Enso.

The package exposes endpoints for listing available years, showing all holidays for a selected year, and toggling individual days between holiday and working-day status.

It is a small administrative package intended to support date-aware business rules in Enso applications.

Installation

Install the package:

composer require laravel-enso/holidays

Run the package migrations:

php artisan migrate

Features

  • Year index endpoint for available holiday calendars.
  • Holiday list endpoint grouped by year.
  • Toggle endpoint for marking a holiday as a working day or restoring it.
  • API resources for normalized year and holiday payloads.

Usage

The package mounts its routes under holidays.*.

Each holiday resource exposes:

  • formatted date
  • numeric month
  • name
  • description
  • isWorkingDay

API

HTTP routes

  • GET api/holidays
  • GET api/holidays/{year}
  • PATCH api/holidays/{holiday}/toggle

Models

  • LaravelEnso\\Holidays\\Models\\Holiday
  • LaravelEnso\\Holidays\\Models\\HolidayYear

Depends On

The package does not require additional Enso backend packages beyond the host Laravel application.

Companion frontend package:

  • @enso-ui/holidays ↗

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

Edit this page on GitHub
Last Updated: 4/20/2026, 6:07:33 PM
Prev
Helpers
Next
How-to