Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Notification | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| users | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Models\NotificationModel; | |
| use Illuminate\Database\Eloquent\Model; | |
| use App\Models\Auth\User; | |
| class Notification extends Model | |
| { | |
| protected $table="notifications"; | |
| public function users() | |
| { | |
| return $this->belongsTo(User::class, 'notifiable_id', 'id'); | |
| } | |
| } |