1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00

Fix thread command

This commit is contained in:
Samuel Štancl 2021-10-29 20:45:20 +02:00
parent 8b4da709a8
commit 26615990e5
6 changed files with 13 additions and 13 deletions

View file

@ -17,7 +17,7 @@ class WeeklyThread extends Command
public function handle()
{
// 41
$week = $this->argument('week') ?? now()->week;
$week = $this->argument('week') ?? date('W');
// https://twitter.com/archtechx/status/1448992205138444334?s=20
$url = $this->argument('url');