framework icon indicating copy to clipboard operation
framework copied to clipboard

feat: [#546] artisan command up and down to set website Maintenance mode

Open praem90 opened this issue 5 months ago • 4 comments

📑 Description

This PR adds two Artisan commands

  1. Up
  2. Down
go run . artisan down
go run . artisan up

The down commands creates a temporary file in the framework storage folder The up commands removes that file if exists

There is an another middleware CheckForMaintenance, that checks for the file. It returns the request with 503 status code if the file exists else allow the request to passthrough.

Closes https://github.com/goravel/goravel/issues/546

✅ Checks

  • [ x ] Added test cases for my code

praem90 avatar Sep 14 '25 15:09 praem90