-
-
Notifications
You must be signed in to change notification settings - Fork 655
Expand file tree
/
Copy pathOrganizer.php
More file actions
35 lines (28 loc) · 771 Bytes
/
Organizer.php
File metadata and controls
35 lines (28 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace HiEvents\Models;
use HiEvents\Models\Traits\HasImages;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class Organizer extends BaseModel
{
use SoftDeletes;
use HasImages;
public function account(): BelongsTo
{
return $this->belongsTo(Account::class);
}
public function events(): HasMany
{
return $this->hasMany(Event::class);
}
public function organizer_settings(): HasOne
{
return $this->hasOne(OrganizerSetting::class);
}
public function webhooks(): HasMany
{
return $this->hasMany(Webhook::class);
}
}