Skip to content

Instantly share code, notes, and snippets.

@evercode1
Last active October 9, 2018 18:21
Show Gist options
  • Save evercode1/ad764976dc4377193409b6f65dada81c to your computer and use it in GitHub Desktop.
Save evercode1/ad764976dc4377193409b6f65dada81c to your computer and use it in GitHub Desktop.

Revisions

  1. evercode1 revised this gist Jan 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create.blade.php
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    <label class="control-label">Image Weight</label>

    <input type="number" class="form-control" name="image_weight" value="{{ old('image_weight') }}">
    <input type="number" class="form-control" name="image_weight" value="{{ old('image_weight') ? old('image_weight') : 100 }}">

    @if ($errors->has('image_weight'))

  2. evercode1 created this gist Aug 30, 2016.
    17 changes: 17 additions & 0 deletions create.blade.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <!-- image_weight Form Input -->

    <div class="form-group{{ $errors->has('image_weight') ? ' has-error' : '' }}">

    <label class="control-label">Image Weight</label>

    <input type="number" class="form-control" name="image_weight" value="{{ old('image_weight') }}">

    @if ($errors->has('image_weight'))

    <span class="help-block">
    <strong>{{ $errors->first('image_weight') }}</strong>
    </span>

    @endif

    </div>