Skip to content

Commit aac19d1

Browse files
committed
Bugfixes
Fixed problems in .env and database seeder
1 parent 4ec6690 commit aac19d1

File tree

5 files changed

+64
-63
lines changed

5 files changed

+64
-63
lines changed

.env

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
#Email verification=Changes if users have to verify their email after registration.
2-
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
3-
Register_auth=verified
2+
#=REGISTER_AUTH either auth or verified. If auth is selected, no verification is required. Default is verified.
3+
REGISTER_AUTH=verified
44

55
#Internal notifications=Notify if update is available or and event is happening such as a poll about the future of this project.
6-
Notify_events=true
7-
Notify_updates=true
6+
NOTIFY_EVENTS=true
7+
NOTIFY_UPDATES=true
88

99
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
1010
#=App_Name changes the displayed name for the App in the title, for example.
11-
App_Name="LittleLink Custom"
11+
APP_NAME="LittleLink Custom"
1212
APP_KEY=
13-
App_URL=
13+
APP_URL=
1414

1515
#Debug Settings=Changes if your page should display a full error description instead of a generic error 500
1616
#=App_debug either true or false. You might want to change this to false after you're done installing, but it's very useful for troubleshooting.
17-
App_debug=true
17+
APP_DEBUG=true
1818
#=App_env either local or production. Change this to production if you set the value above to false
19-
App_env=local
20-
Log_channel=stack
21-
Log_level=debug
19+
APP_ENV=local
20+
LOG_CHANNEL=stack
21+
LOG_LEVEL=debug
2222

2323
#Database Settings=Should be left alone. If you wish to use mysql you'd have to seed the database again.
24-
DB_connection=sqlite
24+
DB_CONNECTION=sqlite
2525

2626
#Mail Settings=LittleLink Custom comes with a free to use built-in SMTP server for sending mail. You can leave this setting as is, if you wish to use this service please read our terms and conditions at llc-mail.tru.io. If you do not wish to use the built-in SMTP server, change the setting below
27-
#=Mail_mailer either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server.
28-
Mail_mailer=built-in
29-
Mail_host=
30-
Mail_port=
31-
Mail_username=
32-
Mail_password=
33-
Mail_encryption=
34-
Mail_from_address=
35-
Mail_from_name="${app_name}"
27+
#=MAIL_MAILER either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server.
28+
MAIL_MAILER=built-in
29+
MAIL_HOST=
30+
MAIL_PORT=
31+
MAIL_USERNAME=
32+
MAIL_PASSWORD=
33+
MAIL_ENCRYPTION=
34+
MAIL_FROM_ADDRESS=
35+
MAIL_FROM_NAME="${app_name}"
3636

3737
#Cache Settings=Completely optional
38-
Memcached_host=127.0.0.1
39-
Redis_host=127.0.0.1
40-
Redis_password=null
41-
Redis_port=6379
38+
MEMCACHED_HOST=127.0.0.1
39+
REDIS_HOST=127.0.0.1
40+
REDIS_PASSWORD=null
41+
REDIS_PORT=6379
4242

4343
#Miscellaneous Settings=Should be left alone if you don't know what you're doing.
44-
Broadcast_driver=log
45-
Cache_driver=file
46-
Queue_connection=sync
47-
Session_driver=file
48-
Session_lifetime=120
44+
BROADCAST_DRIVER=log
45+
CACHE_DRIVER=file
46+
QUEUE_CONNECTION=sync
47+
SESSION_DRIVER=file
48+
SESSION_LIFETIME=120

