Laravel Carbon get start + end of last week?



PHP Snippet 1:

$startOfCurrentWeek = Carbon::now()->startOfWeek(); 

$startOfLastWeek  = $startOfCurrentWeek->copy()->subDays(7);
$startOfLastWeek  = Carbon::now()->subDays(7)->startOfWeek();

PHP Snippet 2:

$startOfCurrentWeek = Carbon::now()->startOfWeek(); 

$startOfLastWeek  = $startOfCurrentWeek->copy()->subDays(7);

$startOfLastWeek  = Carbon::now()->subDays(7)->startOfWeek()->endOfDay();

PHP Snippet 3:

$startOfLastWeek = Carbon::now()->subDays(7)->startOfWeek();
$endOfLastWeek = Carbon::now()->subDays(7)->endOfWeek();