Skip to content

Commit

Permalink
[5.7] 403 Exception view update (#26002)
Browse files Browse the repository at this point in the history
* Changed the sentence of error 403 view from unauthorized to forbidden to be more precise. Unauthorized refers to erro 401 specifically.

* Added error 401 Exception view with unauthorised sentence
  • Loading branch information
adrianopedro authored and taylorotwell committed Oct 8, 2018
1 parent d1be6e4 commit be46423
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Foundation/Exceptions/views/401.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@extends('errors::illustrated-layout')

@section('code', '401')
@section('title', __('Unauthorized'))

@section('image')
<div style="background-image: url('/svg/403.svg');" class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
</div>
@endsection

@section('message', __('Sorry, you are not authorized to access this page.'))
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Exceptions/views/403.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@extends('errors::illustrated-layout')

@section('code', '403')
@section('title', __('Unauthorized'))
@section('title', __('Forbidden'))

@section('image')
<div style="background-image: url('/svg/403.svg');" class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
</div>
@endsection

@section('message', __('Sorry, you are not authorized to access this page.'))
@section('message', __('Sorry, you are forbidden to access this page.'))

0 comments on commit be46423

Please sign in to comment.