git add .
git commit "add tours pages, components and show views"
This commit is contained in:
@@ -11,7 +11,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class TravelType
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property int $status
|
||||
@@ -33,4 +33,8 @@ class TravelType extends Model
|
||||
'name',
|
||||
'status'
|
||||
];
|
||||
}
|
||||
public function tours()
|
||||
{
|
||||
return $this->hasMany(Tour::class, 'travel_type_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user