public static function sunday($date = null)
    {
        if ($date) {
            return Carbon::parse($date)->startOfWeek(Carbon::SUNDAY);
        }

        return Carbon::now()->startOfWeek(Carbon::SUNDAY);
    }
public static function sunday($date = null)
    {
        if ($date) {
            return Carbon::parse($date)->startOfWeek(Carbon::SUNDAY);
        }

        return Carbon::now()->startOfWeek(Carbon::SUNDAY);
    }
public static function sunday ( $ date = null ) { if ( $ date ) { return Carbon :: parse ( $ date ) -> startOfWeek ( Carbon :: SUNDAY ) ; } return Carbon :: now ( ) -> startOfWeek ( Carbon :: SUNDAY ) ; }
Helper method that determines the Sunday of the given week.

@param  string $date
@return Isotope
Helper method that determines the Sunday of the given week .