get_username() support in laravel

This commit is contained in:
xiaomlove
2022-06-12 15:15:09 +08:00
parent 4fc91f52cc
commit 43156f7fc5
8 changed files with 108 additions and 24 deletions

View File

@@ -77,9 +77,10 @@ class Test extends Command
*/
public function handle()
{
$torrent = \App\Models\Torrent::query()->find(3);
$promotionInfo = apply_filter('torrent_promotion', $torrent->toArray());
dd($promotionInfo);
$end = Carbon::parse('2022-06-06 14:10');
$begin = Carbon::parse('2022-06-06 03:10');
$r = $end->diffInHours($begin);
dd($r);
}