From 1e78a8e6d923679b0326eb6f1630f43dd8791d56 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Mon, 31 Aug 2020 23:20:53 +0100 Subject: [PATCH] Use app name --- .env.example | 3 +++ config/app.php | 13 ++++++++++++ resources/views/breadcrumbs/header.blade.php | 10 ++++----- tests/Feature/OptionsTest.php | 22 ++++++++++++++++++++ 4 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 tests/Feature/OptionsTest.php diff --git a/.env.example b/.env.example index 62d733c..48adfd8 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,9 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost +# This can be your main homepage, other than this site itself +APP_SITEHOMEPAGE="" + LOG_CHANNEL=stack DB_CONNECTION=mysql diff --git a/config/app.php b/config/app.php index bcd24bf..96e5484 100644 --- a/config/app.php +++ b/config/app.php @@ -15,6 +15,19 @@ return [ 'name' => env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Homepage + |-------------------------------------------------------------------------- + | + | This value is the application's homepage. + | If you have a main website other than this application itself, you can link it here. + | It will be used exclusively on the "Homepage" header menu. + | + */ + 'sitehomepage' => env('APP_SITEHOMEPAGE', 'https://google.com'), + /* |-------------------------------------------------------------------------- | Application Environment diff --git a/resources/views/breadcrumbs/header.blade.php b/resources/views/breadcrumbs/header.blade.php index d2099da..cda3993 100644 --- a/resources/views/breadcrumbs/header.blade.php +++ b/resources/views/breadcrumbs/header.blade.php @@ -10,6 +10,7 @@ + {{config('app.name')}} | Home @@ -43,7 +44,7 @@