mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
change maintenance mode page
This commit is contained in:
@@ -29,8 +29,9 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
* @param \Exception $exception
|
||||
* @param \Exception $exception
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public function report(Exception $exception)
|
||||
{
|
||||
@@ -46,6 +47,12 @@ class Handler extends ExceptionHandler
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
{
|
||||
|
||||
if ($exception instanceof \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException) {
|
||||
return response()
|
||||
->view('pages.errors.maintenance');
|
||||
}
|
||||
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,8 +12,7 @@ class UpdateOrderStepController
|
||||
* @param int $companyId
|
||||
* @param Request $request
|
||||
* @param UpdateOrderStepLogic $logic
|
||||
* @return \App\Models\Order|null
|
||||
* @throws \App\Classes\Modules\ControllerLogic\Exceptions\InternalServerErrorException
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function create(int $companyId, Request $request, UpdateOrderStepLogic $logic){
|
||||
return $logic->execute($companyId, $request);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
@@ -0,0 +1,32 @@
|
||||
@extends('layouts.base')
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex justify-content-center full-height full-width align-items-center">
|
||||
<div class="error-container text-center">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<img src="{{asset('images/maintenance.png')}}" class="w-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="bold all-caps text-primary">The site is currently down for maintenance</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<p class="fs-15 bold all-caps m-b-5 hint-text">We apologize for any inconvenience caused.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<p class="bold all-caps hint-text">We will be back soon.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user