mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-04-22 10:52:14 +00:00
Ajout des pages d'erreurs
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
fc264552ca
commit
6823605d6f
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CA_Laravel extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->view('view.name');
|
||||
}
|
||||
}
|
22
resources/views/errors/404.blade.php
Normal file
22
resources/views/errors/404.blade.php
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Erreur</title>
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap" rel="stylesheet">
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ asset('css/style.css') }}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
@include('header')
|
||||
</header>
|
||||
|
||||
<h1>Page non trouvé !</h1>
|
||||
</body>
|
||||
|
||||
</html>
|
24
resources/views/errors/500.blade.php
Normal file
24
resources/views/errors/500.blade.php
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Erreur</title>
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap" rel="stylesheet">
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ asset('css/style.css') }}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
@include('header')
|
||||
</header>
|
||||
|
||||
<h1>Une erreur est arrivée !</h1>
|
||||
|
||||
<h3>{{ $exception->getMessage() }}</h3>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user