27 lines
640 B
PHP
27 lines
640 B
PHP
<?php
|
|
|
|
namespace App\Models\Server;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SaasNotice extends Model
|
|
{
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
|
|
public static function addRecord($m_id=0,$m_user_id=0,$type,$type_id,$content,$is_read=0){
|
|
try{
|
|
SaasNotice::create([
|
|
'm_id'=>$m_id,
|
|
'm_user_id'=>$m_user_id,
|
|
'type'=>$type,
|
|
'type_id'=>$type_id,
|
|
'content'=>$content,
|
|
'is_read'=>$is_read
|
|
]);
|
|
} catch (\Exception $e) {
|
|
\Log::info($e->getMessage());
|
|
}
|
|
}
|
|
}
|