database/seeders/AdminSeeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function run()
2020
[
2121
'name' => 'admin',
2222
'email' => '[email protected]',
23+
'email_verified_at' => '0000-00-00 00:00:00',
2324
'password' => Hash::make('12345678'),
2425
'role' => 'admin',
2526
'littlelink_name' => 'admin',

resources/views/layouts/sidebar.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function update_color_scheme() {
138138
<div class="row">
139139
140140
<! –– #### begin update detection #### ––>
141-
@if(env('Notify_updates') === true)
141+
@if(env('NOTIFY_UPDATES') === true)
142142
<?php // Checks if URL exists
143143
try {
144144
function URL_exists(string $url): bool
@@ -193,7 +193,7 @@ function URL_event_exists(string $url): bool
193193
$EventServerExists = "false";
194194
}
195195
?>
196-
@if(env('Notify_events') === true and $EventServerExists == 'true')
196+
@if(env('NOTIFY_EVENTS') === true and $EventServerExists == 'true')
197197
<?php
198198
$GetEventJson = file_get_contents("https://julianprieber.github.io/littlelink-custom-events/event.json");
199199
$EventJson = json_decode($GetEventJson, true);
@@ -221,7 +221,7 @@ function URL_event_exists(string $url): bool
221221
</nav>
222222
@endif
223223
@endif
224-
@if(env('Notify_events') === false and auth()->user()->role == 'admin')
224+
@if(env('NOTIFY_EVENTS') === false and auth()->user()->role == 'admin')
225225
<a href="{{ url('env-editor') }}" id="notify" style="color:#F75D59; font-weight:600; font-size:120%; background-color:#F5FFFA;"></a>
226226
<script>
227227
if(localStorage.getItem("firstTime")==null){

resources/views/vendor/env-editor/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
</li>
2828
</ul>
2929

30-
@if(env('Notify_events') === false)
30+
@if(env('NOTIFY_EVENTS') === false)
3131
<br><br>
32-
<a style="color:#ffbb39; font-weight:300; font-size:120%;">You currently have Event Notifications disabled. To get notified about polls, possible security vulnerabilities or important news, change the setting <code>Notify_events</code> below to <code>true</code>. If you enable this and an event is happening, a small text will pop up on your Admin Panel which will only be visible for admins.</a>
32+
<a style="color:#ffbb39; font-weight:300; font-size:120%;">You currently have Event Notifications disabled. To get notified about polls, possible security vulnerabilities or important news, change the setting <code>NOTIFY_EVENTS</code> below to <code>true</code>. If you enable this and an event is happening, a small text will pop up on your Admin Panel which will only be visible for admins.</a>
3333
@endif
3434

3535
<div class="tab-content" id="nav-tabContent">

storage/backups/default_settings

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
#Email verification=Changes if users have to verify their email after registration.
2-
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
3-
Register_auth=verified
2+
#=REGISTER_AUTH either auth or verified. If auth is selected, no verification is required. Default is verified.
3+
REGISTER_AUTH=verified
44

55
#Internal notifications=Notify if update is available or and event is happening such as a poll about the future of this project.
6-
Notify_events=true
7-
Notify_updates=true
6+
NOTIFY_EVENTS=true
7+
NOTIFY_UPDATES=true
88

99
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
1010
#=App_Name changes the displayed name for the App in the title, for example.
11-
App_Name="LittleLink Custom"
11+
APP_NAME="LittleLink Custom"
1212
APP_KEY=base64:YOU+MUST+CHANGE+THIS+YUFukELiN6Bk9gQ19+9zwk=
13-
App_URL=
13+
APP_URL=
1414

1515
#Debug Settings=Changes if your page should display a full error description instead of a generic error 500
1616
#=App_debug either true or false. You might want to change this to false after you're done installing, but it's very useful for troubleshooting.
17-
App_debug=true
17+
APP_DEBUG=true
1818
#=App_env either local or production. Change this to production if you set the value above to false
19-
App_env=local
20-
Log_channel=stack
21-
Log_level=debug
19+
APP_ENV=local
20+
LOG_CHANNEL=stack
21+
LOG_LEVEL=debug
2222

2323
#Database Settings=Should be left alone. If you wish to use mysql you'd have to seed the database again.
24-
DB_connection=sqlite
24+
DB_CONNECTION=sqlite
2525

2626
#Mail Settings=LittleLink Custom comes with a free to use built-in SMTP server for sending mail. You can leave this setting as is, if you wish to use this service please read our terms and conditions at llc-mail.tru.io. If you do not wish to use the built-in SMTP server, change the setting below
27-
#=Mail_mailer either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server.
28-
Mail_mailer=built-in
29-
Mail_host=
30-
Mail_port=
31-
Mail_username=
32-
Mail_password=
33-
Mail_encryption=
34-
Mail_from_address=
35-
Mail_from_name="${app_name}"
27+
#=MAIL_MAILER either smtp or built-in. Make sure to change this setting if you want to add a custom SMTP server.
28+
MAIL_MAILER=built-in
29+
MAIL_HOST=
30+
MAIL_PORT=
31+
MAIL_USERNAME=
32+
MAIL_PASSWORD=
33+
MAIL_ENCRYPTION=
34+
MAIL_FROM_ADDRESS=
35+
MAIL_FROM_NAME="${app_name}"
3636

3737
#Cache Settings=Completely optional
38-
Memcached_host=127.0.0.1
39-
Redis_host=127.0.0.1
40-
Redis_password=null
41-
Redis_port=6379
38+
MEMCACHED_HOST=127.0.0.1
39+
REDIS_HOST=127.0.0.1
40+
REDIS_PASSWORD=null
41+
REDIS_PORT=6379
4242

4343
#Miscellaneous Settings=Should be left alone if you don't know what you're doing.
44-
Broadcast_driver=log
45-
Cache_driver=file
46-
Queue_connection=sync
47-
Session_driver=file
48-
Session_lifetime=120
44+
BROADCAST_DRIVER=log
45+
CACHE_DRIVER=file
46+
QUEUE_CONNECTION=sync
47+
SESSION_DRIVER=file
48+
SESSION_LIFETIME=120

0 commit comments

Comments
 (0)