From 25f3175a9265d6574a79354e3b69a4abd10fed77 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Mon, 24 Feb 2020 10:43:17 +0100 Subject: [PATCH] - add php_info route for testing php settings (/info) --- app/Http/Controllers/Frontend/HomeController.php | 5 +++++ routes/web.php | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/Http/Controllers/Frontend/HomeController.php b/app/Http/Controllers/Frontend/HomeController.php index df22341..6a63318 100644 --- a/app/Http/Controllers/Frontend/HomeController.php +++ b/app/Http/Controllers/Frontend/HomeController.php @@ -121,4 +121,9 @@ class HomeController extends Controller throw new GeneralException(trans('exceptions.backend.access.pages.not_found')); } } + + public function php_info() + { + dd(phpinfo()); + } } diff --git a/routes/web.php b/routes/web.php index bad3d58..6cedf0d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -453,6 +453,9 @@ Route::group(['namespace' => 'Frontend', 'as' => 'frontend.'], function () { Route::get('/help', [ 'as' => 'home.help', 'uses' => 'HomeController@help', ]); + Route::get('/info', [ + 'as' => 'home.php_info', 'uses' => 'HomeController@php_info', + ]); //=================================================Crawlers==================================================== Route::get('sitelinks', [