hasMany( 'Invoice' ); } public static function getVats( $archive ) { if ( $archive == 'F' ) { $vats = vat::whereArchive( 'F' )->get(); } else { $vats = Vat::get(); } return $vats; } }