Skip to content

Commit 63ba594

Browse files
committed
Added function to automatically generate APP_KEY
1 parent b707670 commit 63ba594

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routes/web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
|
1818
*/
1919

20+
// generates new APP KEY if no one is set
21+
if(EnvEditor::getKey('APP_KEY')==''){Artisan::call('key:generate');}
22+
2023
//Changes the homepage to a LittleLink Custom profile if set in the config
2124
if(env('HOME_URL') != '') {
2225
Route::get('/', [UserController::class, 'littlelinkhome'])->name('littlelink');

0 commit comments

Comments
 (0)