| 1 | <?php |
||
| 7 | class Notification extends Model |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The table associated with the model. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'notifications'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The primary key column name. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $primaryKey = 'notifications_id'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Indicates if the model should be timestamped. |
||
| 26 | * |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | public $timestamps = false; |
||
| 30 | |||
| 31 | public function scopeUnread($query) |
||
| 35 | |||
| 36 | public function scopeRead($query, $user_id) |
||
| 40 | |||
| 41 | public function scopeLimit($query) |
||
| 45 | |||
| 46 | } |
||
| 47 |