Skip to content

Commit 3de00db

Browse files
committed
Make app name an option
1 parent a20bbd8 commit 3de00db

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All Notable changes to `StageFront` will be documented in this file.
44

5+
## 1.1.3 (2017-10-11)
6+
7+
- Make app name an option, defaults to `config('app.name')`
8+
59
## 1.1.2 (2017-10-10)
610

711
- Set intended URL before logging in

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ If you set the URL to your live site, a link will be shown underneath the login
147147

148148
Make sure you enter the full URL, including `https://`.
149149

150+
## Change App Name
151+
152+
By default, the app name that is configured in `config/app.php` is shown as a title on the login and throttle page. You can use a different title by setting this option:
153+
154+
| Option | Type | Default |
155+
| --------------------- | -------- | -------------------- |
156+
| `STAGEFRONT_APP_NAME` | `string` | `config('app.name')` |
157+
150158
## Publish Configuration File
151159

152160
You can also publish the configuration file.

config/stagefront.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
return [
44

5+
/**
6+
* The app name that is shown on the login and throttle page.
7+
*
8+
* Default: config('app.name')
9+
*/
10+
'app_name' => env('STAGEFRONT_APP_NAME', config('app.name')),
11+
512
/**
613
* Set an optional URL of the live version of the website.
714
* This will be displayed on the login screen if set.

resources/views/429.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7-
<title>{{ config('app.name') }}</title>
7+
<title>{{ config('stagefront.app_name') }}</title>
88
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,700">
99
<style>
1010
html, body {
@@ -60,7 +60,7 @@
6060

6161
<section>
6262

63-
<h1 class="caps">{{ config('app.name') }}</h1>
63+
<h1 class="caps">{{ config('stagefront.app_name') }}</h1>
6464

6565
<p>{{ trans('stagefront::errors.throttled.intro') }}</p>
6666

resources/views/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7-
<title>{{ config('app.name') }}</title>
7+
<title>{{ config('stagefront.app_name') }}</title>
88
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,700">
99
<style>
1010
html, body {
@@ -94,7 +94,7 @@
9494

9595
<section class="stagefront-screen">
9696

97-
<h1 class="stagefront-title caps">{{ config('app.name') }}</h1>
97+
<h1 class="stagefront-title caps">{{ config('stagefront.app_name') }}</h1>
9898

9999
<p>{{ trans('stagefront::form.intro') }}</p>
100100

0 commit comments

Comments
 (0)