35 lines
676 B
Markdown
35 lines
676 B
Markdown
---
|
|
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
|
|
``` |