feat:complete tours for admin side
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\TourDateStatus;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class TourDate
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $tour_id
|
||||
* @property Carbon $start_date
|
||||
@@ -22,7 +23,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property int $status
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
*
|
||||
* @property Tour $tour
|
||||
* @property Collection|Booking[] $bookings
|
||||
*
|
||||
@@ -39,7 +40,7 @@ class TourDate extends Model
|
||||
'end_date' => 'datetime',
|
||||
'price' => 'int',
|
||||
'capacity' => 'int',
|
||||
'status' => 'int'
|
||||
'status' => TourDateStatus::class,
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
Reference in New Issue
Block a user