Fix the flight time not showing closes #199

This commit is contained in:
Nabeel Shahzad
2018-02-27 13:37:29 -06:00
parent 97764866f2
commit baccf7e3ad
3 changed files with 6 additions and 3 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -86,9 +86,6 @@
'placeholder' => 'minutes'
]) !!}
</div>
{!! $flight->flight_time !!}
{!! $flight->hours !!}
{!! $flight->minutes !!}
<p class="text-danger">{{ $errors->first('hours') }}</p>
<p class="text-danger">{{ $errors->first('minutes') }}</p>
</div>