Init
This commit is contained in:
35
Career/Others/Nicer Maintenance Mode.md
Normal file
35
Career/Others/Nicer Maintenance Mode.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
created: 2025-03-12 14:12
|
||||
updated: 2025-07-04 07:25
|
||||
tags:
|
||||
- Laravel
|
||||
---
|
||||
|
||||
|
||||
```bash
|
||||
php artisan down --render="errors::maintenance"
|
||||
```
|
||||
|
||||
```bash
|
||||
php artisan vendor:publish --tag=laravel-errors
|
||||
```
|
||||
|
||||
```
|
||||
touch ./resources/views/errors/maintenance.blade.php
|
||||
```
|
||||
|
||||
``` php maintenance.blade.php
|
||||
@extends('errors.minimal')
|
||||
|
||||
@section('title', __('Planned Maintenance'))
|
||||
@section('message', __('Planned Maintenance'))
|
||||
@section('description', __('We will be back in a few minutes.'))
|
||||
```
|
||||
|
||||
``` php minimal.blade.php
|
||||
@hasSection('code')
|
||||
<div class="px-4 text-lg text-gray-500 border-r border-gray-400 tracking-wider">
|
||||
@yield('code')
|
||||
</div>
|
||||
@endif
|
||||
```
|
||||
Reference in New Issue
Block a user