@@ -4,51 +4,38 @@ namespace App\Models;
|
||||
|
||||
use Eloquent as Model;
|
||||
|
||||
/**
|
||||
* Class Aircraft
|
||||
*
|
||||
* @package App\Models
|
||||
* @version June 9, 2017, 1:06 am UTC
|
||||
*/
|
||||
class Aircraft extends Model
|
||||
{
|
||||
public $table = 'aircraft';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
public $fillable
|
||||
= [
|
||||
'subfleet_id',
|
||||
'airport_id',
|
||||
'name',
|
||||
'registration',
|
||||
'tail_number',
|
||||
'active',
|
||||
];
|
||||
public $fillable = [
|
||||
'subfleet_id',
|
||||
'airport_id',
|
||||
'name',
|
||||
'registration',
|
||||
'tail_number',
|
||||
'active',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be casted to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts
|
||||
= [
|
||||
'subfleet_id' => 'string',
|
||||
'name' => 'string',
|
||||
'registration' => 'string',
|
||||
'active' => 'boolean',
|
||||
];
|
||||
protected $casts = [
|
||||
'active' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Validation rules
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $rules
|
||||
= [
|
||||
'name' => 'required',
|
||||
'active' => '',
|
||||
];
|
||||
public static $rules = [
|
||||
'name' => 'required',
|
||||
];
|
||||
|
||||
/**
|
||||
* foreign keys
|
||||
|
||||
Reference in New Issue
Block a user