public function checkYear(int $year)
	{
		$y = date('Y');
		if ($y == $year) {
            return false;
		}
		$d1 = \Model::factory(UF::class)->whereLike('fecha', $year . '%')->count('id');
		$d0 = Carbon::parse($year . '-01-01');
		if ($d1 = (365 + $d0->format('L'))) {
			return true;
		}
		return false;
	}
public function checkYear(int $year)
	{
		$y = date('Y');
		if ($y == $year) {
            return false;
		}
		$d1 = \Model::factory(UF::class)->whereLike('fecha', $year . '%')->count('id');
		$d0 = Carbon::parse($year . '-01-01');
		if ($d1 = (365 + $d0->format('L'))) {
			return true;
		}
		return false;
	}
public function checkYear ( int $ year ) { $ y = date ( 'Y' ) ; if ( $ y == $ year ) { return false ; } $ d1 = \ Model :: factory ( UF :: class ) -> whereLike ( 'fecha' , $ year . '%' ) -> count ( 'id' ) ; $ d0 = Carbon :: parse ( $ year . '-01-01' ) ; if ( $ d1 = ( 365 + $ d0 -> format ( 'L' ) ) ) { return true ; } return false ; }
Checks if the year is saved in the database.
@param int $year
@return boolean
Checks if the year is saved in the database .