Skip to content

Commit

Permalink
Merge pull request #16 from aggunawan/master
Browse files Browse the repository at this point in the history
call config() instead of env() at blade files
  • Loading branch information
rizkyyangpalsu authored Nov 4, 2020
2 parents 4d91970 + 1cf1d1a commit c290a54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/layouts/auth.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<title>Login &mdash; {{ env('APP_NAME') }}</title>
<title>Login &mdash; {{ config('app.name') }}</title>
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
</head>

Expand All @@ -28,7 +28,7 @@
@endif
@yield('content')
<div class="simple-footer">
Copyright &copy; {{ env('APP_NAME') }} {{ date('Y') }}
Copyright &copy; {{ config('app.name') }} {{ date('Y') }}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/skeleton.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<title>@yield('title', 'Home') &mdash; {{ env('APP_NAME') }}</title>
<title>@yield('title', 'Home') &mdash; {{ config('app.name') }}</title>
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
@stack('stylesheet')
Expand Down
4 changes: 2 additions & 2 deletions resources/views/partials/sidebar.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<aside id="sidebar-wrapper">
<div class="sidebar-brand">
<a href="">{{ env('APP_NAME') }}</a>
<a href="">{{ config('app.name') }}</a>
</div>
<div class="sidebar-brand sidebar-brand-sm">
<a href="#">{{ strtoupper(substr(env('APP_NAME'), 0, 2)) }}</a>
<a href="#">{{ strtoupper(substr(config('app.name'), 0, 2)) }}</a>
</div>
<ul class="sidebar-menu">
<li class="menu-header">Dashboard</li>
Expand Down

0 comments on commit c290a54

Please sign in to comment.