This commit is contained in:
2026-08-15 13:27:20 +03:30
commit 0c449ac460
75 changed files with 14097 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Tour
*
* @property int $id
* @property string $title
* @property string $summary
* @property string $descriptions
* @property int $file_id
* @property string $origin
* @property string $destination
* @property int $duration
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property File $file
* @property Collection|TourDate[] $tourDates
*
* @package App\Models
*/
class Tour extends Model
{
protected $table = 'tours';
public static $snakeAttributes = false;
protected $casts = [
'file_id' => 'int',
'duration' => 'int',
'status' => 'int'
];
protected $fillable = [
'title',
'summary',
'descriptions',
'file_id',
'origin',
'destination',
'duration',
'status'
];
public function file()
{
return $this->belongsTo(File::class);
}
public function tourDates()
{
return $this->hasMany(TourDate::class);
}
}