From b5dbde84c4c786799f474117381b8227642f0777 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 6 Feb 2018 14:09:20 -0600 Subject: [PATCH] Fix rank image link field to be string --- app/Models/Rank.php | 3 +-- resources/views/admin/ranks/fields.blade.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/Rank.php b/app/Models/Rank.php index cd93b066..012a2ae0 100644 --- a/app/Models/Rank.php +++ b/app/Models/Rank.php @@ -3,12 +3,11 @@ namespace App\Models; /** - * Class Ranking + * Class Rank * @package App\Models */ class Rank extends BaseModel { - public $table = 'ranks'; public $fillable = [ diff --git a/resources/views/admin/ranks/fields.blade.php b/resources/views/admin/ranks/fields.blade.php index f9c93482..198457e3 100644 --- a/resources/views/admin/ranks/fields.blade.php +++ b/resources/views/admin/ranks/fields.blade.php @@ -16,7 +16,7 @@
{!! Form::label('image_link', 'Image Link:') !!} - {!! Form::number('image_link', null, ['class' => 'form-control']) !!} + {!! Form::input('image_link', null, ['class' => 'form-control']) !!}

{{ $errors->first('image_link') }}