love_php/app/Models/Server/SaasNotice.php
2026-04-02 09:20:51 +08:00

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());
}
}
}