Active checkbox changed to integer
This commit is contained in:
parent
a5b71ae09e
commit
aece7809fa
@ -20,7 +20,7 @@ class Airline extends Model
|
||||
'fuel_100ll_cost',
|
||||
'fuel_jeta_cost',
|
||||
'fuel_mogas_cost',
|
||||
'active',
|
||||
'active'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -34,7 +34,7 @@ class Airline extends Model
|
||||
'fuel_100ll_cost' => 'double',
|
||||
'fuel_jeta_cost' => 'double',
|
||||
'fuel_mogas_cost' => 'double',
|
||||
'active' => 'boolean',
|
||||
'active' => 'integer'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -44,7 +44,7 @@ class Airline extends Model
|
||||
*/
|
||||
public static $rules = [
|
||||
'code' => 'required|max:3|unique:airlines',
|
||||
'name' => 'required',
|
||||
'name' => 'required'
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -14,8 +14,8 @@
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('active', 'Active:') !!}
|
||||
<label class="checkbox-inline">
|
||||
{!! Form::hidden('active', false) !!}
|
||||
{!! Form::checkbox('active', 'True', null) !!} 1
|
||||
{!! Form::hidden('active', 0, false) !!}
|
||||
{!! Form::checkbox('active', 1, null) !!}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user