diff --git a/.env.example b/.env.example index 9bb1bd7c..c8e87077 100755 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost - +BACKEND_URI=admin LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug diff --git a/config/backpack/base.php b/config/backpack/base.php index a51889a8..cd5ed9b6 100755 --- a/config/backpack/base.php +++ b/config/backpack/base.php @@ -174,7 +174,7 @@ // The prefix used in all base routes (the 'admin' in admin/dashboard) // You can make sure all your URLs use this prefix by using the backpack_url() helper instead of url() - 'route_prefix' => 'admin', + 'route_prefix' => env('BACKEND_URI','admin'), // The web middleware (group) used in all base & CRUD routes // If you've modified your "web" middleware group (ex: removed sessions), you can use a different diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index dd6a45db..8f9a250f 100755 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,132 +1,16 @@ - - - - - +@extends('errors.layout') - Laravel +@php + $error_number = 403; +@endphp - - +@section('title') + Forbidden. +@endsection - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- - - - - -
- -
-
-
- - -
-
- Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. -
-
-
- -
-
- - -
- -
-
- Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. -
-
-
- -
-
- - -
- -
-
- Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. -
-
-
- -
-
- -
Vibrant Ecosystem
-
- -
-
- Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. -
-
-
-
-
- -
-
-
- - - - - - Shop - - - - - - - - Sponsor - -
-
- -
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- - +@section('description') + @php + $default_error_message = "Please go back or return to our homepage."; + @endphp + {!! isset($exception)? ($exception->getMessage()?e($exception->getMessage()):$default_error_message): $default_error_message !!} +@endsection