首次提交 Laravel 專案
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TgBot extends Model
|
||||
{
|
||||
// 显式指定表名
|
||||
protected $table = 'tg_bot';
|
||||
protected $guarded = ['id'];
|
||||
|
||||
// 可批量赋值的字段
|
||||
protected $fillable = [
|
||||
'bot_id',
|
||||
'bot_token',
|
||||
'bot_username',
|
||||
'subjection_username',
|
||||
'subjection_mobile',
|
||||
'subjection',
|
||||
'webhook',
|
||||
'memo',
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user