Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 9b8a87a

Browse files
author
Dan Cryer
committed
Update to replace env() with config()
1 parent 26b54a7 commit 9b8a87a

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<div class="checkbox">
2-
<label>
3-
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" value="{{ $value or 1 }}" @if(isset($checked) && $checked) checked @endif> {{ $label }}
4-
</label>
1+
<div class="form-group">
2+
<div class="checkbox">
3+
<label>
4+
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" value="{{ $value or 1 }}" @if(isset($checked) && $checked) checked @endif> {{ $label }}
5+
</label>
6+
</div>
57
</div>

resources/views/layouts/external.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
66

7-
<title>{{ env('APP_NAME') }}</title>
7+
<title>{{ config('app.name') }}</title>
88
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
99
<meta name="viewport" content="width=device-width" />
1010

resources/views/layouts/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@section('content')
33
<div class="login">
44

5-
@if(!env('DISABLE_LOGIN_FORM', false))
5+
@if(!config('app.disable_login_form', false))
66
@include('ui::layouts.login._form')
77
@include('ui::layouts.login._external')
88
@else
99
@component('ui::card')
10-
@slot('title', $title ?? env('APP_NAME'))
10+
@slot('title', $title ?? config('app.name'))
1111
@slot('icon', 'unlock')
1212
@include('ui::layouts.login._external')
1313
@endcomponent

resources/views/layouts/login/_form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@component('ui::card')
2-
@slot('title', $title ?? env('APP_NAME'))
2+
@slot('title', $title ?? config('app.name'))
33
@slot('icon', 'unlock')
44

55
@component('ui::forms.form', ['route' => route('login'), 'method' => 'POST'])

resources/views/layouts/primary.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<div class="sidebar">
2323
<a class="logo" href="/">
2424
@isset($logo)
25-
<img src="{{ $logo }}" alt="{{ getenv('APP_NAME') }}">
25+
<img src="{{ $logo }}" alt="{{ config('app.name') }}">
2626
@else
27-
{{ getenv('APP_NAME') }}
27+
{{ config('app.name') }}
2828
@endisset
2929
</a>
3030

0 commit comments

Comments
 (0)