2020-08-21 13:58:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Reliese Model.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2020-08-24 16:41:03 +00:00
|
|
|
use Carbon\Carbon;
|
2020-08-21 13:58:19 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Notification
|
2020-11-18 11:34:23 +00:00
|
|
|
*
|
2020-08-21 13:58:19 +00:00
|
|
|
* @property int $id
|
|
|
|
* @property string $user_code
|
|
|
|
* @property string $agent_code
|
|
|
|
* @property string $message
|
|
|
|
* @property string $data
|
|
|
|
* @property int $read
|
2020-08-24 16:41:03 +00:00
|
|
|
* @property Carbon $date
|
2020-08-21 13:58:19 +00:00
|
|
|
*
|
|
|
|
* @package App\Models
|
|
|
|
*/
|
|
|
|
class Notification extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'notifications';
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
protected $casts = [
|
2020-11-18 11:34:23 +00:00
|
|
|
'read' => 'int',
|
|
|
|
'date' => 'datetime:Y-m-d H:i:s'
|
2020-08-21 13:58:19 +00:00
|
|
|
];
|
|
|
|
|
2020-08-24 16:41:03 +00:00
|
|
|
protected $dates = [
|
|
|
|
'date'
|
|
|
|
];
|
|
|
|
|
2020-08-21 13:58:19 +00:00
|
|
|
protected $fillable = [
|
|
|
|
'user_code',
|
|
|
|
'agent_code',
|
|
|
|
'message',
|
|
|
|
'data',
|
2020-08-24 16:41:03 +00:00
|
|
|
'read',
|
|
|
|
'date'
|
2020-08-21 13:58:19 +00:00
|
|
|
];
|
|
|
|
}
|