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') }}