40 lines
572 B
PHP
40 lines
572 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Created by Reliese Model.
|
||
|
*/
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
/**
|
||
|
* Class Notification
|
||
|
*
|
||
|
* @property int $id
|
||
|
* @property string $user_code
|
||
|
* @property string $agent_code
|
||
|
* @property string $message
|
||
|
* @property string $data
|
||
|
* @property int $read
|
||
|
*
|
||
|
* @package App\Models
|
||
|
*/
|
||
|
class Notification extends Model
|
||
|
{
|
||
|
protected $table = 'notifications';
|
||
|
public $timestamps = false;
|
||
|
|
||
|
protected $casts = [
|
||
|
'read' => 'int'
|
||
|
];
|
||
|
|
||
|
protected $fillable = [
|
||
|
'user_code',
|
||
|
'agent_code',
|
||
|
'message',
|
||
|
'data',
|
||
|
'read'
|
||
|
];
|
||
|
}
|