cleanup validation rules

This commit is contained in:
Nabeel Shahzad
2017-12-30 14:37:10 -06:00
parent 4bf3541e25
commit 7180bfb111
8 changed files with 32 additions and 64 deletions

View File

@@ -29,11 +29,6 @@ class Flight extends BaseModel
'active',
];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts = [
'flight_number' => 'integer',
'route_code' => 'string',
@@ -46,11 +41,6 @@ class Flight extends BaseModel
'active' => 'boolean',
];
/**
* Validation rules
*
* @var array
*/
public static $rules = [
'flight_number' => 'required',
'dpt_airport_id' => 'required',