PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 1.23
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v1.23
2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 1.45 All 41 releases
fluent-boards / app / Models / NotificationUser.php

NotificationUser.php in FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration 1.23, at app/Models/NotificationUser.php

32 lines 640 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentBoards\App\Models;
4
5 class NotificationUser extends Model
6 {
7 protected $table = 'fbs_notification_users';
8
9 protected $guarded = ['id'];
10
11 protected $fillable = [
12 'notification_id',
13 'user_id',
14 'marked_read_at'
15 ];
16
17 public static function boot()
18 {
19 parent::boot();
20 static::creating(function ($model) {
21 $model->created_at = current_time('mysql');
22 $model->updated_at = current_time('mysql');
23 });
24 }
25
26 public function notification()
27 {
28 return $this->belongsTo(Notification::class,'notification_id','id');
29 }
30
31 }
32