mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2025-01-31 20:11:38 +01:00
35 lines
678 B
PHP
35 lines
678 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Watson\Rememberable\Rememberable;
|
|
|
|
class MailboxUser extends Model
|
|
{
|
|
use Rememberable;
|
|
// This is obligatory.
|
|
public $rememberCacheDriver = 'array';
|
|
|
|
// Action after sending a message
|
|
const AFTER_SEND_STAY = 1;
|
|
const AFTER_SEND_NEXT = 2;
|
|
const AFTER_SEND_FOLDER = 3;
|
|
|
|
protected $table = 'mailbox_user';
|
|
|
|
public $timestamps = false;
|
|
|
|
public static $pivot_settings = [
|
|
'after_send',
|
|
'hide',
|
|
'mute',
|
|
'access',
|
|
];
|
|
|
|
// Does not work as we receive it via pivot
|
|
// protected $casts = [
|
|
// 'access' => 'array',
|
|
// ];
|
|
}
|