This commit is contained in:
2026-08-15 13:37:07 +03:30
commit ed719317f3
76 changed files with 14009 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class TourFlight
*
* @property int $id
* @property int $tour_id
* @property int $flight_id
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Flight $flight
* @property Tour $tour
*
* @package App\Models
*/
class TourFlight extends Model
{
protected $table = 'tour_flights';
public static $snakeAttributes = false;
protected $casts = [
'tour_id' => 'int',
'flight_id' => 'int'
];
protected $fillable = [
'tour_id',
'flight_id'
];
public function flight()
{
return $this->belongsTo(Flight::class);
}
public function tour()
{
return $this->belongsTo(Tour::class);
}
}