This commit is contained in:
2026-08-15 12:07:00 +03:30
commit d8b0992e51
63 changed files with 11839 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class TourDetail
*
* @property int $id
* @property int $tour_id
* @property Carbon $start_date
* @property Carbon $end_date
* @property int $price
* @property int $capacity
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Tour $tour
*
* @package App\Models
*/
class TourDetail extends Model
{
protected $table = 'tour_details';
protected $casts = [
'tour_id' => 'int',
'start_date' => 'datetime',
'end_date' => 'datetime',
'price' => 'int',
'capacity' => 'int',
'status' => 'int'
];
protected $fillable = [
'tour_id',
'start_date',
'end_date',
'price',
'capacity',
'status'
];
public function tour()
{
return $this->belongsTo(Tour::class);
}
}