#41 add fuel type to subfleet table

This commit is contained in:
Nabeel Shahzad
2017-07-05 09:55:36 -05:00
parent cdd315f8bb
commit e6b338cd32
7 changed files with 59 additions and 14 deletions

View File

@@ -3,7 +3,6 @@
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Subfleet
@@ -11,18 +10,14 @@ use Illuminate\Database\Eloquent\SoftDeletes;
*/
class Subfleet extends Model
{
use SoftDeletes;
public $table = 'subfleets';
protected $dates = ['deleted_at'];
public $fillable = [
'airline_id',
'name',
'type'
'type',
'fuel_type',
];
/**
@@ -32,8 +27,7 @@ class Subfleet extends Model
*/
protected $casts = [
'airline_id' => 'integer',
'name' => 'string',
'type' => 'string'
'fuel_type' => 'integer',
];
/**