Convert all env() calls to config() calls
This commit is contained in:
parent
e032cd5861
commit
b4df7a1bbb
10 changed files with 61 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ env('DISPLAY_NAME') }}</title>
|
||||
<title>{{ config('app.display_name') }}</title>
|
||||
<atom:link href="{{ config('app.url') }}/feed" rel="self" type="application/rss+xml" />
|
||||
<description>An RSS feed of the blog posts found on {{ config('url.longurl') }}</description>
|
||||
<link>{{ config('app.url') }}</link>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en-GB">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>@if (App::environment() == 'local'){!! "[testing] -"!!}@endif @yield('title'){{ env('DISPLAY_NAME') }}</title>
|
||||
<title>@if (App::environment() == 'local'){!! "[testing] -"!!}@endif @yield('title'){{ config('app.display_name') }}</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="/assets/frontend/normalize.css">
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
|
@ -18,7 +18,7 @@
|
|||
<body>
|
||||
<header id="topheader">
|
||||
<a rel="author" href="/">
|
||||
<h1>{{ env('DISPLAY_NAME') }}</h1>
|
||||
<h1>{{ config('app.display_name') }}</h1>
|
||||
</a>
|
||||
<nav>
|
||||
<a href="/blog">Articles</a>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<form action="search" method="get">
|
||||
<input type="text" name="terms"><button type="submit">Search</button>
|
||||
</form>
|
||||
<p>The code for <code>{{ env('APP_LONGURL') }}</code> can be found on <a href="https://github.com/jonnybarnes/jonnybarnes.uk">GitHub</a>.</p>
|
||||
<p>The code for <code>{{ config('app.longurl') }}</code> can be found on <a href="https://github.com/jonnybarnes/jonnybarnes.uk">GitHub</a>.</p>
|
||||
<p>Built with love: <a href="/colophon">Colophon</a></p>
|
||||
<p><a href="https://indieweb.org"><img src="/assets/img/iwc.png" alt="Indie Web Camp logo" class="iwc-logo"></a></p>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue