Issue #514 fixed
This commit is contained in:
parent
91b8bfeba2
commit
2d1a816349
|
|
@ -33,15 +33,6 @@ class Handler extends ExceptionHandler
|
|||
} else if ($exception instanceof PDOException) {
|
||||
return $this->response($path, 500);
|
||||
}
|
||||
// else if ($exception instanceof ErrorException) {
|
||||
|
||||
// if (strpos($_SERVER['REQUEST_URI'], 'admin') !== false) {
|
||||
// return response()->view('admin::errors.500', [], 500);
|
||||
// }else {
|
||||
// return response()->view('shop::errors.500', [], 500);
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,4 +10,14 @@ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|||
class Controller extends BaseController
|
||||
{
|
||||
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function redirectToLogin()
|
||||
{
|
||||
return redirect()->route('admin.session.create');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
Route::group(['middleware' => ['web']], function () {
|
||||
Route::prefix('admin')->group(function () {
|
||||
|
||||
Route::get('/', 'Webkul\Admin\Http\Controllers\Controller@redirectToLogin');
|
||||
|
||||
// Login Routes
|
||||
Route::get('/login', 'Webkul\User\Http\Controllers\SessionController@create')->defaults('_config', [
|
||||
'view' => 'admin::users.sessions.create'
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@extends('admin::layouts.content')
|
||||
@extends(auth()->guard('admin')->check() ? 'admin::layouts.master' : 'shop::layouts.master')
|
||||
|
||||
@section('page_title')
|
||||
{{ __('admin::app.error.401.page-title') }}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@section('content-wrapper')
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@extends('admin::layouts.content')
|
||||
@extends(auth()->guard('admin')->check() ? 'admin::layouts.master' : 'shop::layouts.master')
|
||||
|
||||
@section('page_title')
|
||||
{{ __('admin::app.error.403.page-title') }}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@section('content-wrapper')
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
@extends('admin::layouts.content')
|
||||
@extends(auth()->guard('admin')->check() ? 'admin::layouts.master' : 'shop::layouts.master')
|
||||
|
||||
@section('page_title')
|
||||
{{ __('admin::app.error.404.page-title') }}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
@section('content-wrapper')
|
||||
<div class="error-container" style="padding: 40px; width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@extends('admin::layouts.content')
|
||||
@extends(auth()->guard('admin')->check() ? 'admin::layouts.master' : 'shop::layouts.master')
|
||||
|
||||
@section('page_title')
|
||||
{{ __('admin::app.error.500.page-title') }}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@section('content-wrapper')
|
||||
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue