Fix broken test/Airport model in boot

This commit is contained in:
Nabeel Shahzad 2018-01-03 22:28:17 -06:00
parent 676a310432
commit 64734af419

View File

@ -40,7 +40,7 @@ class Aircraft extends BaseModel
protected static function boot() protected static function boot()
{ {
parent::boot(); parent::boot();
static::creating(function (Airport $model) { static::creating(function (Aircraft $model) {
if (!empty($model->icao)) { if (!empty($model->icao)) {
$model->icao = strtoupper(trim($model->icao)); $model->icao = strtoupper(trim($model->icao));
} }