Update tenant-maintenance-mode.blade.md (#153)

Add documentation to remove tenant from maintainance mode.
This commit is contained in:
Piyush Manolkar 2022-02-25 20:10:47 +05:30 committed by GitHub
parent ac23db540d
commit 0d66cd00cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,11 @@ This will let you use the following method on each tenant object:
$tenant->putDownForMaintenance(); $tenant->putDownForMaintenance();
``` ```
To remove specific tenant from maintainance mode:
```php
$tenant->update(['maintenance_mode' => null]);
```
## Middleware {#middleware} ## Middleware {#middleware}
You will also need to use the `Stancl\Tenancy\Middleware\CheckTenantForMaintenanceMode` middleware on your tenant routes. You will also need to use the `Stancl\Tenancy\Middleware\CheckTenantForMaintenanceMode` middleware on your tenant routes.