You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Shielding a staging or demo website from the public usually involves setting op
13
13
14
14
It doesn't have to be!
15
15
16
-
By installing StageFront with composer, adding the middleware and setting 3 variables in your `.env` you are ready to go. As you will discover below, you also have a bunch more options available.
16
+
By installing StageFront with composer, adding the middleware and setting 3 variables in your `.env`file you are ready to go. As you will discover below, you also have a bunch more options available.
17
17
18
18
## Requirements
19
19
@@ -27,7 +27,7 @@ Require the package via Composer:
27
27
```
28
28
composer require codezero/laravel-stagefront
29
29
```
30
-
Add the middleware to the web middleware group, **right after the `SartSession` middleware** in `app/Http/Kernel.php`:
30
+
Add the middleware to the web middleware group, **right after the `StartSession` middleware** in `app/Http/Kernel.php`:
@@ -54,9 +54,10 @@ Enable StageFront and choose a login and password:
54
54
|`STAGEFRONT_PASSWORD`|`string`|`stagefront`|
55
55
|`STAGEFRONT_ENCRYPTED`|`bool`|`false`|
56
56
57
-
By default StageFront is disabled and uses a plain text password.
57
+
By default StageFront is disabled and uses a plain text password when it's enabled.
58
58
59
59
If you set `STAGEFRONT_ENCRYPTED` to `true` the password should be a hashed value.
60
+
60
61
You can generate this using Laravel's `bcrypt('your password')` function.
61
62
62
63
## Database Logins
@@ -78,13 +79,16 @@ By default the `users` table is used with the `email` and `password` field names
78
79
## Change Route URL
79
80
80
81
By default a `GET` and `POST` route will be registered with the `/stagefront` URL.
82
+
81
83
You can change the URL by setting this option:
82
84
83
85
| Option | Type | Default |
84
86
| ---------------- | -------- | ------------ |
85
87
|`STAGEFRONT_URL`|`string`|`stagefront`|
86
88
87
-
It runs under the `web` middleware since it uses the session to keep you logged in. You can change the middleware if needed in the [configuration file](#publish-configuration-file).
89
+
It runs under the `web` middleware since it uses the session to keep you logged in.
90
+
91
+
You can change the middleware if needed in the [configuration file](#publish-configuration-file).
0 commit comments