From baccf7e3ad82212190bbcbe6058ea9bdffcc8e74 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 27 Feb 2018 13:37:29 -0600 Subject: [PATCH] Fix the flight time not showing closes #199 --- app/Models/Flight.php | 3 +++ app/Models/Pirep.php | 3 +++ resources/views/admin/flights/fields.blade.php | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Models/Flight.php b/app/Models/Flight.php index 4ef4cdbe..75baff5b 100644 --- a/app/Models/Flight.php +++ b/app/Models/Flight.php @@ -17,6 +17,9 @@ class Flight extends BaseModel public $table = 'flights'; public $incrementing = false; + /** The form wants this */ + public $hours, $minutes; + public $fillable = [ 'id', 'airline_id', diff --git a/app/Models/Pirep.php b/app/Models/Pirep.php index 8469f27b..5379fc07 100644 --- a/app/Models/Pirep.php +++ b/app/Models/Pirep.php @@ -24,6 +24,9 @@ class Pirep extends BaseModel public $table = 'pireps'; public $incrementing = false; + /** The form wants this */ + public $hours, $minutes; + public $fillable = [ 'id', 'user_id', diff --git a/resources/views/admin/flights/fields.blade.php b/resources/views/admin/flights/fields.blade.php index eacba2f4..cb9e9deb 100644 --- a/resources/views/admin/flights/fields.blade.php +++ b/resources/views/admin/flights/fields.blade.php @@ -86,9 +86,6 @@ 'placeholder' => 'minutes' ]) !!} - {!! $flight->flight_time !!} - {!! $flight->hours !!} - {!! $flight->minutes !!}

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

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