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

Commit

Permalink
Update to replace env() with config()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cryer committed Jun 14, 2018
1 parent 26b54a7 commit 9b8a87a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions resources/views/forms/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="checkbox">
<label>
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" value="{{ $value or 1 }}" @if(isset($checked) && $checked) checked @endif> {{ $label }}
</label>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" name="{{ $name }}" class="{{ $class or '' }}" value="{{ $value or 1 }}" @if(isset($checked) && $checked) checked @endif> {{ $label }}
</label>
</div>
</div>
2 changes: 1 addition & 1 deletion resources/views/layouts/external.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

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

Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
@section('content')
<div class="login">

@if(!env('DISABLE_LOGIN_FORM', false))
@if(!config('app.disable_login_form', false))
@include('ui::layouts.login._form')
@include('ui::layouts.login._external')
@else
@component('ui::card')
@slot('title', $title ?? env('APP_NAME'))
@slot('title', $title ?? config('app.name'))
@slot('icon', 'unlock')
@include('ui::layouts.login._external')
@endcomponent
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/login/_form.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@component('ui::card')
@slot('title', $title ?? env('APP_NAME'))
@slot('title', $title ?? config('app.name'))
@slot('icon', 'unlock')

@component('ui::forms.form', ['route' => route('login'), 'method' => 'POST'])
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/primary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<div class="sidebar">
<a class="logo" href="/">
@isset($logo)
<img src="{{ $logo }}" alt="{{ getenv('APP_NAME') }}">
<img src="{{ $logo }}" alt="{{ config('app.name') }}">
@else
{{ getenv('APP_NAME') }}
{{ config('app.name') }}
@endisset
</a>

Expand Down

0 comments on commit 9b8a87a

Please sign in to comment.