API: upload sections list

This commit is contained in:
xiaomlove
2025-02-15 03:15:45 +08:00
parent 0d7cbcde9f
commit c9b2237efd
16 changed files with 262 additions and 10 deletions
+5 -5
View File
@@ -2,6 +2,7 @@
namespace App\Console\Commands;
use App\Enums\PermissionEnum;
use App\Events\TorrentUpdated;
use App\Filament\Resources\System\AgentAllowResource;
use App\Http\Resources\TagResource;
@@ -102,11 +103,10 @@ class Test extends Command
*/
public function handle()
{
$today = Carbon::today();
$yesterday = Carbon::yesterday();
$tomorrow = Carbon::tomorrow();
$diff = $tomorrow->diffInDays();
dd($today, $tomorrow, $diff);
$with = ["ss" => function($query) {$query->orWhere("mode", 0);}];
$r = SearchBox::query()->with($with)->find(4);
// $r = SearchBox::query()->find(4)->ss()->orWhere("mode", 0)->get();
dd($r);
}
}