26 lines
517 B
PHP
26 lines
517 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
/**
|
|
* @property string $name
|
|
* @property date $start_date
|
|
* @property date $end_date
|
|
* @property Pilgrim[] $pilgrims
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*/
|
|
class Group extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function pilgrims(): HasMany
|
|
{
|
|
return $this->hasMany(Pilgrim::class);
|
|
}
|
|
}
|