Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Invitation
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 sendInvitationEmail
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Http\Models;
4
5use App\Notifications\User\InvitationEmail;
6use Illuminate\Notifications\Notifiable;
7
8class Invitation extends Moloquent
9{
10    use Notifiable;
11
12    protected $table = 'invitations';
13
14    protected $fillable = [
15        'first_name',
16        'last_name',
17        'personal_message',
18        'user_id',
19        'status',
20        'email',
21        'referral_key',
22    ];
23
24    protected $cast = [
25        'created_at' => 'datetime',
26        'updated_at' => 'datetime',
27    ];
28
29    protected $guarded = [];
30
31    public function sendInvitationEmail($data)
32    {
33        $this->notify(new InvitationEmail($data));
34    }
35}