From 0b44d10f06528c6a26ec2d674078b7420849a6b0 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Sun, 18 Dec 2016 02:47:24 +0100 Subject: [PATCH] Make application name configurable and add repo URL --- .env.example | 3 +++ config/app.php | 22 ++++++++++++++++++++++ resources/views/main.blade.php | 17 +++++++++-------- resources/views/welcome.blade.php | 2 +- 4 files changed, 35 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index f7d30c1..feffbcb 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ +APP_NAME=pastethingy +APP_REPO=https://git.fuwafuwa.moe/lesderid/pastethingy + APP_DEBUG=true APP_URL=http://pastethingy.app diff --git a/config/app.php b/config/app.php index 2df0c12..1779029 100644 --- a/config/app.php +++ b/config/app.php @@ -2,6 +2,28 @@ return [ + /* + |-------------------------------------------------------------------------- + | Application Name + |-------------------------------------------------------------------------- + | + | Global human-readable name for the application. + | + */ + + 'name' => env('APP_NAME', 'pastethingy'), + + /* + |-------------------------------------------------------------------------- + | Application Repository URL + |-------------------------------------------------------------------------- + | + | Repository URL for the application. + | + */ + + 'repo' => env('APP_REPO', 'https://git.fuwafuwa.moe/lesderid/pastethingy'), + /* |-------------------------------------------------------------------------- | Application Debug Mode diff --git a/resources/views/main.blade.php b/resources/views/main.blade.php index ccd0f0d..6631c55 100644 --- a/resources/views/main.blade.php +++ b/resources/views/main.blade.php @@ -1,12 +1,12 @@ - pastethingy + {{ config('app.name') }}