Skip to content

Commit c290a54

Browse files
Merge pull request #16 from aggunawan/master
call config() instead of env() at blade files
2 parents 4d91970 + 1cf1d1a commit c290a54

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

resources/views/layouts/auth.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
6-
<title>Login &mdash; {{ env('APP_NAME') }}</title>
6+
<title>Login &mdash; {{ config('app.name') }}</title>
77
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
88
</head>
99

@@ -28,7 +28,7 @@
2828
@endif
2929
@yield('content')
3030
<div class="simple-footer">
31-
Copyright &copy; {{ env('APP_NAME') }} {{ date('Y') }}
31+
Copyright &copy; {{ config('app.name') }} {{ date('Y') }}
3232
</div>
3333
</div>
3434
</div>

resources/views/layouts/skeleton.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
6-
<title>@yield('title', 'Home') &mdash; {{ env('APP_NAME') }}</title>
6+
<title>@yield('title', 'Home') &mdash; {{ config('app.name') }}</title>
77
<meta name="csrf-token" content="{{ csrf_token() }}">
88
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
99
@stack('stylesheet')

resources/views/partials/sidebar.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<aside id="sidebar-wrapper">
22
<div class="sidebar-brand">
3-
<a href="">{{ env('APP_NAME') }}</a>
3+
<a href="">{{ config('app.name') }}</a>
44
</div>
55
<div class="sidebar-brand sidebar-brand-sm">
6-
<a href="#">{{ strtoupper(substr(env('APP_NAME'), 0, 2)) }}</a>
6+
<a href="#">{{ strtoupper(substr(config('app.name'), 0, 2)) }}</a>
77
</div>
88
<ul class="sidebar-menu">
99
<li class="menu-header">Dashboard</li>

0 commit comments

Comments
 (0)