Page title shows "Laravel" — APP_NAME is inconsistent across environments #120
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
layout
next major release
next minor release
question
research
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#120
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Browser tab titles show the wrong application name. Locally it reads "Laravel"; in production it reads "Lemmy Poster" — an old project name. Neither is correct.
Root cause
config/app.php:16:The layouts pass
'FFR'as a fallback:but that fallback never fires —
config('app.name')always resolves to something, so the second argument is dead. WhateverAPP_NAMEholds (or'Laravel'when unset) is what renders.Three sources disagree
config/app.php:16(default when unset)Laravel.env.example:1Laraveldocker/build/laravel.env:1(production)Lemmy Posterdocker/dev/docker-compose.yml:22FFRSo production titles currently read "Lemmy Poster", a name predating this project.
Affected
resources/views/layouts/app.blade.php:8resources/views/layouts/guest.blade.php:8resources/views/layouts/onboarding.blade.php:8(renders as{name} - Setup).env.examplealso derivesMAIL_FROM_NAMEandVITE_APP_NAMEfromAPP_NAME, so both inherit the wrong value.Proposed
Settle on one name and apply it consistently. Suggested: FFR (matches the dev compose value and the repo name), though "Fedi Feed Router" may read better in a browser tab — worth a quick decision.
config/app.phpdefault fromLaravelto the chosen name.env.exampledocker/build/laravel.env(fixes the production "Lemmy Poster" title)docker/dev/docker-compose.ymlif it already matches'FFR'fallback argument in the three layouts, since it is misleading — it looks like a safety net but can never triggerAcceptance criteria
{name} - SetupRelated