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
+3
View File
@@ -17,6 +17,9 @@ class Flight extends BaseModel
public $table = 'flights'; public $table = 'flights';
public $incrementing = false; public $incrementing = false;
/** The form wants this */
public $hours, $minutes;
public $fillable = [ public $fillable = [
'id', 'id',
'airline_id', 'airline_id',
+3
View File
@@ -24,6 +24,9 @@ class Pirep extends BaseModel
public $table = 'pireps'; public $table = 'pireps';
public $incrementing = false; public $incrementing = false;
/** The form wants this */
public $hours, $minutes;
public $fillable = [ public $fillable = [
'id', 'id',
'user_id', 'user_id',
@@ -86,9 +86,6 @@
'placeholder' => 'minutes' 'placeholder' => 'minutes'
]) !!} ]) !!}
</div> </div>
{!! $flight->flight_time !!}
{!! $flight->hours !!}
{!! $flight->minutes !!}
<p class="text-danger">{{ $errors->first('hours') }}</p> <p class="text-danger">{{ $errors->first('hours') }}</p>
<p class="text-danger">{{ $errors->first('minutes') }}</p> <p class="text-danger">{{ $errors->first('minutes') }}</p>
</div> </div>