public static function firstSundayOfYear($year = null)
    {
        $year = $year ? (int) $year : Date('Y');
        $sunday = Carbon::parse($year . '-01-01')->startOfWeek(Carbon::SUNDAY);
        return ((int) $sunday->format('Y') === $year) ? $sunday : $sunday->addDays(7);
    }
public static function firstSundayOfYear($year = null)
    {
        $year = $year ? (int) $year : Date('Y');
        $sunday = Carbon::parse($year . '-01-01')->startOfWeek(Carbon::SUNDAY);
        return ((int) $sunday->format('Y') === $year) ? $sunday : $sunday->addDays(7);
    }
public static function firstSundayOfYear ( $ year = null ) { $ year = $ year ? ( int ) $ year : Date ( 'Y' ) ; $ sunday = Carbon :: parse ( $ year . '-01-01' ) -> startOfWeek ( Carbon :: SUNDAY ) ; return ( ( int ) $ sunday -> format ( 'Y' ) === $ year ) ? $ sunday : $ sunday -> addDays ( 7 ) ; }
Determine the first sunday of the given year.

@param  int $year
@return Isotope
Determine the first sunday of the given year .