-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mail.php
36 lines (32 loc) · 1.21 KB
/
Mail.php
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
36
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Mail
*
* @property int $id
* @property int $from
* @property string $conten
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Mail newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Mail newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Mail query()
* @method static \Illuminate\Database\Eloquent\Builder|Mail whereConten($value)
* @method static \Illuminate\Database\Eloquent\Builder|Mail whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Mail whereFrom($value)
* @method static \Illuminate\Database\Eloquent\Builder|Mail whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Mail whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\MailTo[] $tos
* @property-read int|null $tos_count
*/
class Mail extends Model
{
use HasFactory;
public function tos()
{
return $this->hasMany(MailTo::class);
}
}