framework
framework copied to clipboard
feat: [#546] artisan command up and down to set website Maintenance mode
📑 Description
This PR adds two Artisan commands
- Up
- 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