首次提交 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,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\File;
class TgComm extends Model
{
// 显式指定表名
protected $table = 'tg_comm';
protected $guarded = ['id'];
//将所有的指令转换成数组文字档
public static function TgComm2Arr(){
$data = tg_comm::all()->toArray();
$export = '<?php return ' . var_export($data, true) . ';';
Storage::disk('dataconfig')->put('TgComm.php', $export);
}
}