首次提交 Laravel 專案

This commit is contained in:
2025-05-18 08:52:56 +07:00
commit 5e392ae581
264 changed files with 88756 additions and 0 deletions
@@ -0,0 +1 @@
a:3:{s:6:"_token";s:40:"FNYyZEt6CPyiQJf6hNUUTekwcX0pwQ0UtuUWE5H9";s:9:"_previous";a:1:{s:3:"url";s:77:"http://172.19.205.109:8090/7710672705:AAEX1RWhBoLA2L5EZuTLajQ---tRjahNr9w/Msg";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}
@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\File;
class tg_comm extends Model
{
// 显式指定表名
protected $table = 'tg_comm';
// 可批量赋值的字段
protected $fillable = [
'command',
'Instructions',
'bot_username',
'action',
'memo',
'dis_play',
'manager',
'valid',
];
//将所有的指令转换成数组文字档
public static function TgComm2Arr(){
$data = tg_comm::all()->toArray();
$export = '<?php return ' . var_export($data, true) . ';';
Storage::disk('dataconfig')->put('tg_comm.php', $export);
}
}